NGU-Web/src/lib
Aidan Dona a6c66d4607 Drafts of every record, previewed on the real page
Migration 077 keeps one draft per record of any entity. Saving a draft
checks it by applying it in a transaction that is rolled back; Preview
opens the record's page in a tab that sends X-Draft-Preview, and the
server answers those reads from a second connection holding the applied
draft, then rolls back, so nobody else sees it. Publish is the ordinary
save, which drops the draft. tx() now nests as a savepoint.

Also commits TODO.md: the answered questions, and parts 1 to 3 moved to
Done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 18:21:53 -05:00
..
adminSchema Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
adminSchema.ts Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
adminTitle.tsx Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
adminWidth.tsx Newsletter: social bar and event countdown parts, full-width builder 2026-10-02 00:43:28 -05:00
api.ts Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
auth.tsx Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
clock.ts Video frame stills for featured cards; newsletter Pick from fix 2026-10-04 21:35:08 -05:00
color.ts Accessibility: reader view and full palette swaps; version v1.12.1-accessibility 2026-10-03 16:10:57 -05:00
contents.ts Give blog posts an optional table of contents 2026-09-29 09:21:48 -05:00
embeds.ts Video stills skip YouTube's gray placeholder; timeline back to teal dots; people rows fill 2026-09-30 16:44:42 -05:00
eventData.ts Accessibility: reading and color blind modes, audit fixes, calendar window 2026-10-02 14:33:09 -05:00
eventSeries.ts Tidy the structure the audit found 2026-09-29 03:02:21 -05:00
eventTypes.ts Write the site in US English 2026-09-30 13:24:11 -05:00
focus.ts Accessibility: reading and color blind modes, audit fixes, calendar window 2026-10-02 14:33:09 -05:00
frontPageBands.ts Navigation: section dropdowns, a side nav, Home's sections from the front page 2026-09-30 23:37:36 -05:00
hrefs.ts Navigation in the admin: header and footer links, page titles, hidden pages, Shop 2026-10-16 18:01:02 -05:00
media.ts Finish the audit leftovers 2026-09-28 22:49:07 -05:00
motion.ts Accessibility: reading and color blind modes, audit fixes, calendar window 2026-10-02 14:33:09 -05:00
navSections.ts Page editors: Retreats, Community, Resources, Organization and History built from sections 2026-10-01 00:15:30 -05:00
newsletter.ts Newsletter: title color, and color pickers instead of palette dropdowns 2026-10-04 23:28:52 -05:00
organizations.ts Organization cards: list partners, ministries or a hand-picked set (migration 067) 2026-10-04 22:40:24 -05:00
platforms.ts Show platform icons on link buttons 2026-09-27 14:45:20 -05:00
qr.ts Write the site in US English 2026-09-30 13:24:11 -05:00
readingMode.ts Accessibility: reader view and full palette swaps; version v1.12.1-accessibility 2026-10-03 16:10:57 -05:00
roles.ts Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
sections.tsx Third audit, UI half; side nav on top; request button colors 2026-10-01 19:09:21 -05:00
site.ts A 404 page that suggests what the address was for 2026-09-30 20:32:00 -05:00
suggest.ts A 404 page that suggests what the address was for 2026-09-30 20:32:00 -05:00
text.ts Clean up code found in the audit 2026-09-28 22:02:03 -05:00
timeline.ts Tidy the structure the audit found 2026-09-29 03:02:21 -05:00
timelineRefs.ts Finish the audit leftovers 2026-09-28 22:49:07 -05:00
useAccount.ts Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
useBlog.ts Page editors: Retreats, Community, Resources, Organization and History built from sections 2026-10-01 00:15:30 -05:00
useCommunity.ts Call local chapters groups, everywhere 2026-09-30 13:19:51 -05:00
useContent.ts Regions: featured cards in the region list and on the region's page (migration 072) 2026-10-07 16:56:14 -05:00
useDirectory.ts People directories, ministries, organization contacts (migrations 062 to 064) 2026-10-03 22:57:34 -05:00
useFrontPage.ts Video stills: Frame at on video blocks and the front page's video, and Tools > Video thumbnails (migration 074) 2026-10-08 12:10:44 -05:00
useHistory.ts Finish the audit leftovers 2026-09-28 22:49:07 -05:00
useRecord.ts Third audit, UI half; side nav on top; request button colors 2026-10-01 19:09:21 -05:00
useResource.ts Accessibility: reading and color blind modes, audit fixes, calendar window 2026-10-02 14:33:09 -05:00
useSiteNav.ts Navigation in the admin: header and footer links, page titles, hidden pages, Shop 2026-10-16 18:01:02 -05:00
useSitePages.ts Organization cards: list partners, ministries or a hand-picked set (migration 067) 2026-10-04 22:40:24 -05:00
useSmallImage.ts Make the site faster to load and lighter on the server 2026-09-29 02:41:45 -05:00
version.ts v1.13.2-region-cards: bump SITE_VERSION 2026-10-16 14:10:35 -05:00