Third audit, UI half; side nav on top; request button colors

- Event cards: lazy -640 photo, only nearby slides drawn, a counter
  past 12 events, past grid paged with Show more
- Community map: search over list and grid, 12 per region then Show
  all, list no longer redrawn on hover
- People tiles: one clip check for the list, Show all past 30
- Person pages: 6 events and posts then Show all; excerpts load only
  the first paragraph
- Admin: filter box on long pickers and the QR select, options sent
  per form, Media thumbnails from the small copy, debounced searches
  that drop stale answers
- Pages show their last data while refreshing after the cache TTL
- Side nav stacks above page content (the carousel arrows)
- No event request button on National Retreats; request buttons take
  their section's accent
- Version v1.11.1-audit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-01 19:09:21 -05:00
parent 11a4555683
commit 222c9e69a2
22 changed files with 686 additions and 259 deletions

View file

@ -39,6 +39,9 @@ const PROGRAM_START_YEAR = 2000
/* Each preset: the view it draws, its fixed props, its toggle (the
section's own view picks the first one) and its Request button.
The keys are the CHECK list on page_sections.preset. */
/* Event sections in these scopes offer no Request button. */
const NO_EVENT_REQUEST_SCOPES = ['national']
const PRESETS: Record<string, (section: SitePageSection) => Record<string, any>> = {
community_blog: () => ({
Component: CommunityBlog,
@ -69,7 +72,10 @@ const PRESETS: Record<string, (section: SitePageSection) => Record<string, any>>
}),
events: (section) => ({
Component: EventListCards,
request: { type: 'event', label: 'Add or update an event' },
// NGU's own national retreats aren't the public's to add.
request: NO_EVENT_REQUEST_SCOPES.includes(section.scope_id ?? '')
? undefined
: { type: 'event', label: 'Add or update an event' },
props: { scope: section.scope_id ?? undefined, type: section.event_type ?? undefined },
views: {
options: ['carousel', 'grid'],