Let a content request carry the record's details, and open its editor

The Request form asks each type for its main details (a chapter's
city, meeting time, website and email; an event's dates, venue and
registration link...), stored as one JSON column (migration 049). The
server only checks the shape; the fields are src/data/requestTypes.ts.

Forms → Content requests shows them, and for a new record opens the
New editor filled in (URL ID from the name, links and a description
paragraph added); for an update, picks the record (closest name
first) and opens it with each requested value beside the current one
to use or skip. Nothing is saved until Save.

Also centres the image and file pickers, which Tailwind's reset had
pinned to the top left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 22:21:33 -05:00
parent 7876e060e7
commit 4b249c9e52
10 changed files with 529 additions and 22 deletions

View file

@ -0,0 +1,12 @@
-- ═══════════════════════════════════════════════════════════════
-- 049 REQUEST DETAILS
--
-- The Request form's details for the record it's about (a chapter's
-- city, website and meeting time, an event's dates...), as one JSON
-- object of strings: { "city": "Kansas City", "meets": "..." }. Which
-- keys there are is src/data/requestTypes.ts's business; the server
-- only checks the shape (routes/requests.js). Forms → Content
-- requests shows them and opens the record's editor filled in.
-- ═══════════════════════════════════════════════════════════════
ALTER TABLE feedback ADD COLUMN details TEXT CHECK (details IS NULL OR json_valid(details));