Skip to content

About

🐠 TechTank Toronto - Modern Website Redesign

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

358 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TechTank TO β€” Website Redesign

A Next.js (App Router) implementation of techtankto.com, Toronto's volunteer-run tech community website. The redesign moves away from a flat "link-tree" layout toward a conversion-oriented onboarding hub that funnels visitors into specific roles β€” attendee, speaker, host, sponsor, or organizer.

Specs live in docs/prd/; application code lives in app/. The initial UI scaffold was generated from the PRD via v0 β€” original prompt and generation.

House standards (process, writing, nextjs, components, data, testing, performance, accessibility, seo, git) are supplied by the harness-skills library, vendored at .agents/skills/ (.claude/skills/ symlinks to it) and loaded automatically by any skill-aware coding agent.

Stack

Getting started

Requirements: Node.js 20+ and pnpm 10.

pnpm install
pnpm dev

Then open http://localhost:3000.

Environment Variables

Some features require environment variables to function correctly. Copy .env.example to .env.local and populate the values:

Variable What it is
LUMA_CALENDAR_ID The Luma calendar ID (e.g. cal-...) used to fetch upcoming and past events on the /events page.

See scripts/instagram/README.md for Instagram-specific environment variables.

Scripts

Command What it does
pnpm dev Start the dev server with Turbopack
pnpm build Production build
pnpm start Serve the production build
pnpm lint Lint with oxlint
pnpm type:check Type-check with tsc (no emit)
pnpm format Format the repo with oxfmt
pnpm format:check Check formatting without writing
pnpm db:start Start the local Supabase stack
pnpm db:stop Stop the local Supabase stack
pnpm db:reset Reapply migrations + seed

Backend (Supabase)

The app's dynamic features β€” a task board (/tasks) and its organizer back office (/admin/tasks) β€” are backed by Supabase Postgres under db/; Slack notifications run in the app's server actions. The rest of the app runs without it.

Requires Docker. The Supabase CLI is pinned as a devDependency, so use the pnpm db:* scripts rather than a global install (an older global CLI will silently ignore parts of config.toml).

pnpm db:start                 # boots Postgres, Studio, etc.
cp .env.example .env.local    # then paste the anon key from db:start output
cp db/.env.example db/.env    # Slack OIDC credentials
pnpm dev

The local stack runs on its own port block (5452x, project_id = "techtank") so it never collides with any other local Supabase stack. Studio is at http://localhost:54523.

Everything is browsable without signing in. Applying for a task and the admin back office need an account. Locally that is an email and a password, with no Slack app to register; see below. In production it is always Slack.

Signing in locally, without Slack

pnpm db:start seeds an organizer, so the whole task board works on a fresh clone:

organizer@localhost / localdev

Sign in at http://localhost:3000/admin for the back office, or from the apply panel on any task. The seeded account is in the admins allowlist, so it reaches /admin/tasks; a second account you sign up yourself will not, which is the same rule production follows.

Two things make this local-only:

  • The email provider is enabled in db/supabase/config.toml, which configures the CLI's Docker stack and never the hosted project. The hosted project is configured in the Supabase dashboard.
  • The form only renders when NODE_ENV is development and NEXT_PUBLIC_SLACK_TEAM_ID is unset. next build always sets NODE_ENV=production, so every Vercel deployment, preview included, shows Slack.

Set NEXT_PUBLIC_SLACK_TEAM_ID and the sign-in goes back to Slack, which is how to exercise the real flow locally.

Editing db/supabase/config.toml needs pnpm db:stop && pnpm db:start. pnpm db:reset reapplies migrations and the seed but does not re-read that file.

Slack + Supabase setup

Set this up when you need to exercise the real sign-in, the apply receipt, or the organizer alert. Local development does not require it.

