Full design ยท Apps
Task manager
Runsheet, a task manager for a household or a small team that actually gets the day right.
Live preview. Click around, it works.
About this template
Runsheet, a task manager for a household or a small team that actually gets the day right. Quick add reads plain English as it is typed: 'bins out tomorrow 7am', 'pay rates every Monday', 'passport renewal end of March' all resolve to a real date and time, in the account's own time zone, before the task is saved. Today gathers what is due now and what slipped; Upcoming lays out the next fortnight so nothing arrives as a surprise; Projects and Labels group the same tasks two different ways without duplicating them. A task can carry subtasks, a priority, a due date and an assignee, and a recurring task rolls itself forward the moment it is completed, correctly, past month ends and the 29th of February and across a daylight saving change, never landing on a date that does not exist. Search and filters find any task by text, project, label, assignee or status in an instant, and every action has a keyboard shortcut, shown in one overlay, so a fast typist never has to reach for the mouse. Focus mode narrows the whole screen to one task and a plain timer, for the times the list itself is the distraction. The household side, reached through a visible Viewing as switch, is where an organiser invites members, assigns shared tasks and sees who has what, while a member sees only the plain list of what is theirs and what the household shares.
What the agents are asked
The first message sent when you use this template. You can edit the plan before anything is built.
Adapt Runsheet to my household or my team. Keep every screen and working rule: Inbox (quick add that parses natural language dates and simple recurrence as it is typed), Today (due and overdue, grouped, quick complete), Upcoming (a rolling agenda of the days ahead), Projects and Labels (the same tasks organised two ways), Focus mode (one task, a plain timer, distraction free), and the Household screen (reached through Viewing as: an organiser manages members and assignments, a member sees their own and the household's shared tasks). Keep subtasks, priorities, recurring tasks that roll forward correctly at month ends and leap years, full text search and filters, and every keyboard shortcut in the shortcuts overlay. Change the brand, colours, household or team name and the sample tasks and members to mine, and keep the sample data marked Sample and removable in one step. When I want real accounts, wire in sign in and the tables and functions in schema.sql as the README describes, with every secret key on the server.
A task manager for a household or a small team, built around the Teale-Wren household at "Fernlea", a fictional home shared by Marisol, Tobias, Esme and Farid. Quick add reads plain English as it is typed; recurring tasks roll themselves forward the moment they are completed, correctly, past month ends and the 29th of February and across a daylight saving change; everyone sees the same shared list and can assign a task to anyone in the household.
"Runsheet", "Fernlea" and every person in the sample data are invented for this template. It is not modelled on any real task manager. Email addresses use the reserved .example domain.
Built on the NovaBuild template kit (docs/guardrails/TEMPLATE-KIT.md): one CONFIG block, one design token block, and a shared data layer that runs in demo mode with no backend or against a real Supabase project once one is connected, with no code change either way.
Screens
- Inbox (
#/inbox): the quick add box, and every task captured with no project yet. Type a date, a time or a recurrence phrase anywhere in the text and Runsheet understands it as you type; see "Quick add" below. - Today (
#/today): everything due today or overdue, and what has already been completed today (collapsed, so a finished list does not crowd out what is left). - Upcoming (
#/upcoming): the next thirteen days, grouped by day, so nothing arrives as a surprise. - Projects (
#/projects): every project as a card with its open count; a project's own screen (#/projects/<id>) lists its tasks and a scoped quick add. Labels (CONFIG.features.labels) are a second, crossing way to group the same tasks, managed from the bottom of this screen. - Focus (
#/focus,CONFIG.features.focusMode): one task at a time, chosen from what is due or overdue for the person currently "Viewing as" (or unassigned), with a plain 25 minute timer and a Skip button. Nothing else is on the screen. - Household (
#/household,CONFIG.features.household): a visible "Viewing as" switch (demo mode only; on a connected backend the role comes from the signed in person's own linked row) simulates signing in as the organiser or a member; the roster, who has what open, adding a member and removing the sample data are organiser only, on this screen and on the real backend alike. A member's Inbox, Today, Upcoming and each project show only what is assigned to them and what nobody has claimed yet; an organiser sees the full shared list everywhere.
Every screen keyboard shortcut is in one overlay (press ?, filtered to the screens CONFIG.features actually turns on): c to capture, / to search, g then a letter to jump to a screen, j/k or the arrow keys to move between tasks, x or Enter to toggle one done, e to edit it, Backspace to delete it (Undo appears in the toast), 1-4 to set its priority, and space/n to run the Focus timer and skip to the next task. The search overlay (/) also carries a status and an assignee filter, so either narrows the list on its own with no text typed at all.
Quick add: natural language dates and recurrence
What is understood appears live, beneath the box, as soon as it can be read: a due date and time chip, and a "repeats" chip for a recurrence phrase, both updating on every keystroke and gone the moment the task is added. Nothing is guessed silently until Add is pressed; a misread is visible before it is saved.
Typed anywhere in the box, in any order: today, tomorrow, next Tuesday, this Friday, a bare weekday (the next time it comes around), in 3 days / in 2 weeks / in 11 months, 15 March or March 15 (whichever order reads naturally), end of month, end of next month, end of March, a time as 3pm, 9:30am, at 6, noon or midnight, and recurrence as every day, every weekday, every Monday, every Mon, Wed and Fri, every 2 weeks on Saturday, weekly, monthly, yearly or fortnightly. Whatever is understood is removed from the text; the rest becomes the task's title. "bins out tomorrow 7am" becomes the task "bins out", due tomorrow at 7am; "pay rates every Monday" becomes "pay rates", due the coming Monday and recurring weekly.
A phrase is only ever read as a date or a time when it is unambiguous: a bare 3:30 with no am/pm and no leading at is left in the title rather than guessed at, and so is at 6 or at 12 on their own (an hour with no am/pm is only read when it can only mean 24 hour time, 13 to 23, or 0 for midnight; "dinner at 6" and "meet Sam at 12 Smith St" both keep their titles intact). A weekday word only matches a real weekday spelling with a word boundary right after it, so "end of next month" is never misread as "next Monday" (this exact bug shipped once while this template was being built; the fix and why are in script.js, above WEEKDAY_PATTERN); a *bare* weekday with no "on", "next", "this" or "every" in front of it is only read when spelled out in full, so "Buy sun cream" and "Fix sat nav" are never misread as a date either. "May" is read as the month only when capitalised the way a date normally is, since it is also an ordinary English word ("Pay 2 may invoices" keeps its title). "every 2 weeks on Monday and Thursday" is genuinely ambiguous about which Thursday, so, like most calendars, an interval over 1 only ever applies to the first weekday named; a plain "every Monday, Wednesday, Friday" has no such ambiguity and walks to whichever is soonest. An interval always clamps to 52, matching the tasks table's own CHECK. A recurrence with no explicit date anchors to today, or to the next occurrence of its first named weekday; if that anchor has already passed at the time of day named ("every Monday 6pm" typed on a Monday evening), it rolls forward to the next real occurrence rather than saving already overdue.
The recurrence engine, and why it is correct
Every date calculation in this template, in the browser (script.js, zonedTimeToUtc and its neighbours) and on a real backend (schema.sql, nova_recurrence_next and its neighbours), happens in CONFIG.locale.timeZone, never in the server's zone or the visitor's own device zone, using the same technique both places: read the instant's wall clock reading in the named zone, do ordinary calendar arithmetic on those plain numbers, then convert back to an instant by finding the zone's real UTC offset for that specific date. Three things fall out of doing it this way rather than adding a fixed number of hours:
- A month or a year added to a date clamps to the target month's real last day, and stays anchored to the day it actually meant to repeat on. 31 January plus one month is 28 or 29 February, never 3 March; 29 February plus a year is 28 February in a year that is not a leap year, and 29 February again the next time the target year is one. This only holds across a whole chain of occurrences, not just the first hop, because a monthly or yearly recurrence carries a
bymonthdayanchor (stamped once, the moment it is first saved, from the due date it started on) and every later occurrence clamps from that fixed anchor, not from whichever day the previous, already clamped, occurrence happened to land on: 31 Jan clamps to 28 Feb, and the next hop clamps from 31 again, back to 31 March, rather than drifting to 28 March and staying there. Without the anchor this was exactly backwards, and shipped once (found by audit, 25 Sep): seebymonthdayinschema.sql's comment ontasks.recurrenceandnova_add_months_clamped. - A daylight saving change never shifts the time of day. A task due 7pm the day before Sydney's clocks change is still due 7pm the day after, because the zone's offset is looked up for the specific target date, not assumed to match today's.
- Demo mode and a real backend agree exactly, because they are the same algorithm written twice, not once trusted to also be correct on the server.
node tools/rehearse-template-schema.mjs templates/task-manager/schema.sqlproves the SQL side; the sample data below exercises the daylight saving case directly, because it was seeded to.
Proving the recurrence engine
The sample data's "Pay the water bill" is seeded overdue, due the last day of whatever month precedes today, with its recurrence anchored to bymonthday: 31: complete it and the returned next occurrence is the last day of the current month, always, not the 30th or 31st of the wrong one. Complete that next occurrence too, and the one after: the chain keeps recovering the 31st every month that has one, rather than drifting down to the 28th and staying there, because the anchor never moves once it is set. "Put the bins out" is seeded due the coming Sunday: complete it and the next occurrence is exactly seven days later, at the same local time, even on the one Sunday a year that crosses Sydney's daylight saving start (this was true the day this template was written; the delta comes out as 167 hours, not 168, because the clocks spring forward in between). Calling complete_task a second time on an already completed task is refused with "This task is already complete" (docs/ops/LESSONS.md L35: prove a repeat call the same way an upsert is proved twice); completing it, reopening it and completing it again finds the same "next" row rather than creating a second one, because reopening does not remove it (see "What is out of scope" below), so completing again has to find it, not duplicate it.
Roles, and where each one is enforced
| Capability | Organiser | Member |
|---|---|---|
| View, add, edit and delete any household task | Yes | Yes |
| Complete or reopen any household task | Yes | Yes |
| Assign a task to any member | Yes | Yes |
| Create, rename or archive a project | Yes | Yes |
| Create, rename or remove a label | Yes | Yes |
| View the household roster | Yes | Yes |
| Add a household member | Yes | No |
| Change a member's role | Yes | No |
| Remove sample data | Yes | No |
The Household screen's "Viewing as" switch simulates signing in as each role: it decides what the interface shows, and the same rule decides what the interface refuses. On a connected backend the same table is enforced twice more, independently of the interface:
- Row level security in
schema.sqlgrants every table only toauthenticated, then narrows it by the caller's own row inhousehold_members(current_household_role()).roleis never inhousehold_members' own grant, andstatus/completed_atare never intasks' grant: the only way either changes is through the functions below. - SECURITY DEFINER functions (
complete_task,reopen_task,change_member_role,remove_sample_data) check the caller's role themselves and refuse exactly what the table above says they should. The demo moderpchandlers inscript.jsmirror each function's checks and messages so the two never drift apart (docs/ops/LESSONS.mdL35), and every call passes the SQL function's own parameter names (p_task_id,p_time_zone, and so on; L50).
Data model (schema.sql)
household_members, projects, labels, tasks (subtasks are rows of the same table, one level deep only: nova_guard_subtask_depth refuses a subtask under a subtask, which is also what keeps remove_sample_data's cascade simple to reason about), task_labels (a join table with its own id, not just the (task_id, label_id) pair, so the shared data kit's one-id-per-row model can read and write it the same way as every other table). Every table has row level security; anon has no access to anything, because Runsheet is a private household or team list, not a public site. See the file's own comments for the full grant and policy reasoning, and the VERIFY block at the end for how to check it after applying.
claim_invite() links a freshly signed in person to the household_members row an organiser already created for their email, matched against their own confirmed email (nova_confirmed_email(), read from auth.users, never a value they type in or the unverified JWT claim). start_as_organiser(p_name) is the other half (docs/ops/LESSONS.md L60): on a fresh project nobody has invited anyone yet, so the first person to sign in with a confirmed email and call it becomes the organiser, once only, under an advisory lock; it refuses once a real organiser already exists. In Supabase mode script.js calls claim_invite() after sign in and, when that finds no invite and no organiser exists yet, shows "Start as organiser"; otherwise it shows "Ask your household organiser to invite" the signed in email.
remove_sample_data() is the only way the sample rows go away, and it is careful about what "sample" still means once a visitor has used the demo: completing a sample recurring task creates its next occurrence as a real (non sample) row, exactly as it would for an actual customer, so that row is never touched; a sample task with a real subtask under it is kept, because deleting it would take the real subtask with it; a sample project or label still used by a real task is kept; the household's last active, real, linked organiser is always kept, whatever else is true (nova_guard_last_organiser backs the same rule on every other path too, the same pattern as nova_guard_subtask_depth: a check that protects something important fails closed everywhere, not only in the one function that was written to enforce it). "Real, linked" means a signed in person's own row (auth_user_id is not null and is_sample is false): sample Marisol never counts as a backup organiser, so demoting or removing the household's only real organiser is refused even while she is still there, the same test start_as_organiser already uses to decide whether a household has an organiser at all.
Every insert and update this template's own screens make matches schema.sql's own column grants exactly: tasks grants status, recurrence_source_id, created_by and is_sample to nobody (defaults only, set by complete_task and reopen_task), and household_members grants role, status and is_sample to nobody the same way, so quick add, a new subtask and inviting a member send only the columns a signed in member may actually write (docs/ops/LESSONS.md L47).
Going live
Set CONFIG.backend in script.js to { mode: 'supabase', url: 'https://<project>.supabase.co', anonKey: '<publishable key>' } once schema.sql is applied to a real Supabase project. Everything else, every screen, every role check, every write, works unchanged: the kit's data layer switches from localStorage to PostgREST with no other code change. Never put a service_role key or a sb_secret_... key here; the kit refuses to start with one and falls back to demo mode.
Turn Confirm email on in Supabase Authentication settings before anyone signs up: claim_invite() and start_as_organiser() both trust a signed in email only once auth.users.email_confirmed_at is set, and with confirmation off anyone could sign up as an address they do not own and claim it first. The first person to sign up (with a confirmed email) sees "Start as organiser" and becomes the organiser; everyone after that needs an organiser to add their name and email from Household first, then sign up with the same email to claim it.
Sample data
Every sample row is marked is_sample. An organiser can remove it in one step from Household, through remove_sample_data() (above), which keeps anything a real visitor has added themselves; editing a sample row does not clear its is_sample flag, so an edited sample task is still removed along with the rest, the same way a customer's own database keeps it. A SAMPLE_VERSION bump (script.js) replaces stale sample rows in a returning visitor's browser without ever touching their own data (docs/ops/LESSONS.md L21).
Art direction
One shoot, nine photographs. Four portraits, one for every sample household member (organiser-marisol, member-tobias, member-esme, member-farid, TEMPLATES.md L64: every sample person gets a photograph, not a typeset tile), each lit with real directional daylight at camera left or right, warm neutral 5000K, an 85mm lens at f/2.8, fine film grain and a muted true to life grade, natural skin texture, no airbrushing, shot against a plain wall rather than a studio backdrop. Four still lifes, one per sample project (project-home, project-groceries, project-home-admin, project-weekend), the same light and grade, each showing that project's own kind of task rather than a person. upcoming-fortnight, a wide kitchen bench at dawn, opens the onboarding banner on Inbox (the first screen) and stands in for the empty state on Upcoming. No text, logos or readable signage in any frame; any paper, list or envelope that appears is blank.
What is out of scope, on purpose
Quick add's date parser understands a lot, but not everything: "1st of every month" captures the recurrence but leaves "1st of" in the title rather than also reading it as an anchor day; a day and month with no year ("15 March") always resolves to the next time that date comes around, never a past or far future year. Reopening a completed recurring task does not remove the next occurrence complete_task already created for it, the same way unticking a reminder after its replacement already exists would not undo the replacement. These are documented choices, not bugs found after the fact; a customer who needs more can ask for it when adapting this template.