Skip to content

Repository files navigation

social-development-centre

civic hubby

🫒🫒🫒🫒   🫒🫒🫒     🫒🫒🫒🫒
🫒        🫒   🫒   🫒
🫒🫒🫒🫒   🫒    🫒  🫒
     🫒   🫒   🫒   🫒   
🫒🫒🫒🫒   🫒🫒🫒     🫒🫒🫒🫒

Setup

  1. pnpm install
  2. Copy .env.example to .env.local and fill in the project URL and publishable key from the Supabase dashboard.
  3. Set up Supabase as described in docs/auth.md.
  4. pnpm dev

Checks

pnpm check runs the type check, lint and the accessibility tests. It must pass before you push.

Where things live

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

  • 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.

Review tools

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.

Releases

Packages

Used by

Contributors

Languages