Skip to content

feat(nav): comp-shaped folder tabs, and an Appearance switch in the account menu - #974

Merged
thinkclay merged 2 commits into
mainfrom
feat/nav-polish
Oct 5, 2026
Merged

thinkclay merged 2 commits into
mainfrom
feat/nav-polish

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

What

Verified

  • @scaffald/ui and @scf/core typecheck clean; drawer suites 27/27; literal ratchet unchanged.
  • Dev server started with 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/ui at the squashed commit on ui main, as #861 did — the branch commit is only resolvable while the branch exists.

🤖 Generated with Claude Code

…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
thinkclay merged commit dcf0779 into main Oct 5, 2026
10 checks passed
@thinkclay
thinkclay deleted the feat/nav-polish branch October 5, 2026 16:12
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]>
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.

1 participant