Skip to content

Refine dashboard news feed loading - #55

Merged
thinkclay merged 1 commit into
mainfrom
codex/update-and-cleanup-dashboard-news-feed
Sep 26, 2025
Merged

thinkclay merged 1 commit into
mainfrom
codex/update-and-cleanup-dashboard-news-feed

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Summary

  • make the ENR global feed the default dashboard news source
  • refactor the news feed card to load feeds asynchronously with abortable fetches and non-blocking state updates
  • refresh the selected feed only after hydration or explicit retries for a smoother UX

Testing

  • yarn lint

https://chatgpt.com/codex/tasks/task_b_68d62f532cfc8331b8817f53228c1cf3

@thinkclay
thinkclay merged commit 4c20dd2 into main Sep 26, 2025
@thinkclay
thinkclay deleted the codex/update-and-cleanup-dashboard-news-feed branch September 26, 2025 06:36
thinkclay added a commit that referenced this pull request Oct 13, 2025
…d-news-feed

Refine dashboard news feed loading
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