Commit graph

246 commits

Author SHA1 Message Date
Zaldimmar
5de3cae599 Redirects: still redirect when site.json can't be read
Only the Plausible report is skipped, with a warning, instead of the click failing with a 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 02:03:14 -05:00
Zaldimmar
0eea9ba13b Links/redirects: Copy link on a saved redirect
A manifest's idLink gives a saved record's own address, shown on its URL ID card with a Copy link button; redirects use it for the /go/ link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 00:48:33 -05:00
Zaldimmar
e060153798 Newsletter: Pick a redirect on every link field
Link fields with redirects: true get a list of Data > Links/redirects that fills in the short link's full address; the newsletter turns it on for its blocks' links and their items' links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 00:39:52 -05:00
Zaldimmar
6289e7203f Links/redirects: /go/ short links with click counts, Plausible and UTM tags (migration 068)
Data > Links/redirects (editors and up) makes short links on our
domain. GET /go/<id> counts the click, reports it to Plausible as a
pageview of /go/<id> (the visitor's browser and address, no key
needed), and redirects (302, no-store) with the link's UTM tags added
to the destination. Unknown ids fall through to the not-found page.
The editor can show a fixed lead-in in the URL ID box (idPrefix).
Vite proxies /go in dev. docs/redirects.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 00:37:26 -05:00
Zaldimmar
3fafd7f92c Docs: newsletter colors are pickers now
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:29:01 -05:00
Zaldimmar
f52a74a383 Newsletter: title color, and color pickers instead of palette dropdowns
Every part color (band, underline, card bar, line, divider, and now the title) is any hex color from a picker; blank is the default, typing none still means no color. Saved drafts keep their colors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:28:52 -05:00
Zaldimmar
24450fba6c Newsletter: Save as a new draft beside Save draft when a draft is open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:18:57 -05:00
Zaldimmar
ce6162d797 History decades: placeholder titles for 1970s to 2010s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:07:31 -05:00
Zaldimmar
77ce5709ef Region pages: drop the raw domestic/international scope from the facts line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 22:50:44 -05:00
Zaldimmar
fd7e1b6fc1 Organization cards: list partners, ministries or a hand-picked set (migration 067)
The Partners section's preset gets "Cards: list" (partners by default,
ministries, or both) and an optional hand-picked list
(page_section_orgs, partners or ministries only, enforced by trigger)
that replaces it in its own order. /organizations takes kind=ministry
and ids=; the plain list still leaves ministries out. Ministry cards
link to their website only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 22:40:24 -05:00
Zaldimmar
635dd21083 Consolidate migrations 023 to 066 into one baseline plus a minimal seed
066_schema.sql is generated from the live v66 schema (checked identical
to the old migrations' result: every object, every table's columns);
066_seed.sql holds only what pages need: the single rows, event scopes,
home sections, site pages and their sections, the Musicians tag. Sample
content (hero words, paths, stats, the Organization address) is no
longer seeded. Both share version 66, so a database at v66 skips them;
one below v66 is refused and has to be brought up by 33be618 first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 22:01:55 -05:00
Zaldimmar
33be618331 Captions for uploaded videos (migration 066)
Video blocks get a Captions field and the hero a Video captions field,
each a WebVTT upload drawn as <track kind="captions" default> on a
video file. The media library takes .vtt (sniffed by its WEBVTT
header, kept as is, always in /uploads/captions/) with its own tab.
Newsletter parts leave the field out. nginx needs text/vtt in
mime.types: docs/media-uploads.md, step 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:55:05 -05:00
Zaldimmar
aaab1a945c Docs: setting up the Plausible reports to Discord
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:46:32 -05:00
Zaldimmar
636388730f Plausible analytics reports to Discord (migration 065)
Daily (yesterday) and weekly (Mondays, last 7 days vs the 7 before)
summaries: visitors, pageviews, bounce rate, visit length, top pages
and sources. Each has its own switch in Site settings > Reports; off
until PLAUSIBLE_API_KEY and DISCORD_WEBHOOK_URL are set. Sent at 8:00
REPORT_TZ (default America/Chicago); analytics_reports keeps one a day.
node src/analyticsReport.js daily|weekly sends one by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:44:25 -05:00
Zaldimmar
b8012c75e9 Video frame stills for featured cards; newsletter Pick from fix
- Image fields take frameFrom/frameWhen: "Frame at" saves a still from
  the row's YouTube or Facebook link to /uploads/thumbnails/
  (POST /api/admin/video-frame, grabFrame in clips.js). Used on video
  featured cards.
