The board#
The app's one screen once signed in (#267, #271): the website's board, in the website's sections, order, words and colours — Today and Tomorrow with their weekday beside them (#337) — and everything the website does with a task; its files are in files.md. Account, at its head, opens the account sheet (account.md); About ↗ beside it opens the documentation's landing page in the browser — the page the website's footer links as About — and the sign-in has it at its top as well (#384).
What it does#
-
The colours explained (#335) — above the first board with open tasks, a short note says what the importance dots mean and that a date in red is overdue, as on the website, with Got it. Dismissed, it does not come back on that phone (a file,
colours-explained, in the app's documents); the website remembers it per browser. So the line is true on the phone too, the app draws the dots as the website does — hollow, solid, ringed, not by colour alone — and shows an overdue row's date in red. -
A task's due time (#475) — a task with a time shows it under its description: "10:00" for one that follows wherever its owner is. A task tied to a time zone names its zone first (#523), its city followed by a colon, in the green of the name above the board: "Berlin: 10:00", even when the phone is in that zone. Most tasks have none, so the few that have one stand out. When the phone is in another zone, the time on the phone follows: "Berlin: 10:00, 04:00 here". It is filed under its own date, the zone's, and when the phone's day differs, both days are named: "Berlin: Tue 01:00, Mon 19:00 here". The website does the same, with the zone before the row's date, or before its time under Today and Tomorrow, whose headings say the date. The phone needs no time-zone data for this; the backend's
dueAtis the moment, and the phone's clock reads it. After a change of the phone's zone the board follows as soon as the app comes back to the foreground (#526), without a restart: see reminders.md. The app sends a task's time and zone back with every change, and an undo puts them back too, so no edit or undo in the app erases them. -
Setting a due time (#477) — the form offers Add a time in the due date's row of chips, which opens the platform's own time picker: a dialog on Android, wheels in the form on iOS, which stay while they are turned until the time is pressed again. Being in that row, it leaves a task without a time a form no taller than before, so nothing below moves off the screen. With a time set, No time clears it, and a switch Tied to a time zone appears, off by default, as on the website: a time that follows the phone. Turned on, it starts from the phone's zone, as
expo-localizationreads it from the platform; a fixed offset such asGMT+1, which the backend refuses, starts it at UTC. The zone shows as a chip, which opens a search over the zones inmobile/src/zones.ts. Turning the switch off and on again gives a task back its own zone, and clearing the time clears the zone. A new task sends a time and zone only when set; an edit sends them only when either changed, then both,nullfor none, since an update that leaves both out keeps them (#497). -
Add a task — the button below the board opens a form: the description, the due date, an optional time, and the importance. The due date is one of the website's shortcuts (today, tomorrow, in one or two weeks) or any day from the platform's own calendar — a dialog on Android, a calendar in the form on iOS. A new task starts tomorrow, of medium importance, and not started, as on the website; it cannot be dated in the past, which the backend refuses.
- Edit a task — a tap on it opens the same form with its values, and with the state too: not started or done. A task still in progress, which none should be any more (#334), shows as not started and is saved so. An edit may date a task in the past, as on the website's.
- The keyboard leaves the buttons in reach (#382, #679). Cancel and Add, or Save, sit in the form's head above its fields, where the keyboard never covers them, and the keyboard's return key adds the task too once it has a description. The fields scroll in what the keyboard leaves of the screen, with Delete at their end. Below the fields, as #382 had them, the buttons stayed under the keyboard on iOS.
- The phone's status bar stays readable (#662). Android draws it over the app, so the app sets its icons dark or light by the phone's theme, and a sheet, which fills the screen there, begins below it. iOS does both by itself.
- Complete or reopen a task — the circle in front of it, which a completed task shows ticked in the website's green.
- Delete a task — from its form, at once and without "are you sure?": an offer to undo stands below the board for eight seconds. Clear completed deletes every completed task the same way. A delete while the offer stands joins it ("2 tasks deleted") and starts its eight seconds afresh. Undo puts a task back with its files, as the website's does, and each task on its own: what came back is shown, one that could not be dated back to its own day is shown dated today, and the failure is said (#426).
How a change behaves#
As on the website (doc/decisions/frontend.md):
- A tick shows at once and is taken back, with a message, when the backend refuses it.
- An add or an edit waits for the backend. The form stays open, saying "Adding…" or "Saving…", and closes once the backend has the task. Refused, it stays open with what was typed and says why.
- A delete goes at once, and a task the backend keeps comes back with a message.
- A session that has ended is not a failure. The change leads to the sign-in, saying the session expired, as the website does. The session lasts 30 days from the sign-in and is not renewed (sign-in.md).
Every text, the app's own included, is in the website's catalogue (development.md).
A task the app does not fully understand#
A newer backend can add an importance or a state this release does not know (#268). The board shows such a task, marked "Unknown", but offers no change to it — no circle, no form, and it is left out of Clear completed — and says "Update the app to change this task". The backend replaces a whole task on every save, so an older app saving it would overwrite the value it cannot show with its stand-in.
Readable offline#
The app keeps the last board it loaded on the phone (#272), so it can be read without a connection — read, not changed (decisions/mobile-app.md).
- Kept after every load, and after every change the backend agreed to — never a tick it has not
answered yet — as one JSON file in the
app's cache directory: a copy of what the backend holds, which the system may clear, which is
not backed up, and which no other app can read (
mobile/src/keptBoard.ts). - Shown at once at the start, before the network answers, with "Loading tasks…" above it; the loaded board then replaces it.
- Without a connection — the load fails — the kept board stays, with a note saying when it was loaded and that it may not be current, and Try again. A board already shown that fails to load again in the foreground stays the same way.
- The latest load decides (#432). Loads that overlap — the app back in the foreground twice before the first answered — each ask, but only the answer to the latest one asked for is shown and kept, or its failure said; an older one arriving after it changes nothing.
- Nothing on it can be changed. A tick, the form, Add a task, Clear completed and Undo are refused with a message — every change is checked where it is sent, so none can slip past — and nothing is sent or queued to send later: an update replaces the whole task, so a change made to an old copy would overwrite whatever changed since.
- With its files' previews (#397): each preview the board has shown is kept beside it, and one whose file is no longer on the board goes when the board is next kept (files.md). Opening a file needs a connection.
- It belongs to one account. It names the address it was loaded for and is shown only to a session of that address, and signing out, deleting the account, or a session that has ended removes it, with its previews (account.md).
An error while it is drawn#
An error while the board, the form, the file viewer or the account sheet is drawn ended the whole app, as v1.8.1's upload progress did on iOS (#682). Now a message stands in for them, Your tasks could not be shown. Nothing saved is lost., with Try again, which closes any open sheet and draws the board again (#687). The session is held above it, so nobody is signed out. An open form is lost with what was typed into it, and a new task's form with the files already picked for it. The account sheet alone stays open while the account is being deleted, since nothing else is offered until the backend answers. Should the same error come again, so does the message, and only restarting the app helps.
Only errors while these are drawn are caught, as with any React error boundary: one in a button's
handler, a timer or a promise is not, nor one on the sign-in or loading screens or in working out
what the board is given. Errors are better kept from happening at all: a native
module's value is made what the app expects where it enters (mobile/CLAUDE.md).
Code and tests#
| Piece | Where |
|---|---|
| The board, its rows and the undo offer | mobile/src/BoardScreen.tsx |
| The form, for adding and editing | mobile/src/TaskForm.tsx |
| The sheet the form and the account are shown in | mobile/src/Sheet.tsx |
| The platform's date picker | mobile/src/DueDatePicker.tsx |
| The changes, and what a failure leads to | mobile/src/TaskFestApp.tsx |
| The message for an error while drawing (#687) | mobile/src/BoardBoundary.tsx |
| The board kept on the phone | mobile/src/keptBoard.ts |
| The previews kept with it | mobile/src/previews.ts |
| The requests | mobile/src/api.ts |
Component tests cover each piece (TaskForm.test.tsx, TaskFestApp.changes.test.tsx,
TaskFestApp.drawFailure.test.tsx), and the
Maestro flow mobile/maestro/change-tasks.yaml adds, edits, completes, deletes and undoes a task
in the built app, against the end-to-end stack; keyboard.yaml then adds one with the keyboard
still open, and due-time.yaml, last of the board's flows, one due at 09:00 in Tokyo, through
Android's own time dialog, the switch and the zone search, with a screenshot at each step.