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

@ -20,7 +20,7 @@ export const organizations = {
{ key: "is_listed", label: "Listed", widget: "bool" },
],
filters: [
{ key: "kind", label: "Kind", options: ["national", "region", "chapter", "partner"] },
{ key: "kind", label: "Kind", options: ["national", "region", "group", "partner"] },
{ key: "is_published", label: "Published", options: [["1", "Live"], ["0", "Hidden"]] },
{ key: "is_listed", label: "Listed", options: [["1", "Listed"], ["0", "Link only"]] },
],
@ -34,7 +34,7 @@ export const organizations = {
path: "kind",
label: "Kind",
widget: "select",
options: ["national", "region", "chapter", "partner"],
options: ["national", "region", "group", "partner"],
required: true,
help: "Changing this swaps which extra fields apply",
},
@ -60,18 +60,18 @@ export const organizations = {
],
},
{
legend: "Chapter",
when: { path: "kind", value: "chapter" },
legend: "Group",
when: { path: "kind", value: "group" },
fields: [
{
path: "chapter.region_id",
path: "group.region_id",
label: "Region",
widget: "select",
optionsFrom: "regions",
blankLabel: "Default: none",
},
{ path: "chapter.meets", label: "Meets", help: "2nd Sundays, 6:00pm" },
{ path: "chapter.started", label: "Started", help: "Since 2021" },
{ path: "group.meets", label: "Meets", help: "2nd Sundays, 6:00pm" },
{ path: "group.started", label: "Started", help: "Since 2021" },
],
},
{ legend: "Place", fields: PLACE_FIELDS },