Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): restore sidebar spacing and Dock color (#2069)

Call Whitef3fb686fecd9
diff --git a/docs/plans/2026-09-20-sidebar-2061-presentation-reapply.md b/docs/plans/2026-09-20-sidebar-2061-presentation-reapply.md
index de4828a02..00242a863 100644
--- a/docs/plans/2026-09-20-sidebar-2061-presentation-reapply.md
+++ b/docs/plans/2026-09-20-sidebar-2061-presentation-reapply.md
@@ -1,5 +1,17 @@
# Reapply the approved sidebar and home presentation after PR #2058
+> Owner amendment (2026-09-20 15:46 Asia/Shanghai): restore the earlier compact
+> sidebar edge spacing and blue Apps launcher without reverting navigation or
+> home behavior. The pre-shared-shell brand sat 10 CSS px from the top; nesting
+> its replacement inside 20px shell padding plus 8px brand padding produced a
+> 28px inset. AppShell now owns the 10px top and 16px bottom insets, with no
+> extra top padding in WorkbenchSidebar. Restore the historical 22px space
+> between the logo and Inbox, keep the 39px Apps/Settings row, and reuse the cyan fill/border/glow/icon
+> tokens. This supersedes only the earlier frame/footer non-change boundary.
+> Browser acceptance measures the brand top and footer bottom at different
+> desktop heights and sidebar widths, checks both themes, and retains existing
+> Dock/Settings/collapse interaction tests. Mobile behavior is unchanged.
+
The owner approved this work in two steps. The sidebar contract below was given
first; the Workbench home was added to the same change at 13:03:52 and is
specified in "Owner amendment: restore the Workbench home". Both surfaces ship
diff --git a/ui/e2e/workbench-general/sidebar-floating.spec.ts b/ui/e2e/workbench-general/sidebar-floating.spec.ts
index 8e6086828..fc062d207 100644
--- a/ui/e2e/workbench-general/sidebar-floating.spec.ts
+++ b/ui/e2e/workbench-general/sidebar-floating.spec.ts
@@ -86,6 +86,50 @@ const receivesPointer = (locator: Locator) => locator.evaluate((element) => {
));
});
+for (const theme of ['light', 'dark'] as const) {
+ test(`sidebar keeps the compact historical edge spacing and blue Apps treatment (${theme})`, async ({ page }, info) => {
+ await serveProduct(page, 'zh');
+ await page.setViewportSize(VIEWPORT);
+ await open(page, '/', { lang: 'zh', theme });
+ const sidebar = page.locator('aside.fixed');
+ const brand = sidebar.locator('a[href="/"]').first();
+ const apps = page.locator(LAUNCHER);
+ const settings = page.locator(SETTINGS);
+ for (const height of [1329, 767]) {
+ await page.setViewportSize({ ...VIEWPORT, height });
+ await expect.poll(async () => ({
+ brandTop: (await brand.boundingBox())!.y,
+ footerBottomInset: await sidebar.evaluate((element) => {
+ const footer = element.children[1].getBoundingClientRect();
+ return innerHeight - footer.bottom;
+ }),
+ appsHeight: (await apps.boundingBox())!.height,
+ settingsHeight: (await settings.boundingBox())!.height,
+ })).toEqual({ brandTop: 10, footerBottomInset: 16, appsHeight: 39, settingsHeight: 39 });
+ }
+ const treatment = await apps.evaluate((element) => {
+ const style = getComputedStyle(element);
+ return {
+ fill: style.backgroundColor,
+ icon: getComputedStyle(element.querySelector('svg')!).color,
+ };
+ });
+ expect(treatment).toEqual(theme === 'light'
+ ? { fill: 'rgba(8, 145, 178, 0.14)', icon: 'rgb(8, 145, 178)' }
+ : { fill: 'rgba(63, 224, 229, 0.16)', icon: 'rgb(63, 224, 229)' });
+ await page.setViewportSize(VIEWPORT);
+ await page.screenshot({ path: info.outputPath(`sidebar-${theme}.png`), scale: 'css' });
+ await sidebar.getByRole('separator').focus();
+ await page.keyboard.press('End');
+ await expect.poll(async () => ({
+ width: (await sidebar.boundingBox())!.width,
+ brandTop: (await brand.boundingBox())!.y,
+ footerBottomInset: await sidebar.evaluate((element) =>
+ innerHeight - element.children[1].getBoundingClientRect().bottom),
+ })).toEqual({ width: 496, brandTop: 10, footerBottomInset: 16 });
+ });
+}
+
for (const lang of ['en', 'zh'] as const) {
test(`Settings stays icon-only while Apps takes the available width (${lang})`, async ({ page }) => {
const denied = await serveProduct(page, lang);
diff --git a/ui/src/components/AppShell.tsx b/ui/src/components/AppShell.tsx
index 707720741..9e11f9a22 100644
--- a/ui/src/components/AppShell.tsx
+++ b/ui/src/components/AppShell.tsx
@@ -369,7 +369,8 @@ export const AppShell: React.FC = () => {
<ConfigRecoveryNotice config={config} />
{/* Windows cover the sidebar (z-10 < z-20). AppsLauncher portals its button and Dock
above the window layer so app switching remains reachable even when maximized. */}
- {/* Sidebar Y1TiVV — 248 wide by default, 16px padding, top group and bottom
+ {/* Sidebar Y1TiVV — 248 wide by default, 16px horizontal/bottom padding and
+ the original 10px brand top inset. The top group and bottom
cluster pushed apart. The brand row, navigation and projects are one unit
inside WorkbenchSidebar; this frame owns only the column and the bottom.
The width is SidebarResizer's --app-sidebar-w, shared with Workbench
@@ -379,7 +380,7 @@ export const AppShell: React.FC = () => {
aria-hidden={settingsOpen || undefined}
inert={settingsOpen || undefined}
className={clsx(
- 'fixed inset-y-0 left-0 z-10 hidden w-[var(--app-sidebar-w)] flex-col justify-between gap-6 border-r border-border bg-[var(--sidebar-background)] px-4 py-5 md:flex',
+ 'fixed inset-y-0 left-0 z-10 hidden w-[var(--app-sidebar-w)] flex-col justify-between gap-6 border-r border-border bg-[var(--sidebar-background)] px-4 pt-2.5 pb-4 md:flex',
settingsOpen && 'invisible pointer-events-none',
)}
>
diff --git a/ui/src/components/AppsLauncher.test.tsx b/ui/src/components/AppsLauncher.test.tsx
index 9dc60361f..b5756f90a 100644
--- a/ui/src/components/AppsLauncher.test.tsx
+++ b/ui/src/components/AppsLauncher.test.tsx
@@ -53,15 +53,15 @@ afterEach(() => {
});
describe('AppsLauncher foreground affordance', () => {
- it('keeps pin, hover Dock and context-menu launch behavior on the scoped mint treatment', () => {
+ it('keeps pin, hover Dock and context-menu launch behavior on the blue treatment', () => {
renderLauncher();
const button = screen.getByRole('button', { name: 'Apps' });
const trigger = button.parentElement;
expect(trigger).toBeTruthy();
- expect(button.className).toContain('bg-mint/[0.16]');
+ expect(button.className).toContain('bg-cyan-soft');
expect(button.className).toContain('text-foreground');
- expect(button.className).not.toContain('shadow-glow');
- expect(button.querySelector('svg')?.className.baseVal).toContain('text-mint-ink');
+ expect(button.className).toContain('shadow-glow-sm-cyan');
+ expect(button.querySelector('svg')?.className.baseVal).toContain('text-cyan-ink');
fireEvent.mouseEnter(trigger!);
expect(screen.getByTestId('dock-content')).toBeTruthy();
diff --git a/ui/src/components/AppsLauncher.tsx b/ui/src/components/AppsLauncher.tsx
index 176bf8651..71f6fdf67 100644
--- a/ui/src/components/AppsLauncher.tsx
+++ b/ui/src/components/AppsLauncher.tsx
@@ -172,19 +172,16 @@ const LauncherPresentation = ({ pinned, setPinned }: {
aria-expanded={visible}
aria-pressed={pinned}
className={clsx(
- // Keep the Apps control soft and mint scoped to this shell affordance.
- // Its label stays ordinary foreground text; the fill and icon carry
- // the brand without changing shared mint-soft tokens or adding glow.
- 'group flex w-full items-center gap-2.5 rounded-full border bg-mint/[0.16] px-4 py-2.5 text-[13px] font-bold text-foreground transition-colors',
+ 'group flex h-[39px] w-full items-center gap-2.5 rounded-full border bg-cyan-soft px-4 py-0 text-[13px] font-bold text-foreground transition-colors',
visible
- ? 'border-mint'
- : 'border-mint/45 hover:border-mint/70',
+ ? 'border-cyan shadow-glow-md-cyan'
+ : 'border-cyan/45 shadow-glow-sm-cyan hover:border-cyan/70',
)}
>
- <LayoutGrid className="size-4 shrink-0 text-mint-ink" />
+ <LayoutGrid className="size-4 shrink-0 text-cyan-ink" />
<span className="flex-1 whitespace-nowrap text-left">{t('apps.title')}</span>
{pinned ? (
- <Pin className="size-3.5 shrink-0 rotate-45 fill-mint text-mint-ink" />
+ <Pin className="size-3.5 shrink-0 rotate-45 fill-cyan text-cyan-ink" />
) : (
<ChevronUp className={clsx('size-3.5 shrink-0 text-muted transition-transform', !visible && 'rotate-180')} />
)}
@@ -205,7 +202,7 @@ const LauncherPresentation = ({ pinned, setPinned }: {
{menu && (
<ContextMenu x={menu.x} y={menu.y} onClose={() => setMenu(null)} width={184} itemCount={1}>
<ContextMenuItem
- icon={<LayoutGrid className="size-[15px] text-mint-ink" />}
+ icon={<LayoutGrid className="size-[15px] text-cyan-ink" />}
label={t('apps.launcher.openLibrary')}
onClick={openLibrary}
/>
diff --git a/ui/src/components/workbench/WorkbenchSidebar.tsx b/ui/src/components/workbench/WorkbenchSidebar.tsx
index f353b215b..4d25cabd4 100644
--- a/ui/src/components/workbench/WorkbenchSidebar.tsx
+++ b/ui/src/components/workbench/WorkbenchSidebar.tsx
@@ -813,7 +813,7 @@ export const WorkbenchSidebar: React.FC<{ onOpenSearch?: () => void }> = ({ onOp
mint well, resting glow that strengthens on hover) inside this
sidebar's own padding, so the adjustable width still governs the
column. Search is a compact icon in the Projects header below. */}
- <div className="flex shrink-0 items-center py-2">
+ <div className="flex shrink-0 items-center pb-3">
<Link
to="/"
className="group flex min-w-0 items-center gap-2.5 rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mint/60"