Skip to content

Redesign client UI/UX: app shell, Home, dark-first theme #154

Closed

Description

@alpha5611331

Problem

The client works, but it looks like an internal tool rather than a product.

  • No app shell. Every route is a centered column under the titlebar. Navigation is a row of outline buttons on Home (pages/home/index.tsx) plus a back arrow on each page (page-header.tsx), so there is no persistent sense of where you are.
  • Flat hierarchy. Nearly everything is a Card or an outline Button at text-sm/text-xs. The two launch cards, the primary action of the app, carry the same visual weight as the links to settings.
  • Generic defaults. System font, default radius, light theme by default, no designed empty states, almost no motion. It reads as a shadcn starter.

The foundation is fine and stays: shadcn/ui (new-york) on Tailwind v4, oklch tokens, light + dark themes, the brand orange accent.

Scope

Agreed direction: app shell + Home + page polish, dark-first, Raycast/Linear style (compact, subtle borders, command-palette-centric).

In scope

  1. App shell with a collapsible icon rail

    • Add the shadcn sidebar component (collapsible="icon", collapsed by default so it fits the 840x600 minimum window).
    • Rail items: Home, Configuration, Account, Subscription, Documentation. Footer: account avatar menu (theme, UI language, sign out).
    • Mount it in MainFrame for signed-in, non-interview routes only. Hidden on /auth/*, /onboarding, /main, /mock-interview and in stealth mode.
    • Every rail item is disabled while useInterviewLock().locked, the same rule the titlebar menu and command palette follow.
    • PageHeader loses its back arrow on rail routes (the rail is the navigation) and keeps title + right-side actions.
    • Persist the collapsed state in the config store, not the cookie the stock component writes.
    • Check that the stock Cmd/Ctrl+B toggle does not collide with any global hotkey; change or drop it if it does.
    • The titlebar menu loses the navigation entries the rail now covers.
  2. Home redesign

    • One clear hero: the two launch cards (Mock interview / Live interview) larger, with a stronger primary treatment on whichever one is actionable. All current states stay (disabled, resume, unaffordable, unsupported).
    • Plan / free time shown as a compact status chip with an inline Subscribe action, not a separate bordered strip.
    • Account / Configuration / Documentation / Sign out move to the rail and footer menu; Home stops being a list of buttons.
    • Must fit 840x600 less the 36px titlebar with no scrollbar.
  3. Auth screens

    • Rebuild auth/layout.tsx around the shadcn login-03/login-04 block pattern: brand mark, one focused card, secondary links below it. The wizard logic in login / signup / forgot-password is unchanged.
  4. Settings-type pages (Configuration, Account, Payment, Documentation)

    • Use a consistent layout: max-width content column, grouped sections with a heading + description on the left and controls on the right (settings-page pattern), consistent spacing scale.
  5. Theme refresh (src/renderer/index.css, providers.tsx)

    • Dark by default when no theme is stored (currently follows the OS, falling back to light). Light stays available.
    • Tighter dark surfaces with clearer elevation steps between background / card / popover, subtler borders, slightly smaller radius.
    • Add a bundled UI font (for example Inter or Geist, shipped locally since the app runs from file://) with tabular numerals for timers and credits.
    • Designed empty and loading states for the panels and pages that currently show plain muted text.
    • Short, prefers-reduced-motion-aware transitions on route change, rail, and cards.
  6. Live console and mock session: visual polish only

    • Spacing, panel headers, borders, typography to match the new theme.
    • No change to the dock sizing logic in pages/main/index.tsx, stealth behaviour, StatusPanel, or the control panel's behaviour and slots.

Out of scope

  • Rebuilding the live interview console or the mock interview layout.
  • Any change to main-process code, IPC, hooks' behaviour, or session/save/lock logic.
  • New features.

Constraints

  • Must fit 840x600 (MIN_WIDTH / MIN_HEIGHT) less the titlebar, at default zoom, in every locale. German is the length stress test.
  • All new strings go through useT() and get added to every locale file; test/ui-language.test.mjs must pass.
  • RTL rendering (dir="auto") in the panels stays intact.
  • No em-dashes in copy.
  • The navigation lock, stealth mode and the save-history guard must behave exactly as before.

Suggested PR breakdown

  1. Theme refresh + font + dark default.
  2. App shell (sidebar rail) + PageHeader / titlebar menu changes.
  3. Home redesign.
  4. Auth + settings-type pages.
  5. Console / mock visual polish + empty states.

Acceptance

  • Rail visible on Home, Configuration, Account, Payment, Documentation; hidden on auth, onboarding, both interview routes, and in stealth.
  • Rail disabled during a live or mock session.
  • Home fits 840x600 with no scroll in English and German.
  • Fresh install opens in dark mode; the theme toggle still works and persists.
  • pnpm lint, both tsc configs, pnpm build and pnpm test:main pass.
  • Manually checked: start/stop live session, mock session, stealth toggle, sign out, close with unsaved history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions