Skip to content

feat(registry): redesign the public Community resources page - #435

Merged
scottconverse merged 2 commits into
mainfrom
feat/registry-redesign
Nov 24, 2026
Merged

scottconverse merged 2 commits into
mainfrom
feat/registry-redesign

Conversation

@scottconverse

@scottconverse scottconverse commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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).

  • Full-width page with a big search box. It searches as the reader types. A scan bar and shimmering grey cards show while it reads.
  • A "Need help right now?" row: 911, 988, 2-1-1 as tap buttons.
  • Category chips with a color dot per need.
  • One card per service: service name large, organization small, description, phone, address, hours, and Call and Directions buttons.
  • Everything the old list showed stays, inside "All details, source and corrections" on each card: every phone and place, hours, languages, verification line, editor's note, source and "Something wrong here?".
  • Phone layout: one column, Call is a full-width 54 px button, chips scroll sideways.
  • The form is still a plain GET form, so it works without JavaScript. Previous and Next page links are unchanged.

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 got useNavigate and useRouterState; one heading assertion now expects the service name large and the organization small).
  • tsc --noEmit clean. eslint clean on the two source files.
  • Real browser on Dev (3100, this branch, 64fb3c3): page renders in the paper's style; typing "dental" gives 11 cards without a page reload; typing "food" then " pantry" keeps the cursor and ends at 6 services; phone width 375: no sideways scroll, one column; light theme looks right on desktop.

Not in this PR (the prototype had them)

  • Saved stars and the bottom Search/Filters bar. They need all entries on one page; the real page loads 25 at a time.
  • "Has a phone / has an address" filters, for the same reason.

Not checked

  • A real phone.
  • The page with more than 100 published services in the old limit case.
  • Full CI (not run locally).

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T02:51:57.935078Z 64fb3c3 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +89 to +90
address: first(entry.locations.map((l) => l.address)),
hours: first([...entry.serviceHours, ...entry.locations.flatMap((l) => l.hours)]),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread src/routes/registry.tsx
Comment on lines +146 to +149
if (readerIsTyping) {
if (document.activeElement !== el) {
el.focus();
el.setSelectionRange(el.value.length, el.value.length);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@scottconverse
scottconverse merged commit f2f84b3 into main Nov 24, 2026
47 checks passed
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