Call local chapters groups, everywhere

The organization kind is 'group', its side table is groups, pages
live at /groups/<id> and the Community page's section is #groups.
Migration 052 converts existing databases: the kind and the tables
whose CHECKs name chapters are rebuilt, the front page count and
request category follow, and the site's own /chapters/ and
#chapters links in records are rewritten. Request files now go in
Requests/Groups on the shared drive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 13:19:51 -05:00
parent 175a18976d
commit 38aff34c97
42 changed files with 473 additions and 254 deletions

View file

@ -6,8 +6,8 @@
CATEGORIES in server/src/routes/requests.js (and the CHECK in
046_content_requests.sql); keep them in step.
A link can open the form on one: requestLink("chapter") is
/request?type=chapter. People, teams and awards have no buttons on
A link can open the form on one: requestLink("group") is
/request?type=group. People, teams and awards have no buttons on
the site, but are here to pick.
`fields` are the details the form asks for on top of the name and
@ -24,7 +24,7 @@
name, which the admin picks by hand
`entity` is the admin record it becomes, `preset` the values a new
one starts with (a chapter is an organization of kind chapter), and
one starts with (a group is an organization of kind group), and
`heading` the editor field the request's name fills.
═══════════════════════════════════════════════════════════════ */
@ -91,20 +91,20 @@ export const REQUEST_TYPES: RequestType[] = [
],
},
{
id: "chapter",
label: "Chapter",
hint: "A local NGU chapter",
id: "group",
label: "Group",
hint: "A local NGU group",
actions: ["new", "update"],
subject: "The chapter's name",
subject: "The group's name",
entity: "organizations",
heading: "name",
preset: { kind: "chapter" },
preset: { kind: "group" },
fields: [
{ key: "region", label: "Region it's in", placeholder: "eg. Great Lakes" },
CITY,
STATE,
COUNTRY,
{ key: "meets", label: "When it meets", placeholder: "eg. 2nd Sundays, 6:00pm", to: { path: "chapter.meets" } },
{ key: "meets", label: "When it meets", placeholder: "eg. 2nd Sundays, 6:00pm", to: { path: "group.meets" } },
WEBSITE,
EMAIL,
DESCRIPTION,