Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1ad8551
feat(theme): dark-first theme with dark/light/system choice
alpha5611331 Nov 23, 2026
8d2c251
feat(shell): add icon navigation rail
alpha5611331 Nov 23, 2026
88990f8
feat(home): hero launch cards and plan chip
alpha5611331 Nov 23, 2026
599eb72
feat(settings): group configuration into titled sections
alpha5611331 Nov 23, 2026
e9ec967
feat(auth): branded sign-in layout and calmer loading screen
alpha5611331 Nov 23, 2026
21368bd
feat(console): consistent panel chrome and empty states
alpha5611331 Nov 23, 2026
9fef88d
chore(i18n): drop home strings the rail replaced
alpha5611331 Nov 23, 2026
c4e4854
feat(ui): add ambient background component and integrate into auth an…
alpha5611331 Nov 23, 2026
fccf6c5
feat(i18n): strings for console status, plans and profile progress
alpha5611331 Nov 23, 2026
2e45020
feat(console): live signal, newest-card emphasis, listening state
alpha5611331 Nov 23, 2026
18be497
feat(payment): plan features and loading skeletons
alpha5611331 Nov 23, 2026
119743d
feat(mock): visual score report
alpha5611331 Nov 23, 2026
a7ed86a
feat(account): profile completeness and loading skeletons
alpha5611331 Nov 23, 2026
228c34e
feat(onboarding): polish wizard progress and step layout
alpha5611331 Nov 23, 2026
75c1891
feat(ux): quieter toasts and a ? shortcut list
alpha5611331 Nov 23, 2026
6ac029e
style(theme): raise light-mode contrast
alpha5611331 Nov 23, 2026
c7613f6
fix(ui): review fixes for the redesign
alpha5611331 Nov 23, 2026
fbd55c7
docs: describe the navigation rail, theme and new Home layout
alpha5611331 Nov 23, 2026
61c2b0e
fix(ui): second review pass
alpha5611331 Nov 23, 2026
afd0d95
feat(payment): shared feature row above plan cards
alpha5611331 Nov 23, 2026
4b2cb63
feat(shell): place Account next to Home on the rail
alpha5611331 Nov 23, 2026
9f282a3
fix(payment): hide the shared feature row when no plans loaded
alpha5611331 Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,24 @@ and group its ledger rows.
The main window reference is passed to `windowControlService` and `zoomService` after creation. Window bounds persist to Electron Store on `close` and are restored on next launch with minimum-size clamping (`MIN_WIDTH` / `MIN_HEIGHT` from [src/main/consts.ts](src/main/consts.ts)).

**840x600 is a size the app is actually used at, so screens are laid out to fit it**, less the
36px titlebar. The home screen did not: six full-width rows down a column half the window wide
came to roughly 580px against 564px of room, so the app's front door opened on a scrollbar with
the sign-out row below the fold. Nothing was dropped to fix it - the two launch cards share a row,
the account strip carries Subscription on its own line, and the three navigations are one row of
three, which is spending the width the window already has rather than the height it does not.
The outer container keeps `overflow-auto` as a safety valve for large zoom factors.
36px titlebar and, on the routes that show it, the 52px navigation rail. The home screen once
opened on a scrollbar at that size, with the sign-out row below the fold. It now carries only the
choice it exists for - the two launch cards side by side and the plan as a status chip - because
Account, Configuration, Documentation, Subscription and signing out moved to the rail. Containers
that centre content use `min-h-full` inside an `overflow-auto` scroller, so a large zoom factor
scrolls rather than clipping.

**The navigation rail** ([app-rail.tsx](src/renderer/components/custom/app-rail.tsx)) is drawn
only for a signed-in user on `RAIL_ROUTES` (`use-app-rail.ts`): never on auth, onboarding or the
two interview routes, and never in stealth. It is disabled while `useInterviewLock().locked`, like
the titlebar menu and the command palette. Where it shows, the titlebar menu and `PageHeader`'s
Back step aside, since the rail carries both. `MainFrame` keys the route container on the path for
rail routes and on one shared key otherwise - never on rail visibility, which flips on the same
route as sign-in resolves and would remount the page.

**Theme is Dark / Light / System, dark by default** (`use-theme-store.ts`). The stored preference
is applied to `<html>` at module load, before React's first paint, so a light-mode user does not
get a dark frame from the `class="dark"` that `index.html` ships with.

