Commit graph

267 commits

Author SHA1 Message Date
Zaldimmar
5aad166054 TODO: the notes.txt items, each with questions to answer before building
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:29:40 -05:00
Zaldimmar
2b41b336f9 Skills: track design-taste-frontend once, in .agents, and add skills-lock.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:18:19 -05:00
Zaldimmar
bdec78010d Add TODO.md and the project's Claude settings and skills (graphify, design-taste-frontend)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:17:46 -05:00
2e6c8b45e6 Merge pull request 'Region featured cards, featured grid, video stills, media naming (v1.13.2-region-cards)' (#30) from region-featured-cards into main
Reviewed-on: #30
2026-10-16 20:13:16 +01:00
Zaldimmar
80b3036498 v1.13.2-region-cards: bump SITE_VERSION
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:10:35 -05:00
Aidan Dona
687ba898f6 Media: name files when saving, and rename them in the library (file and references)
Every upload and save (Upload, Frame at, Video thumbnails, a clip's
Save to library) has a prefilled Name box; the name is also the
readable part of the file's name, plus a short random ending. Fetch
preview names its picture after the page. Rename on the Media page
changes both, moving the file and its small copy and pointing every
record that names it at the new path in one transaction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:47:30 -05:00
Aidan Dona
14a22ca44d Video stills: Frame at on video blocks and the front page's video, and Tools > Video thumbnails (migration 074)
Frame at (a still from a YouTube or Facebook video at a typed time)
now also fills a video block's still and the front page's new Video
still, which the hero shows before its featured video plays. Tools >
Video thumbnails takes one from any link, to download or copy into a
field. All go through the existing POST /api/admin/video-frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:10:44 -05:00
Aidan Dona
31d9f78120 Front page: set the featured cards' grid by hand, columns and a size per card (migration 073)
Front page editor: Featured Content > Columns (2, 3 or 4 across on a
wide screen) and a Size on each card (normal, wide, tall, large).
Blank keeps today's layout: 3 across, the first of three or more
large. Regions and the Community blog stay automatic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:24:10 -05:00
Aidan Dona
910aef78b5 Region list: a closed row previews its featured cards, faded, with a Show featured button
The preview is the top of the cards fading out (a mask, so it works
over the backdrop in both modes); it's inert and hidden from screen
readers, and the button opens the row, moving focus to its toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:03:53 -05:00
Aidan Dona
2977168af5 Regions: featured cards in the region list and on the region's page (migration 072)
A region owns featured cards like the front page does, set in its
editor (shown when Kind is region). They show in its row of the
region list when opened, and in a Featured section on its page.
featured_cards takes an 'organization' owner kind; the table is
rebuilt, and a region's cards go when it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:56:14 -05:00
1edc82fcf7 Merge pull request 'Feature updates: photo framing, group pages, schedule images, content block placement' (#29) from feature-updates into main 2026-10-07 22:52:58 +01:00
Zaldimmar
07be48d770 Uploads: frame a photo before it goes (crop, zoom, position)
A photo field with a shape (crop: square for people, 16:9 for event
photos, covers and hero photos, the photo's own for block images and
schedule graphics) opens Frame the photo when a JPEG, PNG or WebP is
uploaded: drag or arrow keys to place it, a zoom slider, and a shape
menu. The framed part is drawn on a canvas and uploaded in place of
the original; Upload as is skips it. Logos, SVGs and GIFs go as they
are. No new dependency and nothing stored beside the picture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:21:26 -05:00
Zaldimmar
034ad95b8a Organization cards: logo first, the name under it as subtext
Most partners' logos carry their full name, so the logo leads, large
and centered, with the name as a small line under it (still the
card's heading). With no logo, its initials stand in. Cards sit raised
with a shadow and an accent top edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 15:51:47 -05:00
Zaldimmar
8d6bb8c2b8 Content blocks: Shown in the page, the card only, or both (migration 071)
A card block also showed on the record's page (the pages printed the
card's paragraphs above the body), which the editor didn't say. Shown
in now offers The page, The card only, and The card and the page.
Every existing card block becomes both, so nothing on the site moves;
the pages no longer print card paragraphs, and a both block comes
with the page's blocks, in its place in the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 05:27:33 -05:00
Zaldimmar
b55b088e16 Group pages: framed facts, tags for organizations and events, every website and email (migration 070)
- Email buttons went to the link's label, not its URL (splitLinks took
  the label); they use the URL now, with or without mailto:.
- Every website and email row is listed, each with its own label,
  instead of only the first.
- The facts at the top of an organization page sit in a framed card:
  City, Part of <name> Region, Ministry, Meets, Since, and its tags.
- Tags (070): Data -> Tags (Online, In-Person to start) replace the
  Online checkbox on organizations and events. Ticked records get the
  Online tag; v_events reads the "online" tag as is_online, so the
  calendar filter and place lines are unchanged. Tags show on the
  record's page and on group entries in the Community map list and
  grid. The map no longer keeps online groups off their state's tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 04:58:56 -05:00
Zaldimmar
07c15ce96d Schedule presentation and map images for schedule entries (migration 069)
A schedule block on an event page has a Present button, opening
/events/<id>/present in a new tab: a setup screen (days, entries,
seconds for each kind of slide) and then an endless full screen
slideshow of day overviews, entry spotlights with their person,
graphics and map images, its settings kept in the address so a
signage screen can bookmark it.

Schedule entries take a Map image (069), shown in the fold-out in place
of the Google map and as a slide in the presentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 04:47:25 -05:00
Zaldimmar
96b96c3e6c Group map: state hover, state subheadings, entry cards, scroll on click only
Hovering a tile outlines that state in ink while its region stays lit.
The list groups each region's groups under their state's subheading,
each entry a raised card, and leaves out the region's list of states
(its map note stays). The list no longer follows hover; clicking a
state jumps to its subheading (or its region when it has no groups),
and clicking a legend region to that region.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 04:31:19 -05:00
Zaldimmar
915a7bb570 Side nav: size the pill as the pill it is, not an ellipse
rounded-full draws straight sides with round ends, but its height was
worked out for an ellipse, so a narrow window made it about three times
the list's height, running down over the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 04:28:45 -05:00
Zaldimmar
de6d70a0d0 Event cards: clip sideways only, so the past events button isn't cut off on hover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 04:14:48 -05:00
970730de20 Merge pull request 'v1.13.1-data: links/redirects, captions, partner picks, Plausible reports, migration baseline' (#28) from data into main 2026-10-06 10:10:56 +01:00
Zaldimmar
e996462231 v1.13.1-data: bump SITE_VERSION; drop comments from index.html
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 04:10:31 -05:00
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