Commit graph

206 commits

Author SHA1 Message Date
Zaldimmar
eaa9b7589b Bump SITE_VERSION to v1.7.4-feature-updates
It still read v1.5-history, behind every v1.7 tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:31:11 -05:00
Zaldimmar
be07bc1810 Commit the server lockfile
Pins the server's dependencies, sharp included, so the VPS installs
the same versions that were tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:31:10 -05:00
Zaldimmar
9b6d9b9aff Let the showcase seed write a deployed database with --production
A database under /var/lib/ngu is still refused by default; adding
--production allows it, for a server that exists to be tested, and
the script says which database it is writing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 17:05:22 -05:00
Zaldimmar
422e521394 Extend the showcase seed to every record kind
seed-showcase.js now writes a fully filled region (with map areas),
chapter, team with a lead and members, award with recipients, person
(bio, private details, links, current and past roles), an upcoming
retreat with hosts, billed people, links and a card background, a
weekly series, a past event where the award was given, and the
content block showcase post with a real author and a guest. All test
data with showcase- ids.

Published but unlisted by default; --listed also puts it in the
site's lists, map, counts and the History page. It still refuses the
production database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:58:49 -05:00
Zaldimmar
c5f12c769f Improve content blocks: new types, formatting, and a better editor
Blocks (migration 032): video (click to play, sharing the featured
cards' player), button and callout types; quotes get an attribution
and images alt text separate from the caption. Paragraphs, callouts,
quotes and list items take **bold**, *italic*, [text](url), line
breaks and blank-line paragraphs, parsed into elements (never HTML)
with only safe link schemes. A list item's detail no longer uses an
em-dash.

Editor: each block type shows only its fields, with a named type and
a description, and every open block previews itself with the site's
renderer. Any repeater row can now be duplicated or have a new row
inserted below it; nested collections take `when`, and help text can
depend on the row.

src/seed-showcase.js writes a local test post using every block type
and option. It refuses the production database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:50:21 -05:00
Zaldimmar
c62dc84add Point Community page links at the sections that exist
The nav and the org pages' "All regions" and "All chapters" links
used #local and #virtual, but the Community page's sections are
#chapters and #regions, so those links didn't jump anywhere. The
nav labels now match the section headings too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:28:26 -05:00
Zaldimmar
d374f9ac17 Add a blog: posts at /blog/:id and a Community page section
Admin → Blog → Posts (migration 031): our own posts with a
content-block body, cover image, excerpt, date, tags, and authors
shown as person tiles, either People records or a guest name and
photo. A post is a draft until published; Listed works as it does
elsewhere. Posts are on the QR page too.

Admin → Blog → Community section: the first section of the
Community page, with its heading and blurb from the admin, in two
halves, each pinned first and then newest up to its slots. Our posts
come from blog_posts; community posts are pinned link or video cards
(reusing featured cards and Fetch preview), then the newest items
from a list of RSS or Atom feeds. Feeds are read through the link
preview's guarded fetch and cached for 30 minutes, and a failing feed
keeps its last good items.

content_blocks and featured_cards are rebuilt to accept the new owner
kinds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 16:27:08 -05:00
Zaldimmar
d4f65d93b4 Add a Featured Content section to the front page
Front page → Featured cards (migration 030) holds cards of three
kinds: a record on the site, whose title, picture and link fill in
from the record; a link, with a Fetch preview button that reads the
page's title, description and preview image into the media library;
and a video, drawn as a thumbnail that loads the player when pressed.
A 'featured' section draws them.

The cards are shared: featured_cards is owned polymorphically and
FeaturedCards.tsx draws them, ready for the Community blog. Deleting
a record removes its cards; an unpublished record's card is hidden.

The preview fetch only goes to public http(s) addresses on standard
ports, pinned to the vetted IP, with each redirect checked again.

Along the way: repeater fields can show by another field's value (a
hidden one is cleared), a CHECK named as a sentence is shown as the
error, and the timeline's record list is now record_refs for both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:56:29 -05:00
Zaldimmar
960c854611 Keep the editor's section nav in view while scrolling
The nav was sticky inside a wrapper only as tall as itself, so it had
nowhere to travel and scrolled away. The grid cell now sticks instead,
and the mobile "Jump to" bar sits straight in the page for the same
reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:36:02 -05:00
Zaldimmar
8186aff62f Add a section nav to the admin editor and fold repeater rows
Every record editor gets a sticky "On this page" column listing its
field groups and collections (with row counts), lighting the one in
view and marking any with a save error. Below lg it becomes a sticky
"Jump to" menu. Editor pages widen to fit it through a small layout
context; other admin pages keep their width.