The app keeps itself off the surfaces a screen share exposes, but only where it has to. There is never a desktop shortcut (the NSIS installer creates none, and `build/installer.nsh` deletes one left by an older install). The taskbar button and the macOS Dock icon are driven by `applySurfaceVisibility()` in [src/main/services/window-control.service.ts](src/main/services/window-control.service.ts) - `setSkipTaskbar(hidden)` plus, on macOS, `app.setActivationPolicy('accessory')` + `app.dock.hide()` going in and `'regular'` + `app.dock.show()` coming out. There is deliberately no `LSUIElement` in the packaged Info.plist: it would pin the app to accessory from launch and there would be no Dock icon to give back.

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"start": "pnpm electron:dev-hide"
},
"dependencies": {
"@fontsource-variable/inter": "^5.3.0",
"@mohtasham/md-to-docx": "^2.6.1",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "^1.1.15",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions src/renderer/components/custom/ambient-background.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { cn } from '@/lib/utils';

/**
* Two heavily blurred brand colour fields behind a screen's content: orange and a cool violet.
*
* `animated` is for first-impression screens only (auth). Screens people pass through on the way
* to work, like Home, take the still variant: depth without motion competing for attention.
* Never on the interview routes. Transform-only animation so it stays on the compositor, and
* `prefers-reduced-motion` freezes it (see `.ambient-*` in index.css).
*
* The parent must be `relative`; content above it needs `relative` too so it stacks on top.
*/
export function AmbientBackground({ animated = false }: { animated?: boolean }) {
return (
<div aria-hidden="true" className={cn('ambient', !animated && 'ambient-still')}>
<div className="ambient-blob ambient-blob-a" />
<div className="ambient-blob ambient-blob-b" />
</div>
);
}
164 changes: 164 additions & 0 deletions src/renderer/components/custom/app-rail.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
import {
BookOpen,
CreditCard,
Home,
type LucideIcon,
Monitor,
Moon,
SettingsIcon,
Sun,
UserRound,
} from 'lucide-react';
import { forwardRef } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';

import { ThemeRadioItems } from '@/components/custom/theme-menu';
import TitlebarMenu from '@/components/custom/titlebar-menu';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
import { useInterviewLock } from '@/hooks/use-interview-lock';
import { useThemeStore } from '@/hooks/use-theme-store';
import { useT } from '@/i18n';
import { cn } from '@/lib/utils';

interface RailButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
icon: LucideIcon;
label: string;
active?: boolean;
}

const RailButton = forwardRef<HTMLButtonElement, RailButtonProps>(
({ icon: Icon, label, active = false, className, ...props }, ref) => (
<button
ref={ref}
type="button"
aria-label={label}
aria-current={active ? 'page' : undefined}
{...props}
className={cn(
'relative flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition-colors',
'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring/60',
'disabled:pointer-events-none disabled:opacity-40',
active && 'bg-sidebar-accent text-sidebar-accent-foreground',
className
)}
>
{active && (
<span
aria-hidden="true"
className="absolute -left-2 top-2 bottom-2 w-0.5 rounded-full bg-sidebar-primary"
/>
)}
<Icon className="h-[18px] w-[18px]" aria-hidden="true" />
</button>
)
);
RailButton.displayName = 'RailButton';

interface RailItemProps {
icon: LucideIcon;
label: string;
active?: boolean;
disabled?: boolean;
onClick: () => void;
}

function RailItem({ icon, label, active, disabled, onClick }: RailItemProps) {
const t = useT();
return (
<Tooltip>
<TooltipTrigger asChild>
{/* Wrapped: a disabled button fires no pointer events, so without this the tooltip
saying *why* it is disabled would be unreachable in the one state that needs it. */}
<span className="inline-flex">
<RailButton
icon={icon}
label={label}
active={active}
disabled={disabled}
onClick={onClick}
/>
</span>
</TooltipTrigger>
<TooltipContent side="right">
<p>{label}</p>
{disabled && (
<p className="text-xs text-muted-foreground">{t.titlebar.unavailableDuringInterview}</p>
)}
</TooltipContent>
</Tooltip>
);
}