- clock/parseClock moved to src/lib/clock.ts, shared with Video clips.
- Newsletter: new drafts no longer store source 'events' (the Pick from
  select's blank choice), which showed as "events no longer exists";
  older drafts load it as blank.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 21:35:08 -05:00
3b45944094 Merge pull request 'People directories, ministries, organization contacts (v1.13.0-data)' (#27) from data into main 2026-10-04 08:04:09 +01:00
Zaldimmar
f8f1c42b2e Version v1.13.0-data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 02:03:50 -05:00
Zaldimmar
0ed7315156 People directories, ministries, organization contacts (migrations 062 to 064)
- People tags (062): Data → People tags (Musicians seeded); a person's
  Directories repeater tags them and their Specialty line shows on
  their tile. A People directory section preset shows a tag's first
  12 and links to its full page, /directory/<tag>, with page meta and
  a sitemap entry. Tiles' details panels show a person's links.
- Ministries (063): a new organization kind. A group picks its
  ministry and its page says "Ministry: <name>", linked to the
  ministry's website. Ministries have no public page, list, sitemap
  or timeline entry, and aren't offered where a record links to its
  organization. organizations is rebuilt for the kind CHECK.
- Organization contacts (064): Data → Contact types; a private
  Contacts repeater on each organization (editors and up, readRole on
  a child collection). Tools → Newsletter → Recipients filters them
  by type, kind, region and published and downloads a Mailchimp CSV.
- A trigger refusing a save with a sentence is shown as that message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:57:34 -05:00
07e56bfd20 Merge pull request 'Accessibility: reading mode for every page, full color blind palettes (v1.12.1-accessibility)' (#26) from accessibility into main 2026-10-04 04:30:54 +01:00
Zaldimmar
27e5fbd690 Reading mode: every page and section reads as text
The reader (ReaderView.tsx) now reads an icon-only link's label, puts
a card's link on its first line or picture when it has no heading,
gives each item of a row of facts or links its own line, keeps line
breaks, skips what CSS hides, turns a form into one line saying it
can't be used there, shows empty table cells as "-", keeps section and
heading ids so #links land, and opens file links as files.

What it can't read draws its own text version (useReadingMode()):
the hero, pathfinder, front page history, event lists (every event,
past ones too), org lists and groups map (every region and group,
linked), history timeline (every year open), schedules (every day,
fold-outs included), people tiles (everyone, with details) and videos.

Also: org names are linked headings, heading levels fixed where cards
repeated their section's, Team pages lose the doubled "Members",
Giving links the treasurer's email and names Church Center.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:12:27 -05:00
Zaldimmar
c79910ef8d Reading mode: text versions of the front page's bands
- Stats: one line per number, no longer stuck at 0 (the count waited
  for the band to scroll into view, which the hidden page never
  does); reduced motion shows the numbers at once too.
- Calendar: the next six weeks from today as a list (date, linked
  title, time, type, place), wherever a calendar is drawn.
- Featured cards: a linked heading and its words each; a video card
  links to its video.
- Countdown: left out, the retreats band shows the same event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 16:54:55 -05:00
Zaldimmar
502a294940 Reading mode spacing, phone map width, no fixed back links
- Reading mode: parts the page draws on their own lines get a space
  between them, so words no longer run together; the column is 60rem
  (was 42rem) and headings are bold in the display face.
- Local groups map scales to its column on a phone instead of holding
  34rem and scrolling sideways.
- Group, region, partner and team pages drop their fixed back link
  (records are reached from many pages); orgListHref is gone.
  Not-found pages keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 16:46:41 -05:00
Zaldimmar
de17da7dc8 Accessibility: reader view and full palette swaps; version v1.12.1-accessibility
- Reading mode is now a reader view (ReaderView.tsx): the page renders
  hidden and its headings, paragraphs, links and described pictures
  are written out in one column, with no header, backdrop or footer.
- Color blind modes swap all three color families (teal, green,
  amber); palette hexes in components and CSS are now
  var(--pal-<family>-<shade>) so the modes reach them.
- CLAUDE.md and docs/updating-data-in-code.md describe both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 16:10:57 -05:00
f4868f19fc Merge pull request 'Accessibility, event photo and analytics (v1.12.0-accessibility)' (#25) from accessibility into main 2026-10-03 09:03:19 +01:00
Zaldimmar
420a8058b4 Plausible analytics from the API; version v1.12.0-accessibility
The API adds Plausible's script to every page it serves, counting
under the hostname of site.json's url, so each deployment reports as
itself (nginx proxies /pa/ to the self-hosted Plausible). One script,
no npm tracker: it follows the app's page changes on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 03:03:07 -05:00
Zaldimmar
e324422f32 Events: a 16:9 event photo apart from the card background
- New Event photo and Photo description (migration 061), shown whole
  at the top of the event's page, as the front page's featured event,
  on featured cards, in newsletter picks and as the share preview.
- The front page's featured event box is 16:9 (was 16:7).
- Card background is only the faded background of the event's card.
- Each event's photo starts as its card background, so nothing
  changes on screen until it's replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 16:03:54 -05:00
Zaldimmar
b816203c0c Accessibility: reading and color blind modes, audit fixes, calendar window
- Accessibility panel: the switch knob stays in its track; the panel
  follows its button in the Tab order and opens on its first switch.
- Reading mode is the page as plain text: one column, no colors,
  pictures, cards or motion; descriptions stay in place.
- Color blind mode (protanopia, deuteranopia, tritanopia, monochrome):
  palette swaps chosen by simulation, applied to code, data and CSS
  colors on public pages only. The newsletter uses the stored palette.
- Audit fixes: focus not hidden by the header, focus on page change
  and in-page jumps, focus return for the menu, day list and people
  details, labelled admin fields and dialogs, keyboard map tiles,
  scrollable tables, and more.
- Calendar asks /events for its six weeks only (?from=&to=); carousels
  take their 12 most recent past events (?past=12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 14:33:09 -05:00
d067c02d33 Merge pull request 'Newsletter: every part editable and movable (v1.11.2-newsletter)' (#24) from newsletter-layout into main
Reviewed-on: #24
2026-10-02 19:50:03 +01:00
Zaldimmar
c81712ef32 Newsletter: a handle between the parts and the preview sets their widths
Drag it, or focus it and use the arrow keys, Home and End; 320px
(a phone's view of the email) up to all but 360px of the parts list.
Remembered in the browser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 01:07:13 -05:00
Zaldimmar
00170ca912 Newsletter: social bar and event countdown parts, full-width builder
- Social bar: a colored band of the site's platform icons, linked;
  no links added shows the footer's (src/data/socialLinks.ts, shared)
- Icons are white and ink PNGs in public/email/, made from
  PlatformIcon.tsx by scripts/email-icons.mjs (no SVG in Gmail/Outlook)
- Event countdown: a picture drawn by /api/countdown/<id>.png when the
  email is opened (days, hours, minutes to local midnight in
  America/Chicago; then happening now; then over), with a fixed line
  under it as of copying
- The builder takes the whole window (useWideAdminPage('full'))

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 00:43:28 -05:00
685e0b2aac Merge pull request 'Third audit, UI half; side nav and request buttons (v1.11.1-audit)' (#23) from audit-ui into main
Reviewed-on: #23
2026-10-02 01:41:42 +01:00
0373f7bde6 Merge pull request 'Third audit: security and server-side scalability (v1.11.0-audit)' (#22) from audit-3 into main
Reviewed-on: #22
2026-10-02 01:41:35 +01:00
Zaldimmar
a943ecd3a3 Version v1.11.2-newsletter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 19:41:23 -05:00
Zaldimmar
3194fdbb7d Newsletter: every part editable and movable
A draft is one ordered list of parts (migration 060, newsletters.layout
as JSON), edited with the content block editor so any part can be
moved, copied or removed, each aligned left or center:
- header: words, a PNG/JPEG logo, band color or none
- title
- any email block; dividers take color, thickness and spacing
- picked items: events, posts or front page cards picked in order,
  with the heading, its underline, the card bar and the button label
- footer: its lines and the line above

Colors come from the palette or none. 057's fixed fields and blocks
are dropped; that migration never reached a live database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 19:37:26 -05:00
Zaldimmar
222c9e69a2 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>
2026-10-01 19:09:21 -05:00
Zaldimmar
11a4555683 Version v1.11.0-audit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 18:45:46 -05:00
Zaldimmar
f99010252f Third audit: security fixes and server-side scalability
Security:
- docx unzip reads each part once (a repeated entry was a zip bomb)
- request files must be named for their type (no PDF named .html)
- team roster hidden when its organization is unpublished
- /people?ids= hides draft organizations, takes 200 ids
- v_events takes the first published host and reads event_hosts
  directly (migration 059, plus an index on person_awards.event_id)
- group accounts refused while access groups are off; group sync
  can't undo a superadmin's disable
- 64 KB body limit on login, feedback and csp-report
- Drive pick-up races no longer 500; random upload boundary

Scalability:
- /events filters by scope, host, status and type on the server;
  Home no longer prefetches every event
- /organizations leaves out bodies and leadership; the map's group
  panel fetches its own
- admin lists page with Show more and a real count
- content request record search and the newsletter's post list
  ask the server

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 18:29:26 -05:00
0bb4b8685f Merge page-fixes (v1.10.7 to v1.10.10) 2026-10-01 10:53:40 +01:00
Zaldimmar
902b4bce12 Version v1.10.10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:53:15 -05:00
Zaldimmar
b2bf24dafb Side nav circle covers a 10-section list: ellipses where a circle can't, clear of the section edge
Stuck, the sun stays centered on the header's bottom left (no curving
back at the top) and becomes a quarter ellipse as tall as the list
needs. At rest it keeps 16px from the section's edge, taking the
least-tall ellipse that covers a tall list. The side nav shows from
2xl (1536px): narrower, a list of two-line titles is as wide as its
column and nothing inside it can cover it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:48:17 -05:00
Zaldimmar
4a937454a8 Side nav circle: a slight drop shadow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:36:17 -05:00
Zaldimmar
5e77da9a66 Corner sun moves to take in the whole list when the window holds it small
Held by the column's width, the stuck circle's center moves down the
screen's edge until the list's corners are inside it, then off the
screen to the left (growing as much, so its right edge stays put).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:35:09 -05:00
Zaldimmar
c335774db5 Side nav circle becomes a quarter-circle sun in the corner once the nav sticks
Stuck, it centers on the header's bottom left and grows to reach past
the list's far corner (never wider than the nav column), easing
between that and its starting place on the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:22:46 -05:00
Zaldimmar
e68a9be9bb Side nav sticks just under the header, its circle rising behind it like a corner sun
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:18:57 -05:00
Zaldimmar
f7b9af7101 Side nav starts level with the first section's title, still sticking just under the header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:09:51 -05:00
Zaldimmar
7f45006253 Side nav entries take their section's color; the circle stays on the "On this page" heading
Hovered and lit entries use their section's accent (as heading text),
the editors' nav keeping the link teal. The circle's leftward shift
stops at the heading's center, so short titles no longer pull it off
the heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 04:03:32 -05:00
Zaldimmar
37c555a7b8 Side nav circle takes the color of the section being read
Green and amber sections give it their palette's lightest shade, teal
and deep teal the teal one (the darkest in dark mode), the shades the
nav's text reads on, easing between them as the reader scrolls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 03:56:33 -05:00
Zaldimmar
1db18a8f91 Side nav and its circle in front of the section lines, the circle starting just below the first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 03:54:39 -05:00
Zaldimmar
a5c4e365cd Side nav circle shows above the first divider, sits further left, and slides left rather than being cut at the content
The nav column clipped on every side, cutting the circle off above
the first section line; it clips sideways only now. The circle keeps
its right edge inside the column, so a narrower window moves it off
the screen's left edge instead of cutting it at the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 03:49:41 -05:00
Zaldimmar
ac794d5ff1 Version v1.10.9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 03:42:02 -05:00