ai-assisted-todolist

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#

How a change behaves#

As on the website (doc/decisions/frontend.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).

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.