civic hubby
🫒🫒🫒🫒 🫒🫒🫒 🫒🫒🫒🫒
🫒 🫒 🫒 🫒
🫒🫒🫒🫒 🫒 🫒 🫒
🫒 🫒 🫒 🫒
🫒🫒🫒🫒 🫒🫒🫒 🫒🫒🫒🫒
pnpm install- Copy
.env.exampleto.env.localand fill in the project URL and publishable key from the Supabase dashboard. - Set up Supabase as described in docs/auth.md.
pnpm dev
pnpm check runs the type check, lint and the accessibility tests. It must pass before you push.
src/
app/ Routes. Pages stay thin: they check access, then render a feature.
admin/ The admin portal: one folder per sidebar section (People, Outbox, Payments, ...).
design/ Designers' screens on demo data (member-facing flows), with the State lab.
prototypes/ PM prototypes for scoping. Throwaway; never import from them.
components/ The live component showcase at /components.
features/ One folder per feature: server actions, queries and UI.
components/
ui/ The design-system kit. Build UI from these (tokens.ts holds every token).
patterns/ Layouts composed from the kit: Sidebar, ListPage, PageLoading, SkipLinks, RouteError.
lib/ Small shared helpers; supabase/ has the Supabase clients.
proxy.ts Keeps the session fresh and sends signed-out visitors to sign in.
supabase/ Database migrations and the sign-in email template.
tests/ Playwright specs (accessibility, forms, search, survey).
docs/ See below.
docs/launch/: start with docs/launch/README.md. Everything needed to take the admin portal live.docs/components/: one doc per kit component (index).docs/patterns/: the layout patterns (SidebarLayout, ListPage, PageLoading, SkipLinks).docs/design/: design principles, motion, the State lab and per-screen copy.docs/backend/: how the backend connects, and what each feature needs (index).docs/product/: links to the product context in Notion.docs/auth.md: how sign-in works.
Settings has a Developer mode switch (off by default, saved in the browser). It shows the comment tool, the State lab and the notifications lab. These are for review and go before launch.