/**
* The app's persistent navigation, an icon rail rather than a full sidebar so it costs 52px of an
* 840px window. Labels live in tooltips; the active route is marked with an accent bar as well as
* a fill, so it does not rely on colour alone.
*
* Disabled as a whole during an interview, the same rule the titlebar menu and the command palette
* follow - the router would refuse each of these navigations anyway.
*/
export default function AppRail() {
const t = useT();
const navigate = useNavigate();
const { pathname } = useLocation();
const { locked } = useInterviewLock();
const preference = useThemeStore((s) => s.preference);
const ThemeIcon = preference === 'system' ? Monitor : preference === 'light' ? Sun : Moon;

const items: { path: string; icon: LucideIcon; label: string }[] = [
{ path: '/', icon: Home, label: t.titlebarMenu.home },
{ path: '/account', icon: UserRound, label: t.titlebarMenu.account },
{ path: '/configuration', icon: SettingsIcon, label: t.titlebarMenu.configuration },
{ path: '/payment', icon: CreditCard, label: t.home.subscribe },
{ path: '/documentation', icon: BookOpen, label: t.titlebarMenu.documentation },
];

return (
<nav
aria-label={t.titlebar.menu}
className="flex w-[52px] shrink-0 flex-col items-center gap-1 border-r border-sidebar-border bg-sidebar py-3"
>
{items.map((item) => (
<RailItem
key={item.path}
icon={item.icon}
label={item.label}
active={pathname === item.path}
disabled={locked}
onClick={() => pathname !== item.path && navigate(item.path)}
/>
))}

<div className="mt-auto flex flex-col items-center gap-1">
{/* Non-modal for the same reason as the account menu: a modal menu locks pointer events
on the body, and that lock can outlive a menu its own action unmounts. */}
<DropdownMenu modal={false}>
<Tooltip>
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<RailButton icon={ThemeIcon} label={t.titlebarMenu.theme} />
</DropdownMenuTrigger>
</TooltipTrigger>
<TooltipContent side="right">
<p>{t.titlebarMenu.theme}</p>
</TooltipContent>
</Tooltip>
<DropdownMenuContent side="right" align="end" className="min-w-44">
<DropdownMenuLabel>{t.titlebarMenu.theme}</DropdownMenuLabel>
<DropdownMenuSeparator />
<ThemeRadioItems />
</DropdownMenuContent>
</DropdownMenu>
<TitlebarMenu placement="rail" disabled={locked} />
</div>
</nav>
);
}
4 changes: 2 additions & 2 deletions src/renderer/components/custom/command-palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function CommandPalette() {
const { confirmDiscard } = useSaveHistoryGuard();
const { hintOnly, toggle: toggleSuggestionMode } = useSuggestionMode();
const { visible: transcriptVisible, toggle: toggleTranscript } = useTranscriptPanel();
const { isDark, toggleTheme } = useThemeStore();
const { isDark, setPreference } = useThemeStore();

const [isHotkeysOpen, setIsHotkeysOpen] = useState(false);

Expand Down Expand Up @@ -220,7 +220,7 @@ export function CommandPalette() {
<Keyboard />
{t.commandPalette.hotkeys}
</CommandItem>
<CommandItem onSelect={() => run(toggleTheme)}>
<CommandItem onSelect={() => run(() => setPreference(isDark ? 'light' : 'dark'))}>
{isDark ? <Sun /> : <Moon />}
{isDark ? t.commandPalette.switchToLight : t.commandPalette.switchToDark}
</CommandItem>
Expand Down
6 changes: 5 additions & 1 deletion src/renderer/components/custom/control-panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import PermissionGateDialog from '../permission-gate-dialog';
import ZoomControl from '../zoom-control';
import { AudioGroup } from './audio-group';
import { LanguageGroup } from './language-group';
import { LiveSignal } from './live-signal';
import { MainGroup } from './main-group';
import { SuggestionModeGroup } from './suggestion-mode-group';
import { ToolsGroup } from './tools-group';
Expand Down Expand Up @@ -344,7 +345,10 @@ export default function ControlPanel() {
<ToolsGroup getDisabled={getDisabled} />
</div>

<div className="ml-auto">
{/* Status, then view: whether the session can hear sits beside zoom at the right edge,
apart from the controls, because it is something to glance at rather than press. */}
<div className="ml-auto flex items-center gap-2">
<LiveSignal />
<ZoomControl />
</div>
</div>
Expand Down
Loading