Repository navigation
feat(registry): redesign the public Community resources page - #435
Conversation
Full-width page in the paper's own style. Big search box that searches as the reader types, with a shimmer and a scan bar while it reads. Category chips, one card per service with Call and Directions buttons, and a phone layout. Everything the old list showed stays in an All details block on each card.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64fb3c3e0f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| address: first(entry.locations.map((l) => l.address)), | ||
| hours: first([...entry.serviceHours, ...entry.locations.flatMap((l) => l.hours)]), |
There was a problem hiding this comment.
Keep location-specific card facts tied to the displayed place
For a service with multiple locations, independently taking the first nonblank address, phone and hours can combine facts from different places. For example, if the first location has an address but no phone or hours, the card displays that address alongside the second location's phone and opening hours, and its Directions button sends readers to the first location. The server deliberately preserves these associations in PublicRegistryLocation, and the previous rendering kept each location's facts together. Select a single location for location-specific facts, or explicitly label facts that belong to other locations.
Useful? React with 👍 / 👎.
| if (readerIsTyping) { | ||
| if (document.activeElement !== el) { | ||
| el.focus(); | ||
| el.setSelectionRange(el.value.length, el.value.length); |
There was a problem hiding this comment.
Avoid reclaiming focus after the reader leaves the search box
If a reader types and then tabs to a filter before the 350 ms debounce fires, readerIsTyping remains true during the 800 ms blur delay. When the pending search changes searching, this effect focuses the search box again even though the reader intentionally moved to another control. Changing a filter shortly after leaving the box can trigger the same behavior. This disrupts keyboard navigation and can reopen the mobile keyboard; restore focus only when navigation actually displaced it, rather than whenever another element has focus.
Useful? React with 👍 / 👎.
What changes
The public Community resources page (
/registry) is redesigned in the paper's own style (its colors, fonts and square ink borders; light and dark).No server, data or migration change. New helper
registry-card.ts(colors per category, map link, first phone/address/hours).Checked
registry-card.test.ts: 7/7.registry-public-pages-dom.test.mjs: 21/21 (router stub gotuseNavigateanduseRouterState; one heading assertion now expects the service name large and the organization small).tsc --noEmitclean. eslint clean on the two source files.Not in this PR (the prototype had them)
Not checked