NGU-Web/src/navConfig.ts
Zaldimmar 38aff34c97 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>
2026-09-30 13:19:51 -05:00

59 lines
1.9 KiB
TypeScript

// Single source of truth for navigation.
// Add a page here and in App.jsx, and both tiers of the nav update.
export const PAGE_LINKS = [
{ label: "Home", path: "/" },
{ label: "Retreats", path: "/retreats" },
{ label: "Community", path: "/community" },
{ label: "Leadership", path: "/leadership" },
{ label: "Resources", path: "/resources" },
{ label: "History", path: "/history" },
];
// Sections belong to a page, keyed by that page's path.
// A page with no sections gets no subnav row.
export const PAGE_SECTIONS = {
"/": [
{ label: "#Featured", hash: "#hero" },
{ label: "#Connect", hash: "#connect" },
{ label: "#Retreats", hash: "#retreats" },
{ label: "#Calendar", hash: "#calendar" },
{ label: "#About", hash: "#numbers" },
],
"/retreats": [
{ label: "National", hash: "#national" },
{ label: "Regional", hash: "#regional" },
{ label: "Partner Events", hash: "#partner"},
],
"/community": [
{ label: "Community Blog", hash: "#blog" },
{ label: "Local Groups", hash: "#groups" },
{ label: "Unity Regions", hash: "#regions" },
{ label: "Partner Organizations", hash: "#partners" },
],
"/leadership": [
{ label: "Board & Staff", hash: "#board-staff" },
{ label: "Retreat Team", hash: "#retreat-team" },
{ label: "Committees & Volunteers", hash: "#committees" },
{ label: "Contact Us", hash: "#contact" },
],
"/resources": [
{ label: "Unity Teachings", hash: "#unity" },
{ label: "Branding & Marketing", hash: "#branding" },
{ label: "Partner Resources", hash: "#partner" },
],
"/history": [
{ label: "Timeline", hash: "#timeline" },
],
};
// Right-side actions. `variant` picks the styling, not the destination.
export const NAV_ACTIONS = [
{ label: "Contact Us", to: "/leadership#contact", variant: "ghost" },
{
label: "Give",
to: "/give",
variant: "fancy",
external: true,
},
];