Repository navigation
feat(nav): comp-shaped folder tabs, and an Appearance switch in the account menu - #974
Merged
Merged
Conversation
…ccount menu Pointer bump to Scaffald/ui@ad3ae5b (Scaffald/ui#45): the folder tab — every list screen's partition and the shell's section strip — takes the prototype's index-card shape: heading face at body size, 8×26 padding, a slight backward lean, the selected tab lifted with an upward shadow and the rest set back with an inset one. Appearance — System / Light / Dark — joins "Using Scaffald as" in the desktop account menu and the phone's account sheet, both statements about how you are using the app rather than navigation. It writes through `useThemeSetting`, which persists and bridges to the ui ThemeProvider. It renders nothing while dark is behind its build flag (#833), so a control that offered Dark and rendered light cannot ship; when #840 lifts the gate it appears everywhere on its own. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Scaffald/ui#45 merged as 22f95e6. A fresh clone resolves the branch commit only while the branch exists, so the pointer moves to main's. Co-Authored-By: Claude Fable 5.1 <[email protected]>
thinkclay
added a commit
that referenced
this pull request
Oct 6, 2026
… and native, Appearance in Settings (#999) * feat(theme): ship dark mode — the gate comes off, the shell follows the OS, Appearance in Settings The build flag from #833 is gone: `isDarkModeEnabled()` is true, the resolver defaults open, and the Appearance switch in the account menu (#974) shows for everyone. Settings gains an Appearance section with the three preview cards the ui package has carried since the tokens landed. The blocking finding from the first dark pass (#970) was not a race and not a stale consumer. With the OS in dark, `UniversalThemeProvider` read `prefers-color-scheme` synchronously during render, so the client's first render disagreed with the server's (which can only say light); React regenerated the tree after the hydration mismatch and the regenerated tree came out light, while InnerProvider's effect stamped `<html data-theme>` dark and painted the body dark — a dark ground under a light shell, and white names on light rows wherever something mounted late enough to read the real value. Measured headless: OS dark rendered the ScreenHeader title `#16110d` on white with `data-theme="dark"`; OS light with a stored dark preference rendered it white on `#16110d`, because that path flips after mount through state. The system scheme now starts as the server's light and moves to the real value in an effect, like the stored preference already did; it also follows the OS live. Same probe after: both cases white on dark. Also from that pass: the office ground was `colors.gray[50]` in a module-level sheet (#970), and the two loading overlays' labels had no colour, so "Loading…" was near-black on the dark ground (#967). The overlay's first paint is light by design now — it is the server's render — and lasts until hydration. `DrawerFooter` goes: nothing rendered it since the account row took over sign-out and the theme toggle. The release checklist asks for Home and the Workers map in dark before a submit. Closes #970, closes #967. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(theme): native follows the OS again, and the first per-screen dark findings On the simulator with the OS in dark and the preference on System, the app rendered light. InnerProvider pinned the native scheme with `Appearance.setColorScheme(resolvedTheme)` whenever the two disagreed, and that override is per-process: a `light` set under an earlier preference outlived every JS reload and kept `useColorScheme()` answering light. Now System clears the override (`'unspecified'`) and only an explicit choice pins it, so system surfaces — alerts, keyboard, share sheet — match the app. Verified on an iPhone 17 Pro simulator: System follows the OS from dark to light and back live, Dark pins it, the preference and session survive a relaunch, and the Workers map renders dark (captures in docs/plans/redesign/shots-current/sim-dark--*.png). From the web dark sweep (33 routes at 1440 and 390, contrast-scanned): the profile forms, the vanity-URL section and the experience editor carried pre-token hex literals — `#414e62` slate on the dark card at 1.7:1, `#ffffff` cards under white text, Tailwind status greens and reds — and go onto the tokens with the ramps' dark steps; the drawer's active Notifications row and the news widget's link took `primary[600]` with no dark step and read `text[theme].emphasis` now. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(theme): the rest of the dark sweep — tables, pills, links, tones and the drawer Second pass over the web dark sweep (#840), with four @scaffald/ui releases underneath it (ui#51–#55: Button text and outline variants, Table grid cells, RadarChart, DeltaBadge, RichTextEditor, selected Tabs): - Office tables read black on the dark row. `columnsFromTanStack` wrapped every primitive cell in a react-native <Text> with no colour (added for the native stacked-view error, #768); the ui Table wraps primitives in its own themed <Text> on both paths now, so the adapter passes them through. The adapter test asserts the primitive comes back as itself. - The ATS admin columns were memoised with `[]` while their cells read the theme, so they were built once — during the server's light first render — and stayed light. `t` is a dependency. - Community "Joined"/"Verified" pills, job-card salary and match pills, the employer card's website link, the drawer's Edit profile link and the vanity-URL Edit link: light-only steps (success[600] on success[900] at 2:1, primary[500]/[600] on the card at 2.6–2.8:1) step down the ramps or read text[theme].emphasis. - The verification "Need help?" box and the dispute tracker's tone map used the 50/400/700 steps in both themes — a pale blue card on the dark page. Both read per theme now. What the sweep still reports, and why it stays: - "Save Changes" disabled: white on primary[200] at 1.74:1 — the ui filled/disabled treatment, the same in light; not a dark finding. - Pagination "…" at 2:1 — disabled, exempt. - A white off-canvas drawer and light "Loading…" text on the phone Office capture: taken mid-load, before the post-mount scheme flip of the #970 fix; the settled page is dark. Refs #840. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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
8×26padding, a slight backward lean (perspective 12px / 1.4°), the selected tab lifted with an upward shadow and the rest set back with an inset shadow at the foot. The card is a backdrop layer behind a flat label. Selected label is accent-700 in light, primary-300 in dark. This restyles every list screen's partition and the shell's section strip from feat(nav): the drawer lists sections, and each section's children are its tab strip #968 at once.AppearanceControl), writing throughuseThemeSetting. It renders nothing while dark is behindEXPO_PUBLIC_DARK_MODE(feat(theme): re-enable dark mode behind a dev toggle, add the dark smoke pass, audit the redesign tokens in dark #833), so it cannot offer Dark and render light; lifting the gate (feat(theme): ship dark mode — every redesigned screen verified dark, toggle in Settings and the drawer #840) makes it appear everywhere. Refs feat(theme): ship dark mode — every redesigned screen verified dark, toggle in Settings and the drawer #840.Verified
@scaffald/uiand@scf/coretypecheck clean; drawer suites 27/27; literal ratchet unchanged.EXPO_PUBLIC_DARK_MODE=1, at 1440: Profile strip renders the new tabs (computed: 7px top radius, 1px hairline, perspective matrix, inset shadow on unselected / lift on selected); the account menu shows Appearance; choosing Dark switches the whole shell and the tab strip, choosing Light switches back.Before merging
Merge Scaffald/ui#45 first and repoint
packages/uiat the squashed commit on ui main, as #861 did — the branch commit is only resolvable while the branch exists.🤖 Generated with Claude Code