Repository navigation
Conversation
📝 WalkthroughWalkthroughThe mobile theme now exposes typed dark and light palettes, adds a pressed surface token, and retains the legacy 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 001dd847-b083-4d14-bd06-ae9b756faa8e
📥 Commits
Reviewing files that changed from the base of the PR and between 17959a2 and 18ccc8bbac8d018806c3f0462c1905d42857c344.
📒 Files selected for processing (5)
mobile/src/components/NewWorkspaceFab.tsxmobile/src/theme/mobile-theme-palette.test.tsmobile/src/theme/mobile-theme.tsmobile/src/theme/themed-style-factories.test.tsmobile/src/theme/unthemed-color-imports.test.ts
eff0e62 to
fc5fc45
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f691b423-4627-4c0f-92a4-2528d2e804d5
📥 Commits
Reviewing files that changed from the base of the PR and between eff0e6201a19aa39a3e6ba5b3c0a2ba121c668f5 and fc5fc45.
📒 Files selected for processing (5)
mobile/src/components/NewWorkspaceFab.tsxmobile/src/theme/mobile-theme-palette.test.tsmobile/src/theme/mobile-theme.tsmobile/src/theme/themed-style-factories.test.tsmobile/src/theme/unthemed-color-imports.test.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- mobile/src/components/NewWorkspaceFab.tsx
- mobile/src/theme/mobile-theme.ts
- mobile/src/theme/mobile-theme-palette.test.ts
|
Rebased onto current Also addressed CodeRabbit where it applies to this PR:
Deferred: immutable ratchet baseline vs main history (heavy / process-enforced). Visible behaviour still unchanged ( Verified: palette + factories + unthemed ratchet (10/10). |
fc5fc45 to
9f7242e
Compare
Rename the existing tokens to darkColors, add lightColors (31 keys) derived from the desktop light tokens, and keep `export const colors = darkColors` so unconverted modules keep compiling and rendering dark. Pin the NewWorkspaceFab pressed state to surfaceBrightPressed (byte- identical in dark). Seed the unthemed-import ratchet and an empty themed-style-factories suite for the migration batches.
Catch unparenthesized useThemedStyles arrow factories in the ratchet, and assert the themed-style factory registry starts empty so later conversion batches must register deliberately rather than leaving a vacuous suite.
9f7242e to
da5ed23
Compare
|
Catch-up rebase onto latest |
Summary
Adds the light half of the mobile palette. Nothing renders differently —
export const colors = darkColorsstays, so every one of the ~157 files importingcolorskeeps compiling and keeps rendering exactly as today. This PR only makes the light values exist, with a test net around them.Where the values come from
Every light value is derived token by token from the desktop's canonical light tokens in
src/renderer/src/assets/main.css, and each carries its source line as a comment. Two worth calling out because they are easy to get wrong:textPrimary: #0a0a0afrom--foreground, not--primary #171717—--primaryis a surface token, and using it makes body text muddy.bgRaised: #eaeaeafrom--worktree-sidebar-accent, because--accentin light mode collapses intobgPanel.Three values are marked
INVENTEDin the source because no desktop counterpart exists (textMuted,statusAmber, and the diff-wash alpha).docs/STYLEGUIDE.mdsays to ask rather than invent silently, so they are labelled with the rule each follows rather than slipped in.Tests — mobile's first theme tests
There were none before. This adds three:
colorsmay only shrink. This is what makes the migration incremental instead of one 150-file commit: unconverted files keep rendering dark, and the ratchet stops new ones being addedThe alias trades a compiler guarantee for a test guarantee, deliberately and temporarily; the final PR of this series deletes
export const colorsand typecheck becomes the completeness proof again.Context
Part of a series bringing light mode to Orca mobile in reviewable slices. Nothing is user-visible until the final PR flips the switch, and the chain can stop after any PR without leaving the app half-lit.
ELI5
Adds the light-mode color palette for mobile, taken from desktop tokens. The app still uses dark colors everywhere so nothing looks different yet; this only makes light values available for the upcoming theme switch.