Slack is the only identity in production β€” it's how applicants prove they're in the community and how organizers sign in. One Slack app (api.slack.com/apps β†’ Create New App) carries all of it; note its Client ID / Secret (Basic Information) and your workspace / team ID (T…, from About this workspace). Then:

  1. Sign in with Slack β€” enable it on the Slack app (scopes openid, profile, email). In Supabase (Authentication β†’ Providers β†’ Slack (OIDC)) enable it and paste the Client ID / Secret; locally put them in db/.env. Add your app callback (…/auth/callback) to Authentication β†’ URL Configuration.

  2. OAuth redirect URL β€” the Slack app and Supabase must agree on it exactly. Locally that needs HTTPS (Slack rejects http://localhost): run ngrok http 54521 and set both the Slack app's Redirect URLs and SLACK_OIDC_REDIRECT_URI in db/.env to https://<tunnel>/auth/v1/callback (a free ngrok URL changes on every restart). In production it's the hosted project's own https://<ref>.supabase.co/auth/v1/callback β€” no tunnel, no override.

  3. Bot (OAuth & Permissions β†’ Bot Token Scopes): chat:write, im:write, mpim:write β€” the 1:1 and group DMs open a channel before posting. Name it Tanky, install it, and copy the xoxb-… Bot User OAuth Token. Add an Incoming Webhook on the organizers' channel for the alert.

  4. Secrets β€” db/.env: SLACK_OIDC_CLIENT_ID/SECRET. .env.local: NEXT_PUBLIC_SUPABASE_URL/ANON_KEY, NEXT_PUBLIC_SLACK_TEAM_ID, SLACK_WEBHOOK_URL, SLACK_BOT_TOKEN, PUBLIC_SITE_URL. Hosted: OIDC creds in the Supabase dashboard, everything else in Vercel.

  5. Lock the workspace β€” NEXT_PUBLIC_SLACK_TEAM_ID only pre-selects the workspace on the consent screen; the database is the real gate. Set it, or the check stays disabled (fails open):

    update public.app_settings set value = 'T…' where key = 'slack_team_id';
  6. Add yourself as an organizer β€” allowlist by email (matched on first sign-in, so it must be your Slack email):

    insert into public.admins (email) values ('you@example.com');

See AGENTS.md for the backend conventions.

Project structure

The tree below doubles as a route map β€” each directory under app/ is a route, annotated with its purpose. Folders in parentheses (e.g. (site)) are route groups: they scope a shared layout without adding a URL segment.

.
β”œβ”€β”€ app/                            # Next.js App Router routes
β”‚   β”œβ”€β”€ layout.tsx                  # Root layout (fonts, SEO, theme provider)
β”‚   β”œβ”€β”€ (site)/                     # Public site route group (no URL segment)
β”‚   β”‚   β”œβ”€β”€ layout.tsx              # Site chrome (header, footer)
β”‚   β”‚   β”œβ”€β”€ page.tsx                # /                    Social-proof-driven home
β”‚   β”‚   β”œβ”€β”€ about/                  # /about               Values & community manifesto
β”‚   β”‚   β”œβ”€β”€ events/                 # /events              Upcoming (Luma) + past event timeline
β”‚   β”‚   β”œβ”€β”€ get-involved/           # /get-involved        Onboarding hub (shared layout)
β”‚   β”‚   β”‚   β”œβ”€β”€ speak-or-facilitate/#   /speak-or-facilitate  Speaker/facilitator intake
β”‚   β”‚   β”‚   β”œβ”€β”€ host/               #   /host              Host intake
β”‚   β”‚   β”‚   β”œβ”€β”€ sponsor/            #   /sponsor           Sponsor intake
β”‚   β”‚   β”‚   β”œβ”€β”€ organizer/          #   /organizer         Organizer intake
β”‚   β”‚   β”‚   └── donate/             #   /donate            (via next.config rewrites) Interac e-transfer donation info
β”‚   β”‚   β”œβ”€β”€ tasks/                  # /tasks               Public board of tasks to pick up + apply
β”‚   β”‚   β”œβ”€β”€ legal/                  # /legal               Legal documents (shared layout)
β”‚   β”‚   β”‚   β”œβ”€β”€ terms-of-service/   #   /terms-of-service
β”‚   β”‚   β”‚   β”œβ”€β”€ privacy-policy/     #   /privacy-policy
β”‚   β”‚   β”‚   └── code-of-conduct/    #   /code-of-conduct
β”‚   β”‚   └── resources/              # /resources
β”‚   β”‚       β”œβ”€β”€ media-kit/          #   /resources/media-kit     Brand assets + fast facts
β”‚   β”‚       └── design-system/      #   /resources/design-system  Brand guidelines β€” design tokens & component reference
β”‚   β”œβ”€β”€ admin/                      # /admin               Organizer back office (Supabase auth)
β”‚   β”‚   β”œβ”€β”€ layout.tsx              # Admin chrome + auth gate
β”‚   β”‚   β”œβ”€β”€ login/                  #   /admin/login       Sign in with Slack
β”‚   β”‚   └── tasks/                  #   /admin/tasks       Manage tasks + applicants
β”‚   β”œβ”€β”€ api/health/                 # /api/health          Database health check + Supabase keepalive
β”‚   β”œβ”€β”€ auth/callback/              #   /auth/callback     Slack OAuth callback
β”‚   └── globals.css
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ layout/                     # Header, Footer
β”‚   β”œβ”€β”€ ui/                         # Reusable UI (buttons, cards, sections, etc.)
β”‚   β”œβ”€β”€ contribution/              # Public contribution-board UI
β”‚   β”œβ”€β”€ admin/                      # Admin back-office UI
β”‚   └── auth/                       # Admin login form
β”œβ”€β”€ constants/                      # Structured data (events, sponsors, board vocabulary)
β”œβ”€β”€ hooks/                          # Reusable React hooks (useMutation)
β”œβ”€β”€ utils/                          # Helpers (theme, Supabase clients)
β”œβ”€β”€ db/                             # Supabase β€” config, migrations, seed
β”œβ”€β”€ proxy.ts                        # Admin session refresh + route guard
β”œβ”€β”€ docs/prd/                       # Product requirements pipeline (01-brief β†’ 06-plan)
β”œβ”€β”€ .agents/skills/                 # Vendored house-standard skills (copied, portable)
β”œβ”€β”€ .claude/skills/                 # Same skills (symlinked to .agents/skills/)
β”œβ”€β”€ public/                         # Static assets (images, downloads, social media dumps)
β”œβ”€β”€ assets/fonts/                   # Build-only files, not served (OG image title font)
β”œβ”€β”€ next.config.ts
└── tsconfig.json

See docs/prd/03-solution.md for the full route map and shared-layout conventions, and the rest of docs/prd/ for product intent, design tokens, architecture, and the delivery plan.

Deployment

The site deploys to Vercel. Search engine indexing is enabled site-wide via the robots metadata in app/layout.tsx.

Deploying the backend

Vercel deploys the whole app; the Supabase-backed features (/tasks and /admin/tasks) additionally need the Supabase project deployed.

pnpm exec supabase link --project-ref <ref> --workdir db
pnpm exec supabase db push --workdir db

Then finish the production wiring: configure Slack for prod (the redirect URL is the hosted project's https://<ref>.supabase.co/auth/v1/callback β€” no tunnel); set NEXT_PUBLIC_SUPABASE_URL/ANON_KEY and NEXT_PUBLIC_SLACK_TEAM_ID, plus SLACK_WEBHOOK_URL, SLACK_BOT_TOKEN, and PUBLIC_SITE_URL, in Vercel (read at request time β€” if missing, the task routes error rather than show an empty board); and set app_settings.slack_team_id + seed the first organizer in the production DB (steps 5–6 above). A missing notification secret degrades to a log line: applications still record, but nobody is told about them.

Keeping Supabase awake

Free-tier Supabase projects pause after a week of low database activity. .github/workflows/supabase-keepalive.yml pings GET /api/health (app/api/health/route.ts) twice daily (and on manual workflow_dispatch). The route runs an uncached anonymous SELECT against contribution_tasks using Vercel's production Supabase env vars, so no extra GitHub Actions secrets are required. If a scheduled run fails, the workflow opens or updates a single GitHub issue.

GitHub automatically disables scheduled workflows on public repositories after 60 days with no commits; re-enable the workflow in the Actions tab if the repo goes idle that long.

Contributing

See CONTRIBUTING.md for contribution guidelines, team onboarding, and the roadmap.

Contributors

This redesign was built by TechTank TO volunteers who gave their time to a community they believe in. Thank you to everyone who shipped it πŸ’™

And a heartfelt thank you to everyone who built and stewarded earlier versions of techtankto.com. This redesign stands on the foundation, inspiration, and lessons you left behind.

License

MIT β€” see the file for details.

About

🐠 TechTank Toronto - Modern Website Redesign

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages