GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(gui): redesign provider accounts workspace with adaptive grid, collapsible rails, and quota controls by agentHits · Pull Request #4560 · lidge-jun/opencodex

feat(gui): redesign provider accounts workspace with adaptive grid, collapsible rails, and quota controls #4560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
agentHits wants to merge 5 commits into lidge-jun:dev from agentHits:agentHits/antigravity

Uh oh!

There was an error while loading. Please reload this page.

Closed

feat(gui): redesign provider accounts workspace with adaptive grid, collapsible rails, and quota controls #4560

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5 commits
Select commit Hold shift + click to select a range
ed85a88
feat(gui): redesign provider accounts workspace
agentHits Sep 18, 2026
3e7fdf2
fix(gui): restore provider accounts regressions blocking PR checks
agentHits Sep 18, 2026
acd6d67
fix(gui): clear React Doctor blocking errors
agentHits Sep 20, 2026
a9e5620
fix: repair layout map union and css imports after rebase
agentHits Sep 20, 2026
7f2db17
fix(gui): clear react-doctor changed-scope warnings, refresh PR scree…
agentHits Sep 21, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

Binary file added BIN +119 KB docs/pr-assets/antigravity-accounts-en.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +401 KB docs/pr-assets/antigravity-accounts-ko.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +81.8 KB docs/pr-assets/antigravity-accounts-narrow-400.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +421 KB docs/pr-assets/antigravity-accounts-redesign.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +456 KB docs/pr-assets/antigravity-accounts-ru.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +426 KB docs/pr-assets/antigravity-accounts-zh.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +462 KB docs/pr-assets/antigravity-collapsed-rails.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +489 KB docs/pr-assets/antigravity-compact-view.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +513 KB docs/pr-assets/antigravity-filter-dropdown.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +453 KB docs/pr-assets/cockpit-choice-modal.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added BIN +17.8 KB gui/public/provider-icons/cockpit-tools.png
Show comments
View file
Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 32 additions & 4 deletions 36 gui/src/App.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import { useKeyedClientResource } from "./client-resource";
import Dashboard from "./pages/Dashboard";
import Providers from "./pages/Providers";
Expand Down Expand Up @@ -158,6 +158,23 @@ export default function App() {

// Narrow screens: the sidebar becomes an off-canvas drawer behind a hamburger toggle.
const [navOpen, setNavOpen] = useState(false);
const [sidebarCollapsed, setSidebarCollapsed] = useState<boolean>(() => {
try {
return localStorage.getItem("ocx_sidebar_collapsed") === "true";
} catch {
return false;
}
});

useEffect(() => {
try {
localStorage.setItem("ocx_sidebar_collapsed", String(sidebarCollapsed));
} catch { /* ignore */ }
}, [sidebarCollapsed]);

const toggleSidebarCollapsed = useCallback(() => {
setSidebarCollapsed(prev => !prev);
}, []);
const menuBtnRef = useRef<HTMLButtonElement>(null);
const sidebarRef = useRef<HTMLElement>(null);
const navWasOpen = useRef(false);
Expand Down Expand Up @@ -302,7 +319,7 @@ export default function App() {
);

return (
<div className="app">
<div className={`app${sidebarCollapsed ? " app--sidebar-collapsed" : ""}`}>
{/* inert while the drawer is open: keeps focus and assistive tech inside the drawer */}
<header className="mobile-topbar" inert={navOpen}>
<button ref={menuBtnRef} type="button" className="menu-toggle" onClick={() => setNavOpen(o => !o)}
Expand Down Expand Up @@ -330,9 +347,18 @@ export default function App() {
</div>
</header>
{navOpen && <div className="drawer-scrim" onClick={() => setNavOpen(false)} aria-hidden="true" />}
<aside id="app-sidebar" className={`sidebar${navOpen ? " open" : ""}`} ref={sidebarRef} tabIndex={-1}>
<aside id="app-sidebar" className={`sidebar${navOpen ? " open" : ""}${sidebarCollapsed ? " sidebar--collapsed" : ""}`} ref={sidebarRef} tabIndex={-1}>
<div className="drawer-head">
{brand}
<button
type="button"
className="sidebar-collapse-toggle-btn"
onClick={toggleSidebarCollapsed}
title={t(sidebarCollapsed ? "nav.expandSidebar" : "nav.collapseSidebar")}
aria-label={t(sidebarCollapsed ? "nav.expandSidebar" : "nav.collapseSidebar")}
>
{sidebarCollapsed ? "▶" : "◀"}
</button>
<button type="button" className="menu-toggle drawer-close" onClick={() => setNavOpen(false)}
aria-label={t("nav.closeMenu")} title={t("nav.closeMenu")}>
<IconX />
Expand Down Expand Up @@ -362,8 +388,10 @@ export default function App() {
navigateToPage(id);
setNavOpen(false);
}}
title={t(tkey)}
aria-label={t(tkey)}
aria-current={active ? "page" : undefined}>
<Icon /> {t(tkey)}
<Icon /> <span className="nav-item-text">{t(tkey)}</span>
</button>
</div>
);
Expand Down
103 changes: 103 additions & 0 deletions 103 gui/src/components/AccountAuthChoiceModal.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
import { useEffect } from "react";
import { IconX } from "../icons";
import { useT } from "../i18n/shared";
import { ProviderIcon } from "./provider-workspace/ProviderRail";
import CockpitToolsCard from "./provider-workspace/CockpitToolsCard";

export interface AccountAuthChoiceModalProps {
provider: string;
providerLabel: string;
apiBase: string;
isOpen: boolean;
isBusy?: boolean;
onClose: () => void;
onContinueOAuth: () => void;
onImportSuccess?: () => void;
}

export default function AccountAuthChoiceModal({
provider,
providerLabel,
apiBase,
isOpen,
isBusy = false,
onClose,
onContinueOAuth,
onImportSuccess,
}: AccountAuthChoiceModalProps) {
const t = useT();
useEffect(() => {
if (!isOpen) return;
const handleKeyDown = (e: KeyboardEvent) => {
if (e.key === "Escape") {
e.preventDefault();
onClose();
}
};
window.addEventListener("keydown", handleKeyDown);
return () => window.removeEventListener("keydown", handleKeyDown);
}, [isOpen, onClose]);

if (!isOpen) return null;

return (
<div
role="dialog"
aria-modal="true"
aria-labelledby="auth-choice-modal-title"
className="modal-overlay"
Comment thread
agentHits marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

onClick={onClose}
>
<div className="modal-card auth-choice-modal" onClick={e => e.stopPropagation()}>
<div className="modal-head">
<div>
<h3 id="auth-choice-modal-title">
{t("pws.authChoiceModalTitle", { provider: providerLabel })}
</h3>
<p className="muted text-label" style={{ marginTop: 2 }}>
{t("pws.authChoiceModalSubtitle")}
</p>
</div>
<button
type="button"
className="btn btn-ghost btn-icon"
aria-label={t("common.close")}
onClick={onClose}
>
<IconX />
</button>
</div>

<div className="auth-choice-body">
{/* Method 1: Browser OAuth */}
<div className="auth-choice-card">
<div className="auth-choice-card-info">
<ProviderIcon name={provider} cls="provider-icon provider-icon-sm" />
<div className="auth-choice-card-text">
<span className="auth-choice-card-title">{t("pws.antigravityOauthTitle")}</span>
<span className="auth-choice-card-desc">{t("pws.antigravityOauthDesc")}</span>
</div>
</div>
<button
type="button"
className="btn btn-primary btn-sm"
disabled={isBusy}
onClick={() => {
onClose();
onContinueOAuth();
}}
>
{isBusy ? t("prov.waitingBrowser") : t("pws.antigravityOauthAction")}
</button>
</div>

{/* Method 2: Cockpit Tools Card */}
<CockpitToolsCard
apiBase={apiBase}
onImportSuccess={onImportSuccess}
/>
</div>
</div>
</div>
);
}
16 changes: 16 additions & 0 deletions 16 gui/src/components/AntigravityChoiceModal.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import AccountAuthChoiceModal, { type AccountAuthChoiceModalProps } from "./AccountAuthChoiceModal";

export type AntigravityChoiceModalProps = Omit<AccountAuthChoiceModalProps, "provider" | "providerLabel"> & {
provider?: string;
providerLabel?: string;
};

export default function AntigravityChoiceModal(props: AntigravityChoiceModalProps) {
return (
<AccountAuthChoiceModal
provider={props.provider ?? "google-antigravity"}
providerLabel={props.providerLabel ?? "Google Antigravity"}
Comment thread
agentHits marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

{...props}
/>
);
}
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.