Repository navigation
Conversation
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>
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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/):indicator, and three totals — sessions, running, spend. The spend is the sum of the server's
own
Session.Info.costover its sessions; nothing new is fetched.while something runs in it.
unread state.
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 one coloured row in the list.
The theme control
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, a6/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.OpenCodeDisplayCarddraws the card's shadow through Material'sSurface, notModifier.shadow: the latter paints its ambient part over the layer's contents, which greys awhite card.
No new dependency. Gradients are
Brush.linearGradient, the shadows are Material's, the pressscale is the app's own
motionPress.Verified
./gradlew :app:assembleDebug :feature:drawer:testDebugUnitTest— BUILD SUCCESSFUL; thedrawer's unit tests pass, including the new
OverviewTests../gradlew :core:lintDebug— clean.dark appearances were checked on it against a local stand-in server.
Two
:corediagnostics tests fail (DiagnosticsJournalTests,DiagnosticsPrivacyTests); they fail the same way on a clean checkout ofdev, so they are notfrom this change.
Not done here
The new strings are English only.
scripts/translate.pyneeds a model this machine could notreach — the free ones time out on its prompt and the paid ones have no credits — so
translations.py allstill reports the new strings missing. They needpython3 scripts/translate.py allfrom a machine with model access.