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

@ -28,7 +28,7 @@ export const organizations = {
},
columns: [
enumeration("kind", ["national", "region", "chapter", "partner"], {
enumeration("kind", ["national", "region", "group", "partner"], {
required: true,
}),
text("name", { required: true }),
@ -58,10 +58,10 @@ export const organizations = {
],
},
{
key: "chapter",
table: "chapters",
key: "group",
table: "groups",
idColumn: "id",
when: { column: "kind", value: "chapter" },
when: { column: "kind", value: "group" },
columns: [text("region_id"), text("meets"), text("started")],
},
],