Skip to content

Add the Overview dashboard, a display layer and a theme control - #286

Closed
Traxin3 wants to merge 1 commit into
anomalyco:devfrom
Traxin3:feature/premium-ui-dashboard
Closed

Traxin3 wants to merge 1 commit into
anomalyco:devfrom
Traxin3:feature/premium-ui-dashboard

Conversation

@Traxin3

@Traxin3 Traxin3 commented Nov 22, 2026

Copy link
Copy Markdown

What this is

The app opens straight into the session list, in a design system that is deliberately
monochrome: the "brand" colour is grey, cards have 10 dp corners, headings are 16 sp and the
shadows are 1.5 dp. There is no overview anywhere, no aggregate spend, and no way to see the
projects as projects — they are a 20 dp tile beside a chat row.

This adds a display layer over that system (one real brand colour, a roomier scale, a
display type scale, real card shadows), the Overview that uses it, and the theme control
to move between light and dark without leaving the screen.

Nothing here changes the transcript, the composer or the settings list. They keep their own
density; a chat surface is denser than a dashboard and the two never mix.

The Overview

A screen over the session, in :feature:drawer (overview/):

  • A gradient banner with the state of this server: a status pill, a Live/Connecting
    indicator, and three totals — sessions, running, spend. The spend is the sum of the server's
    own Session.Info.cost over its sessions; nothing new is fetched.
  • Four quick actions — New Session, Projects (scrolls to the card), Catch Up, Settings.
  • A Projects card: each project with its tile, its session count, its spend, and a live dot
    while something runs in it.
  • A Recent Sessions card: the most recently touched sessions, with their working / waiting /
    unread state.
  • The Light / Dark / System control in its own bar.

Home's reducer owns the navigation it asks for (OverviewTapped, OverviewClosed,
OverviewSessionTapped, OverviewNewSessionTapped, OverviewCatchUpTapped,
OverviewSettingsTapped), the way it owns the session's and Catch Up's.

The sidebar

  • The list leads to the Overview with a brand-tinted card carrying the totals.
  • The selected row wears the brand instead of a grey pressed overlay, so the open session is
    the one coloured row in the list.
  • The footer's New Session is the drawer's one filled button, in the brand.
  • The session header's context gauge is the brand until it turns orange or red.

The theme control

  • The Overview's bar carries a Light / Dark / System control; the app re-themes in place.
  • Settings › Appearance: the mode control is now the brand's, and the seven palettes are chips
    you can pick without opening the Themes page.

How it is built

:core:

  • ui/OpenCodeDisplay.kt — the display scale (26 dp card corners, 18 dp tiles, a
    6/10/16/22/30/40 spacing scale, a long soft card shadow), the display type scale (hero 35/40
    tightly tracked, page title 29, section 17, a widely tracked uppercase eyebrow) and the banner
    ramps. New tokens — the existing ones are untouched.
  • ui/OpenCodeColors.kt — brand, brandSoft, onBrand. The brand is the theme's link blue,
    which every theme already keeps readable against its own canvas.
  • ui/OpenCodeAppearanceControl.kt — the Light / Dark / System control.
  • OpenCodeDisplayCard draws the card's shadow through Material's Surface, not
    Modifier.shadow: the latter paints its ambient part over the layer's contents, which greys a
    white card.

No new dependency. Gradients are Brush.linearGradient, the shadows are Material's, the press
scale is the app's own motionPress.

Verified

  • ./gradlew :app:assembleDebug :feature:drawer:testDebugUnitTest — BUILD SUCCESSFUL; the
    drawer's unit tests pass, including the new OverviewTests.
  • ./gradlew :core:lintDebug — clean.
  • The debug APK installs on an API 37 emulator. The Overview, the drawer's card and the light and
    dark appearances were checked on it against a local stand-in server.

Two :core diagnostics tests fail (DiagnosticsJournalTests,
DiagnosticsPrivacyTests); they fail the same way on a clean checkout of dev, so they are not
from this change.

Not done here

The new strings are English only. scripts/translate.py needs a model this machine could not
reach — the free ones time out on its prompt and the paid ones have no credits — so
translations.py all still reports the new strings missing. They need
python3 scripts/translate.py all from a machine with model access.

The app opens straight into the session list, in a design system that is
deliberately monochrome: the brand colour is grey, cards have 10 dp corners,
headings are 16 sp and the shadows are 1.5 dp. There is no overview, no
aggregate spend and no way to see the projects as projects. This adds a
display layer over that system, the Overview that uses it, and the theme
control to switch between light and dark.

:core
- ui/OpenCodeDisplay.kt: the display scale (26 dp card corners, 18 dp tiles,
  a 6/10/16/22/30/40 spacing scale, a long soft card shadow), the display type
  scale (hero 35/40 tightly tracked, page title 29, section 17, a widely
  tracked uppercase eyebrow) and the banner ramps. New tokens: the transcript,
  composer and settings keep their own density.
- ui/OpenCodeColors.kt: brand, brandSoft and onBrand. The brand is the theme's
  link blue, which every theme already keeps readable against its canvas.
- ui/OpenCodeAppearanceControl.kt: the Light / Dark / System control.
- ui/OpenCodeDisplayCard.kt's OpenCodeDisplayCard: the display card. Material's
  Surface draws the shadow, not Modifier.shadow: the latter paints its ambient
  part over the layer's contents, which greys a white card.

:feature:drawer
- overview/: the Overview, over the session — a gradient banner with the
  server's totals (sessions, running, spend), four quick actions, the projects
  with their session counts, spend and live dots, and the recent sessions.
  Home's reducer owns the navigation it asks for.
- The list leads to the Overview with a brand-tinted card; the selected row
  wears the brand instead of a grey pressed overlay; the footer's New Session is
  the drawer's one filled button.

:feature:session
- The header's context gauge is the brand until it turns orange or red.

:feature:settings
- Appearance: the mode control in the brand, and the palettes as chips, so a
  theme is one tap away.

Verified: ./gradlew :app:assembleDebug :feature:drawer:testDebugUnitTest
(BUILD SUCCESSFUL; the drawer's unit tests pass, including the new Overview
tests); the debug APK installs on an API 37 emulator and the Overview, the
drawer's card and the light and dark appearances were checked on it.

The new strings are English only so far: scripts/translate.py needs a model
this machine could not reach (the free ones time out on its prompt and the
paid ones have no credits), so translations.py all still reports them missing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

We don't accept pull requests from outside contributors. Open an issue instead: our agent triages every issue automatically and the team picks up the work.

@github-actions github-actions Bot closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants