This project is being built by a team at Blueprint, a student organization at the University of California, Berkeley building software pro bono for nonprofits.
Oakland Bloom is an Oakland-based nonprofit empowering immigrant and refugee chefs to build sustainable food businesses through shared kitchen space, equipment access, and catering opportunities. Today they coordinate kitchen usage and catering by hand over WhatsApp, which creates administrative bottlenecks and limits how many chefs they can support.
This repo is two interconnected products:
- Chefs view kitchen availability on a calendar, submit reservation requests, track them by status (pending / approved / denied), and manage their profile.
- Admins review a reservation request queue, approve or deny bookings, manage kitchen availability, and see usage statistics (chefs using the kitchen, hours used, hours remaining).
Distributes catering opportunities to chefs over WhatsApp, collects their responses, and keeps a central record of opportunities and who responded — replacing the current group-chat-and-scrollback workflow.
| Role | How they use it |
|---|---|
| Chef | Web dashboard (reservations, profile) + WhatsApp (catering opportunities) |
| Admin | Web dashboard (approve reservations, stats, post catering opportunities) |
| Customer | Requests catering — flow not yet specified, MVP scope |
- MTP — 11/30/26. Auth/onboarding/profiles, chef reservation calendar + dashboard, admin reservation queue + calendar, admin dashboard with monthly stats, and the WhatsApp catering bot.
- MVP — May 2027. Password recovery, account approval, reservation history, admin kitchen-availability management, expanded bot automation, user management, deployment and handoff.
- Stretch. Expanded reservation detail cards, computer-vision equipment inspection, equipment cataloging with conflict prevention.
The Statement of Work in Notion is the authoritative scope — this is a summary.
docs/whatsapp-bot-research.md— WhatsApp API research, provider comparison, proposed bot architecture and message flow (OAK-8).docs/whatsapp-conversational-agent.md— setup for the WhatsApp reply worker, synthetic test database, and offline demo.docs/whatsapp-agent-production-plan.md— remaining work before an NPO handoff, including local inference.
Check your installation of node and pnpm:
node -v
pnpm -vWe strongly recommend using a Node version manager like nvm (for Mac) or nvm-windows (for Windows) to install Node.js. If you don't plan on switching between different Node versions, you can alternatively get a prebuilt installer from the Node.js website for an easier approach. Make sure to get Node version 20 and up, the latest LTS version should be sufficient.
After installing Node, you most likely have npm installed as well (check by running npm -v). If you have npm installed, simply run npm install -g pnpm to install pnpm. If your command line does not recognize npm as a command, refer to this article to troubleshoot.
Additional resources:
-
Clone the repo & install dependencies
- Clone this repo
- using SSH (recommended)
git clone git@github.com:calblueprint/oakland-bloom
- using HTTPS
git clone https://github.com/calblueprint/oakland-bloom
- using SSH (recommended)
- Enter the cloned directory
cd oakland-bloom - Install project dependencies. This command installs all packages from
package.json.pnpm install
- Clone this repo
-
Set up secrets:
- In the project's root directory (
oakland-bloom/), create a new file named.env.local - Copy the credentials from Supabase (e.g. Blueprint's internal Notion ) and paste any API keys into the
.env.localfile.
- In the project's root directory (
Helpful resources
- VSCode (recommended)
- Open the
oakland-bloomproject in VSCode. - Install recommended workspace VSCode extensions. You should see a pop-up on the bottom right to "install the recommended extensions for this repository".
- Open the
In the project directory, run:
pnpm devThen, navigate to http://localhost:3000 to launch the web application.
Open /calendar with an approved account. Choose one or more amenities (Bar Prep
Table, Salad Bar Table, Oven) under Book amenities, then click a time cell or
drag a range. Move or resize the draft on the calendar, or edit its time in the
form. Enter a time instead provides keyboard date and time inputs as an
alternative to pointer selection.
Past selections open the form, but submission requires a future start time.
Complete the title, chef count, and optional additional contact emails. The owner
name/email come from the signed-in account. Times are interpreted in
America/Los_Angeles; ambiguous or nonexistent daylight-saving times are rejected.
Cancel discards the form. A successful submission appears as pending, never as
an approved booking. /chef/reservations now reads the same saved database records.
Availability shading reflects how many selected amenities are free, using actual
approved bookings. Click your saved bookings to view their details; saved bookings
are read-only in this flow.
The database change is in
supabase/migrations/20261108000000_booking_requests.sql. Apply it through the
team's migration workflow before running this version against another database,
then run pnpm types:database and format types/database.types.ts. It adds a
required title, a constrained amenities array, and up to ten additional contact
emails. Existing kitchen records are conservatively mapped to all three amenities;
other unrecognized values cause migration validation to fail for explicit review.
The singular amenity column remains for compatibility and is synchronized by a
trigger. The migration builds on the project's existing booking and account tables.
Chef writes use the session-authenticated create_booking_request RPC. It checks
account approval, validates the request, fixes ownership and pending status, and
uses a request UUID to make retries idempotent. Direct chef writes stay revoked.
A database trigger serializes booking writes and rejects overlap with approved
bookings sharing any amenity, including when a pending request is later approved.
Adjacent bookings and overlapping pending requests are allowed. No emails are sent.
Ownership RLS limits direct booking reads to the signed-in chef. Other chefs'
approved availability is read separately through get_calendar_occupied_periods;
it returns only merged amenity/time intervals, excluding titles, contacts, owners,
booking IDs, and people counts. Availability is refetched on date/filter changes
and submission; it is not a realtime subscription. If loading fails, the calendar
warns that empty times are not confirmed available. Shading does not imply capacity.
For four current-date demo bookings, configure RESERVATION_TEST_USER_ID,
RESERVATION_TEST_USER2_ID, and the development SEED_DATABASE_URL in .env.local.
Both Auth accounts and their application profiles must already exist. Confirm the
database target, then run:
SEED_TARGET=development pnpm seed:calendar| Account | Today | Tomorrow |
|---|---|---|
| Test user 1 | 10–11 a.m., approved, both prep tables | 1–2 p.m., pending, oven |
| Test user 2 | 2–3 p.m., approved, oven | 10–11 a.m., denied, salad bar table |
Reruns refresh the same four demo IDs (prefix 0a150000, endings 001–004)
with titles and current Los Angeles dates, without duplicates. Accounts, policies,
and unrelated bookings are preserved. Four demo rows do not necessarily mean four
total rows. The older seed:reservations command still serves its fixed OAK-10
fixtures; use seed:calendar for this flow.
For a manual check, sign in as each test user and verify amenity filtering, a
cancelled form, an invalid end-before-start request, and a valid future request.
Confirm the saved event says pending and appears in Your reservations. Check that
other chefs' private titles/contacts never appear in the availability response.
Repeat at mobile width. pnpm test covers request validation, action retries,
unique migration versions, and Los Angeles time conversion offline. To test the
database rules too, set BOOKING_TEST_DATABASE_URL to a local Supabase PostgreSQL
server with database-creation access and run pnpm test. The database tests create
and remove an isolated test database; they reject remote hosts and never modify
the server's existing databases.
-
Copy
example.envto.env.localand fill in the values from Supabase (Project Settings > API Keys).NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEYis the publishable key.SUPABASE_SECRET_KEYis the secret key, is server only, and must never be prefixed withNEXT_PUBLIC_. -
Install dependencies with
pnpm install. -
Apply database migrations.
- Shared dev project:
pnpm supabase link --project-ref <ref>thenpnpm supabase db push - Local Supabase:
pnpm supabase startthenpnpm supabase db reset
- Shared dev project:
-
Run
pnpm dev. -
Making the first admin: sign up in the app, then run this in the Supabase SQL Editor with your email:
update public.users set is_admin = true, is_approved = true where email = 'you@example.com';
The Start screen calls the continueWithEmail server action, which calls the
email_exists Postgres function using the secret key. The function can't be
called with the publishable key. Lookups are limited to 10 per client per
10 minutes. To reset the limit during development, run
delete from private.email_lookup_attempts; in the SQL Editor.