Each collection now sits in its own card, and repeater rows fold to
their title line. Rows start folded, with Expand all and Collapse
all; a new row, or one the server rejected, opens itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:33:14 -05:00
Zaldimmar
eaff23839f Add image uploads with a media library, and event card backgrounds
Uploads (migration 028, server/src/media.js, routes/media.js): editors
and up upload JPEG, PNG, GIF, WebP or SVG. Photos are resized to 2400px
and saved as WebP by default, or kept as uploaded on request. Files
live in UPLOADS_DIR, served by nginx in production and by the API in
dev. Admins and up delete, after seeing what still uses the file.

Every image field in the editor is now an image widget: preview, the
path as text, Upload and Choose from library. A new Media page lists
the library. Org lists and event cards now resolve logos through
media.ts, so uploaded paths work there.

Events get a card_image (migration 029): a photo behind the card under
a light veil so the text stays readable. The card's size is unchanged.

Setup for production is in docs/media-uploads.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 15:04:45 -05:00
Zaldimmar
cd393e4ab2 Add a Listed flag: published records reachable only by their link
is_listed (migration 027) sits beside is_published on organizations,
events, people, teams and awards. Unticked, the record's own page
still works, but the site's lists leave it out: the list routes, a
region's chapters, an organization's events, teams and awards, the
QR page's directory, and the front page's counts and countdown.
Places where someone attached it by hand (rosters, hosts, billed
people, recipients, timeline, a pinned countdown) still show it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 14:50:41 -05:00
Zaldimmar
3c02eb8971 Show platform icons on link buttons
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>
2026-09-27 14:45:20 -05:00
Zaldimmar
99c3a87c87 Add a Tools block to the admin home with the QR code generator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 14:42:12 -05:00
Zaldimmar
c4970af3b8 Colour event card buttons, add address to the footer, steady the map list
- Event cards: the link buttons (Register and the like) and "Event
  details" now take the card's colour for their text as well as
  their border: the event's own colour, or the band's default (teal
  unless the page sets one). They were falling back to the card's
  black. The two "no registration" notices lose their em-dashes.
- Footer: the logo moves above the site map, a size larger, with the
  street address (marked as physical, not for mail) and the 501(c)(3)
  statement and tax ID under it. The site map spreads across the full
  width below, six columns on large screens. The details are one
  constant at the top of Footer.tsx.
- Chapter map: hovering a region in the list no longer scrolls the
  list. The list still follows hovers and clicks on the map and the
  legend; a hover inside the list only highlights.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:20:51 -05:00
Zaldimmar
68f08b633c Let the front page countdown filter by event scope and type
Admin > Front page > Countdown gains two optional dropdowns, "Only
this scope" and "Only this type", each defaulting to any. They narrow
which event counts as "the next one": National + Retreat counts down
to the next national retreat and skips a sooner regional class. A
pinned event still wins over both. When nothing matches, the
countdown band doesn't render, as before.

Migration 026 adds front_page.countdown_scope_id, a foreign key to
event_scopes (ON DELETE SET NULL, so removing a scope returns it to
"any"), and countdown_event_type, checked against the same values as
events.event_type. Adding an event type now widens both CHECKs; the
note in eventTypes.ts and the guide say so.

Also clears the older em-dashes from home.js and eventTypes.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:59:29 -05:00
Zaldimmar
54bf649b8d Tidy the admin editor's text: previews, blank options, no em-dashes
Your wording pass on adminSchema.ts and fields.tsx: "Default: ..."
blank options, "eg." examples, "URL ID" for slugs, and relabelled
front page sections, stat sources and hero fields.

On top of it:

- Content block row titles end with an ellipsis when the paragraph
  is cut. preview() in src/lib/text.ts does it for anything that
  shortens text: it collapses whitespace, cuts on a word and adds
  "..." only when it actually shortened.
- No em-dashes in the editor, front end or server: placeholders
  ("Internal note: ..."), the Organizations blurb, the URL ID help,
  empty table cells (now "-"), the Award dropdown ("Torch Award
  (NGU)" in OPTION_QUERIES), a boot error message, and every comment
  in the admin files. Also cleared from the files added this branch
  (QR page, directory route, embeds, hero, migration 024), and the
  QR page's team labels read "Board (NGU)".
- A few comments where removing the dash had run two sentences
  together get a comma, colon or parentheses back.
- docs/updating-data-in-code.md matches the new labels and gains a
  "Writing text in the editor" section with these conventions;
  CLAUDE.md lists them under Rules and gotchas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:38:24 -05:00
Zaldimmar
e35d09b172 Add a guide to updating data that isn't in the database
docs/updating-data-in-code.md covers content that lives in code
rather than SQLite and how to change it:

- The two kinds of admin dropdown: filled from records
  (optionsFrom, change the record) and fixed lists (options, in
  adminSchema.ts), and that a bare-string option shows its stored
  value while a [value, label] pair shows the label.
- Relabelling a dropdown is adminSchema.ts alone; adding, removing
  or renaming a stored value is a migration, both descriptor halves
  and whatever the public site renders it with.
- A table of every dropdown in the editor, where its values and
  labels live, and what on the public site depends on them.
- The front page's three kinds of "section name" (the heading the
  admin sets, the dropdown label, the subnav link) and stat sources.
- Every other piece of code-owned content: nav, page section
  manifests, banner, history decades, map grid, feedback types,
  public label maps, roles, SITE_ORIGIN.

CLAUDE.md points at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:44:35 -05:00
Zaldimmar
7eeac6b22f Let the hero's photos or brand backdrop sit behind a stream or video
hero_mode answered two questions with one value, so a livestream or
featured video could only ever sit on the brand backdrop. It's now
two settings:

  Background        brand | photos
  Beside the words  nothing | livestream | featured video

Any background goes with any feature: the photo slideshow can run
behind the stream, with its captions, progress bars and pause button
as before. The fallbacks are unchanged: photos with none added shows
brand, and a feature with no link set shows nothing beside the words.

Migration 025 adds hero_backdrop and hero_feature, maps each row's
hero_mode onto them (photos → photos + nothing, livestream/video →
brand + that feature, brand → brand + nothing) and drops hero_mode.
ADD/DROP COLUMN rather than a rebuild, so front_page's children and
touch trigger are untouched. The API's hero sends `backdrop` and
`feature` in place of `mode`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:29:40 -05:00
Zaldimmar
5b9c8f7391 Call the descriptor sync once at boot, and rename the package
index.js ran syncDescriptorsWithSchema twice on one line, a paste
slip from v1.4. It's idempotent, so the second call only re-read
every table's schema; boot now checks once.

package.json's name was still "figma-make-app" from the original
export; it's "ngu-web-app" now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:26:12 -05:00
Zaldimmar
97c1827ca9 Add a QR code page at /qr for any page on the site
Pick "Main navigation" or a kind of record (events, organizations,
teams, awards, people), then the page or record, and for a main page
optionally one of its #sections. The code, a copy-link button, and
PNG (1024px) and SVG downloads follow. An "NGU dove in the centre"
option puts the dove on a white badge over the code and raises error
correction to H so it still scans.

Codes always point at SITE_ORIGIN (https://nextgenerationofunity.org,
in src/lib/site.ts), so one made on localhost works on a poster.
Main pages come from navConfig.ts and record URLs from hrefs.ts, the
same sources the site links with.

GET /api/directory lists every published record with a page, as id,
name and (for organizations) kind, each filtered by the same rule as
that record's own page: a team also needs its organization
published. /api/people only answers for ids it's given, so there was
no public list to read.

The `qrcode` package does the encoding; QrCode.tsx draws the modules
as one SVG path, so the preview and both downloads are one picture.
The page is lazy-loaded so the encoder isn't in the main bundle.

