NGU-Web/server/src
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
..
admin-schema Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
migrations Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
routes Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
accessGroups.js Third audit: security fixes and server-side scalability 2026-10-01 18:29:26 -05:00
admin-cli.js Fix the Panel account bug and harden what the second audit found 2026-09-29 02:34:26 -05:00
admin-crud.js People directories, ministries, organization contacts (migrations 062 to 064) 2026-10-03 22:57:34 -05:00
admin-schema-sync.js Tidy the structure the audit found 2026-09-29 03:02:21 -05:00
admin-schema.js Navigation in the admin: header and footer links, page titles, hidden pages, Shop 2026-10-16 18:01:02 -05:00
analyticsReport.js Links/redirects: /go/ short links with click counts, Plausible and UTM tags (migration 068) 2026-10-05 00:37:26 -05:00
auth.js Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
clips.js Media: name files when saving, and rename them in the library (file and references) 2026-10-08 15:47:30 -05:00
db.js Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
discordAuth.js Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
docx.js Third audit: security fixes and server-side scalability 2026-10-01 18:29:26 -05:00
drafts.js Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
feeds.js Fix the Panel account bug and harden what the second audit found 2026-09-29 02:34:26 -05:00
googleAuth.js Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
googleService.js Third audit: security fixes and server-side scalability 2026-10-01 18:29:26 -05:00
index.js Drafts of every record, previewed on the real page 2026-10-16 18:21:53 -05:00
invites.js Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
linkPreview.js Fix the Panel account bug and harden what the second audit found 2026-09-29 02:34:26 -05:00
media.js Media: name files when saving, and rename them in the library (file and references) 2026-10-08 15:47:30 -05:00
migrate-cli.js v1.3 - added an sqlite db and built data structure 2026-09-25 02:35:46 -05:00
notify.js Add a test notice button to Site settings 2026-09-29 17:18:43 -05:00
pageMeta.js Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
rateLimit.js Harden sign-in: __Host- session cookie and a per-email login lock 2026-09-29 02:11:57 -05:00
seed-showcase.js Content blocks: Shown in the page, the card only, or both (migration 071) 2026-10-06 05:27:33 -05:00
shape.js Profile accounts: invites, any-Google sign-in, claiming People, visibility, Discord 2026-10-16 18:14:30 -05:00
siteNav.js Navigation in the admin: header and footer links, page titles, hidden pages, Shop 2026-10-16 18:01:02 -05:00
theme.js Write the site in US English 2026-09-30 13:24:11 -05:00
themeDefaults.js Try the revised palette (teal, green, amber, ink) 2026-09-30 16:51:14 -05:00