- One mediaUrl in media.ts instead of 12 identical aliases and a
kind map; orgPath builds on hrefs.ts's orgHref
- One Logo component (hides itself or shows a fallback when the file
is missing) for event cards, org lists and chapter marks
- useHistory is a thin wrapper over useRecord
- adminSchema.ts split into adminSchema/, one file per entity plus
shared.ts; the registry is unchanged (checked by loading both)
- JS smooth scrolls respect reduced motion (lib/motion.ts)
- Content-Security-Policy in Report-Only, with /api/csp-report logging
what it would block
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Colour tokens in index.css named by role (ink, body, muted, link,
brand, action, surface, tint, danger), used everywhere instead of hex
- Dark mode: follows the system, a header toggle (site and admin)
overrides it and is remembered; set before first paint in index.html
- Data colours go through src/lib/color.ts: withAlpha for tints,
accentText (lighter on dark) for text in an accent, readableOn for
text on one, so an admin's pale colour still reads
- Migration 040 drops events.gradient: a card is its photo or plain,
with its colour as the border; other decorative gradients are solid
- The countdown and a hero event without a photo mix their colour
toward ink behind white text
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Text contrast: teal text and button fills use #0f7183 (5.7:1), section
accents darkened to pass on white, solid CTA buttons instead of the
gradient, footer and subnav text raised to white/65, event and region
colours kept on borders and swatches with ink text
- Hidden carousel slides and collapsed past events are inert
- Admin list rows carry a real link for keyboard use
- Mobile menu is a modal dialog: focus, Escape, inert background, above
the header
- Skip to content link, one focus-visible ring, reduced-motion rule,
focus rings on the calendar inputs
- Region headings hold their button instead of sitting inside it
- font-700 style classes (not Tailwind v4 utilities) replaced with named
weights, and the 700/800 font files loaded
- Migration 038: alt text for blog covers and schedule graphics; event
logos next to their title are decorative
- Drop the Church Center script from index.html; Giving loads it itself
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Replace every em-dash in src and server/src with a colon, comma or hyphen
- Give every relative import its file extension (.jsx imports of .tsx fixed)
- Delete old-historyMock.ts, unused exports, unused CSS utilities, the
unused @ alias and the fallback option nothing passed
- One copy each of initials, capitalize, byName and the server's marks()
- Move the organization, chapter and event hooks from src/data to src/lib
- Schema sync always throws on a mismatch (strict was never turned off)
- Replace the placeholder README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Links pick their platform from a preset dropdown (PLATFORMS in
src/lib/platforms.ts), and every link button draws that platform's
icon beside its label. The footer and event cards now share the same
PlatformIcon component instead of their own copies.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds .d.ts declarations beside the untyped JS modules imported from
TS (api.js, navConfig.js, adminSchema.js, adminNav.js, src/data/*),
with shapes taken from the server routes and migrations. get/post/
patch/del now return unknown unless the caller names the response.
Fixes found along the way:
- website/email/instagram are bare strings from splitLinks, not Link
objects; OrganizationDetail's website and email pills rendered with
no href or label and now link correctly.
- The chapter map falls back to FALLBACK_COLOR for a region with no
colour instead of painting its tiles black.
Adds defineSection() so each page manifest entry's props are checked
against its own Component.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>