Bento House

2. Dashboard and tasks

GuideUpdated Nov 212 min read

On this page
  1. Decisions
  2. Prompt for Claude Code
  3. Checks

You get: a home page made of cards, and the first card: a task list the whole household shares.

Decisions

  • Cards, not pages. The home page is a grid of small cards (Tasks, Today, Shopping...). Each feature adds one card plus, if it needs one, its own page.
  • Tasks live in your own database. Title, optional due date, who captured it, done or not. (The original build used Notion for tasks. Your own Postgres table is simpler and keeps everything at home. Notion can be added later.)
  • The dashboard is for looking, chat is for adding. It's a deliberate choice: one place to capture (Signal, phase 4) means nothing gets lost between two inboxes. Ticking a task done on the dashboard is fine.
  • Phone first. Every card must work at phone width.

Prompt for Claude Code

Add a dashboard home page made of cards in a responsive grid (one column on phones).
Each card is its own component in components/cards/ and loads its own data, so a slow
or broken card shows an error inside itself and never breaks the page.

Add the first card, Tasks: a tasks table (migration) with id, title, due date (optional),
captured_by, created_at, done_at. The card shows open tasks, overdue ones first, with a
tick box to mark one done and an "undo" for 10 seconds after ticking. Add an API route
for listing and completing tasks, protected by the login cookie.

No "add task" box on the dashboard: tasks will be added from chat in a later phase.
For now add a script, scripts/add-task.ts, to add one from the terminal for testing.
Write plain-language check steps when done.

Checks

  • scripts/add-task.ts "Test task" makes it appear on the dashboard after a reload.
  • Ticking it moves it out of the list; Undo brings it back.
  • On a phone the cards stack in one column with no sideways scrolling.
  • Stop the database (docker compose stop db): the card shows an error, the page still loads. Start it again.