The page is unlisted: not in navConfig, so not in the header or
footer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:24:08 -05:00
Zaldimmar
8c26ec4906 Add a featured video mode to the front page hero
A fourth hero mode beside brand, photos and livestream: a recorded
video next to the words, under a "Featured video · <title>" badge.
Unlike the livestream it never autoplays: an embed waits for play,
and a file shows the browser's own player with preload="metadata".

video_url takes a YouTube, Vimeo or Facebook link (turned into an
embed, as the livestream's is) or a video file: a filename in
public/front-page/, a /path, or an https URL ending in .mp4, .webm,
.m4v, .mov or .ogv. Anything else that can't be framed still gets a
"Watch the video" button. Files follow the embeds' https-only rule.

Its own video_url and video_title columns rather than the
livestream's, so both can be set up ahead of time and the mode
switches between them. Migration 024 rebuilds front_page for the
wider hero_mode CHECK; its children, keys and touch trigger survive.

embeds.ts gains an autoplay switch shared by both modes, and
videoSource() to tell a file from an embed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:55:51 -05:00
b10a263a90 Merge pull request 'Schema cleanup, publishable awards, event scopes, and a consolidated baseline' (#10) from cleanup into main
Reviewed-on: #10
2026-09-26 23:44:11 +01:00
Zaldimmar
625329fa7c Consolidate migrations 001–023 into one baseline schema
023_schema.sql is the whole database as the 23 migrations left it:
every table in its final shape (columns added by ALTER folded into
their CREATE), its indexes, the five views, the seed rows (event
scopes, the shipped front page) and the triggers, last. The reasoning
from the old files that still applies sits next to what it explains;
the rest is in git history.

A fresh database runs it and lands at v23; one already at v23 skips
it. migrate() now treats the first file as a baseline and refuses a
database between v1 and v22 with a message saying to upgrade it on
an older release first, rather than failing halfway on CREATE TABLE.
Production is at v19, so the previous commits on this branch
(020–023) have to be deployed before this one.

Checked by building a database from the old files and one from this
file and comparing them: strictness, columns, types, defaults,
nullability, keys, foreign keys and their actions, CHECK constraints,
index definitions, view and trigger SQL, and seed rows all match.

Comments that cited migration numbers now point at the schema, and
CLAUDE.md describes the baseline and where new migrations go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:34:23 -05:00
Zaldimmar
7bc71cef8d Send events oldest first so the carousel's past sits behind it
25e592b ordered /events upcoming-first, then past latest-first.
The carousel shows the list as it arrives and opens on the first
upcoming event, so past events landed after the upcoming ones and
"previous" no longer went back in time. Plain chronological order
(undated last) puts them before it again; the grid splits upcoming
from past itself, so it reads the same either way. Org pages share
the order and the carousel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:22:40 -05:00
Zaldimmar
25e592bfea Clean up the schema: drop unused tables, rename scopes, publishable awards
Migrations 020–023, with the code that reads each:

- 020 drops people_lists, people_list_members, v_chapters and
  v_person_affiliations. Nothing queried any of them.
- 021 renames event_sections to event_scopes and events.section_id
  to scope_id, finishing what 015 described. The API sends `scopes`
  and `scope_id`, and useEvents, EventListCards and EventCalendar
  take `scope`. It also inserts national/regional/partner, which only
  the retired seed ever created: a database built from migrations
  alone had no scope for the Retreats bands.
- 022 drops events.sort_order and people.sort_order. Events now sort
  by date (upcoming soonest first, past latest first, undated last)
  on /events, org pages and the countdown. People were only ever
  sorted by sort_name on the site. Every other sort_order stays.
- 023 rebuilds teams with created_at and updated_at plus a touch
  trigger, so the teams editor gets the same optimistic concurrency
  as the other entities.

Awards can be drafted: is_published (added in 011) is on both
descriptor halves with a Publishing group, and the award list, award
page, org awards and event awards leave drafts out.

The migration runner now turns foreign keys off around the per-file
transactions and runs foreign_key_check before each commit. PRAGMA
foreign_keys is a no-op inside a transaction, so 009's warning was
right and a rebuild of a referenced table (023) couldn't be written
otherwise. CLAUDE.md is updated to match.

Also removes the stray src/App.tsx.save.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:09:58 -05:00
Zaldimmar
8790f861fe Point the front page subnav at the new home sections
The admin-driven home dropped the #about and #events sections. The
subnav now links to what the page has: the hero, connect, retreats,
calendar and the numbers band (labelled About).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 16:26:21 -05:00
26d6844bc8 Merge pull request 'Retire the one-time seed script' (#9) from chore/retire-seed into main
Reviewed-on: #9
2026-09-26 22:21:20 +01:00
Zaldimmar
370fce6e9a Retire the one-time seed script
seed.js moved the v1.2 static content into SQLite. Its chapter
source, src/pages/chapters.js, was deleted in the same commit that
added it, and the default path pointed at src/data/chapters, which
is the API hook and has none of GROUPS/SPLITS/CHAPTERS. Given the
old file, it still fails on today's schema (events.host_org_id went
with co-hosting), and a working run would wipe everything entered
through the admin since.

The database is the source of truth now. Removes seed.js, the
seed-only src/data/events.ts, and the seed command from CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 16:18:49 -05:00
cbf440bed9 Merge pull request 'Revert implicit-any typing and convert src/ JavaScript to TypeScript' (#8) from types/ts-conversion into main
Reviewed-on: #8
2026-09-26 22:12:38 +01:00
Zaldimmar
22d5328885 Convert src/ JavaScript modules to TypeScript
Renames every .js module under src/ to .ts (api, useResource,
adminSchema, navConfig, adminNav and src/data/*) and points imports,
comments and the seed script's module paths at the new names. Their
types now come from inference; no .d.ts files and no shape
interfaces.

tsc stays strict (noImplicitAny off). The errors inference leaves
behind get the lightest fix that clears them: `any` on empty state,
contexts and list defaults, `: any` on components with optional or
spread props, class fields on ApiError, and option shapes on
get/useResource.

Kept as real types, since they belong to modules that were already
TypeScript and later features import them: PageShell's ShellSection
and props, useContent's corrected record types (website/email/
instagram are bare strings) and EventListItem, and TimelineRef's
orgKind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:39:42 -05:00
Zaldimmar
5cedc68fd7 Revert the implicit-any typing of src/
Reverts 2428f44. The .d.ts files beside the JS modules and the
annotations threaded through src/ to satisfy noImplicitAny go;
tsconfig turns noImplicitAny off instead. The JS modules become
TypeScript in the next commit, so their types come from inference.

Kept from that commit, since they're runtime fixes rather than types:
- OrganizationDetail's website and email pills get an href and label
  (they arrive as bare strings, not link objects).
- The chapter map falls back to FALLBACK_COLOR for a region with no
  colour instead of painting its tiles black.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:32:28 -05:00
4618ad8e67 Version 1.7 Merge pull request 'Admin-driven front page with event calendar' (#7) from feature/alt-front-page into main
Reviewed-on: #7
2026-09-25 12:42:33 +01:00
Zaldimmar
2e125b4629 Add a reusable event calendar and put it on the front page
EventCalendar shows events on a month grid or as a list of the
month. Multi-day events are lane-packed bars that break at week
edges, series events appear on every meeting with their time, and
clicking a day lists everything on it. Phones get the list. Visitors
can narrow by scope, type, online only and search, all starting at
"all"; a page can pin section, host or type through props, which
hides that control.

Migration 019 rebuilds front_page_sections to allow a 'calendar'
band and slots it in after the retreats carousel, so it can be
reordered, retitled or hidden from the Front page editor.

useEvents drops its empty fallback so a failed request surfaces as
an error rather than an empty list, and returns the scope list
alongside the events for the calendar's scope filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 06:28:42 -05:00
Zaldimmar
641ab167b0 Put the NGU dove at the centre of the brand hero's rings
DoveMark carries the dove path from the original home page as its
own component. The hero draws it at the rings' centre, upright while
they turn, with a soft glow and a gentle bob that stops under reduced
motion. The rings' opacity moves from the SVG to their own group so
the dove isn't dimmed with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 05:49:52 -05:00
Zaldimmar
6a69084de2 Replace the front page with an admin-driven home
The home page is rebuilt from scratch and configured from a new
Front page tab in the admin, backed by migration 017 and served by
GET /api/front-page.

Hero: brand, photos (crossfading slideshow with progress and pause)
or livestream (YouTube/Facebook/Vimeo embed with a LIVE badge),
switched by hand. After it, bands the admin can reorder, retitle or
hide: a countdown to the next event (series-aware), the National
Retreats carousel, a numbers band (typed in or counted from the
database), a horizontal rail of featured timeline entries, and a
"Find your way in" pathfinder replacing the old connect section.

The CRUD engine gains a `singleton` flag: the entity has one row,
made by its migration, and create and delete are refused. The list
screen opens that row and the editor drops the slug, back link and
delete. shapeSeries moves to shape.js so /front-page can share it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 05:37:42 -05:00
b4b013209b Merge pull request 'Add person detail page and link people tiles to it' (#6) from feature/person-detail into main
Reviewed-on: #6
2026-09-25 11:13:29 +01:00
Zaldimmar
6ec2fb240a Add person detail page and link people tiles to it
GET /api/people/:id returns a published person's profile, public
roles (current and past), published events they were billed at or
hosted, and public awards, each under the same visibility rules its
own page applies. public_phone is never sent.

PersonDetail renders it at /people/:id, the route personHref already
pointed at. PeopleTiles links a tile with a people id to that page;
an expandable tile keeps its details panel and the panel carries a
"View full profile" link instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 05:05:45 -05:00
300c9b74f0 Merge pull request 'Add recurring series to events' (#5) from feature/event-series into main
Reviewed-on: #5
Tested page. Works.
2026-09-25 11:03:06 +01:00
Zaldimmar
5ed7994a64 Add recurring series to events
A Series checkbox under When opens a panel for the schedule:
weekly on chosen weekdays, monthly by date, or monthly by weekday
position, every N weeks or months, with meeting times and an
optional meeting count. starts_on anchors the schedule and ends_on
bounds it, so effective_status needs no change.

Occurrences are derived, not stored. src/lib/eventSeries.ts builds
the schedule label shown on cards and the event page, and the
upcoming dates listed on the event page.

Migration 016 adds the columns; the CRUD engine gains a time type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 04:46:49 -05:00
aebc1c302b Merge pull request 'Fix the remaining type errors in src/' (#4) from types/remaining-errors into main
Reviewed-on: #4
2026-09-25 10:34:30 +01:00
Zaldimmar
1b2af2bfbd Fix the remaining type errors in src/
- Declare the --ig-fill custom property on React's CSSProperties once,
  instead of casting the style prop in Footer, Home and EventList-Cards.
- Type Footer's Get_In_Touch links as internal or external, so the
  external branch type-checks.
- Pass undefined rather than null for an absent gradient (Home) and
  Instagram URL (EventList-Cards).

tsc --noEmit is now clean, with and without --noImplicitAny.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 04:33:21 -05:00
9b91a9aa78 Version 1.6 Type-updates - Merge pull request 'Type src/ against API and database shapes, fixing implicit anys' (#3) from types/implicit-any into main
Reviewed-on: #3
2026-09-25 10:25:04 +01:00
Zaldimmar
2428f4412a Type src/ against API and database shapes, fixing implicit anys
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>
2026-09-25 04:13:46 -05:00
5286cae9ca Merge pull request 'CLAUDE.md: add commands section, fix role and logo details' (#2) from docs/claude-md-commands into main 2026-09-25 09:25:09 +01:00
Zaldimmar
32d04b63e9 Add commands section to CLAUDE.md and fix role/logo details
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 03:24:00 -05:00
Zaldimmar
75c40cfb73 Added update CLAUDE.md 2026-09-25 03:20:11 -05:00
809c3c56c5 Merge pull request 'Add README with test line' (#1) from test-claude into main 2026-09-25 09:13:46 +01:00
Zaldimmar
ea58c5ce3f Add README with test line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 03:06:55 -05:00
Zaldimmar
bce1a3fcf6 Add CLAUDE.md 2026-09-25 03:05:45 -05:00