Frontend and user interface#
The board is the front page; the project description is a link#
Accepted · 2026-09-27 · #51
Since #194 a deployment can offer several providers at once, each with its button -- qa offers Google and its test accounts: A main provider per profile, and named tenants beside it.
Since #384 the link goes to the published documentation rather than GitHub, and since 1.3.1 always to its landing page, from which the purpose page is one click away -- Gunnar's call.
Decision. The signed-out page is an app name, one sign-in button and a link to
doc/purpose.md on GitHub. The old hero section — the tech-stack prose and the
"Backend / Frontend / Deployment" list — is gone. Signed in, the whole page is the board.
Why. The front page described the repository rather than doing anything, which put the project's own explanation in the way of the app for the person using it daily. A link serves the visitor who wants that explanation without charging the daily user for it.
Why only the usable provider. AuthProviderResource reports available per provider and
loginUrl: null when credentials are missing. The old UI rendered those as disabled cards, so
every deployment showed a dead "Configure credentials" button — in dev, a Google card that
could never work. The frontend now filters to available, which in practice leaves exactly
one: the profile decides whether that is Google or the local Keycloak.
Rejected: redirecting automatically to that single provider. It is the obvious move once there is only one, and it was asked for. But this repository exists to be read, and bouncing every anonymous visitor to an identity provider leaves nowhere to say so — the purpose link would have had to live behind the sign-in it explains. One button is one click, and the page costs nothing.
A checkbox for done, a quiet marker for in progress#
Superseded · 2026-09-27 · #51 · by #334
Since #334, there is no marker. Testing the app showed "in progress" was unclear, so a task is
now open or done: the menu item and the doing chip are gone, and tasks in progress became open.
The checkbox below is unchanged; the rest of this section is why the marker was ever made quiet.
Decision (superseded by #334). The round checkbox on each row toggles TODO and DONE.
WORKING was set from the row's overflow menu and showed as a doing chip. The enum is unchanged.
Why. Completing a task is overwhelmingly the common action and it should cost one click; a
three-value <select> charged three interactions for it. WORKING is real but rare, so it
belongs where rare things go. Keeping it out of the checkbox also keeps the checkbox honest:
a control that does not complete on the first click is a surprise, and makes "untick" ambiguous.
Why optimistic. The tick is applied before the server answers and rolled back if the save fails. A round trip is perceptible, and a checkbox that lags feels broken rather than careful. The rollback is what keeps it safe: a rejected change never leaves the board asserting something untrue.
The look follows hilling.it, and the calendar loads on demand#
Accepted · 2026-10-05 · #139, #164
Revised in part: the colours and the faces now follow hilling.it's new site, in Colours and faces from hilling.it's new site (#527). The calendar and the layout stand. And on a desktop the date field is no longer the native one, in One picker for each: TaskFest's on a desktop, the phone's on a phone (#588).
Decision (#139). The palette and the heading face come from hilling.it. Its heading blue
#0367a5 is the accent, its green #7fae1c is a band along the top and, darkened to #4d7a0a,
the done tick. Quicksand sets the title and the section headings, and running text stays in the
system face. The layout is a step more compact than before, still on the 4px grid, with 44px
kept as the size of anything tapped. Due dates are picked from react-day-picker, in a popover
beside the date field.
Why blue and not green. The brand green is 2.6:1 against white, below the 3:1 a control needs and far below the 4.5:1 text needs, so it cannot carry a button, a link or a label. The blue is 6.0:1. Using green where it can only decorate keeps the brand without failing contrast.
Why Quicksand only for headings. It is a rounded display face. At body size its regular weight is thin, and a heavier weight to compensate makes long task lists tiring to read.
Why self-hosted. Loading the face from Google Fonts would send every visitor's address to
Google, which the privacy policy would then have to say. @fontsource-variable/quicksand ships
one 28 kB file for every weight, from the same origin.
Why the calendar is lazy. react-day-picker is about 20 kB gzipped against a 75 kB board, and the board's speed was an explicit requirement. Loaded on first use, it costs the first page load nothing. The native date field stays alongside, so typing a date keeps working.
Colours and faces from hilling.it's new site#
Accepted · 2026-11-07 · #527
Decision. The website and the apps take their colours from hilling.it's new site, from the
palette the two share (opens in a new tab) in
the conventions repository, where a colour is added only after asking Gunnar:
- Greys: plain ones, without a tint: #111111, #656565 and #f2f2f2 on the light page,
and #f2f2f2, #a9a9a9 and #2d2d2d on the dark one.
- Blue: #0067a6, or #a6d8f5 on the dark page.
- Red: #b42318, or #f04438 on the dark page. Errors there show on the raised grey, where
#f04438 has only 3.7:1, so dark errors use #f3685e: the same red, just lighter, 4.6:1.
- Form fields are edged in the muted grey, as there, because the border grey is too faint to
show where a field is. So are the file-drop zone and the zone switch's knob when it is off.
Green stays TaskFest's own. The band along the top is hilling.it's logo green #7eae2a; TaskFest's
logo and icons keep their #7fae1c, a shade apart that the eye does not tell from it. Green that
must be read is used for the wordmark in the app, the done tick and a task's zone:
- On the dark page: the logo green #7eae2a.
- On the light page: a green just darker than it, with the same hue and saturation:
#58791d, 5.0:1 on white.
The faces are hilling.it's too: Quicksand, its logo's, for the TaskFest wordmark; Space Grotesk for
headings; Inter Tight for running text. On the website they are self-hosted variable fonts, as
Quicksand already was. The app embeds static ones through expo-font, fetched by
mobile/assets/fonts/make-fonts.sh. Quicksand Bold is its authors' own static font, unchanged,
because its licence reserves the name "Quicksand" and a modified font may not carry it. Space
Grotesk and Inter Tight reserve no name; they are cut from Google Fonts' variable files, one file
per weight and Latin only. Every file keeps its copyright and licence, the SIL Open Font License,
in its own metadata, which is how that licence lets a font travel inside an app.
Why the green just darker. Gunnar wanted the green as close to the logo's as contrast allows.
The logo green is 2.6:1 on white. #58791d is the lightest shade of it that reaches 4.5:1 on the
surface grey as well as on white. The previous #4d7a0a was a different, yellower green.
Why static fonts in the app. React Native picks a variable font's weights unreliably, and on
Android it fakes a bold. Each face is a file of its own, named by its PostScript name, which both
platforms use; the app chooses it by that name, never by fontWeight.
Why Inter Tight for text now. Quicksand stays out of running text for the reasons above. Inter Tight is a text face, and Gunnar asked for the fonts to be unified as long as they stay readable on a phone. Whether they do is judged on screenshots of the app.
Editing starts from the menu, and waits for the server#
Accepted · 2026-10-04 · #159
Revised in part: a click on an open task's description opens its editor too, and only the checkbox ticks a task off, in A click on a task's description opens its editor (#593). "Why the menu, not the text" below no longer holds; the rest stands.
Decision (#156). Edit in the row's overflow menu turns the row into a form with the same three fields as adding a task: description, due date and importance. Save sends them, while Cancel and Escape discard. Completed tasks are read-only, and reopening one is how to change it.
Why the menu, not the text. The description is the checkbox's <label>, so clicking it
already ticks the task done. Making the same click start an edit would take away the larger
target for the common action, to serve a rare one. The menu is where rare things already go.
Why not optimistic. A tick is one click and has to feel instant. An edit is a form someone has just filled in, so a moment's "Saving…" is expected. Keeping the form open until the server agrees means a refused edit leaves what was typed in place to correct, instead of rolling the row back and losing it.
Past dates stay. Unlike adding, the editor sets no min on the due date, matching the
backend's TaskUpdateRequest. A task that came due yesterday can have its text corrected
without having to move its date as well.
Cost. WORKING is now two clicks away and less discoverable. That is the trade, and it is
the right way round.
Due dates are relative words, set from defaults#
Accepted · 2026-09-27 · #51
Decision. Rows say Today, Tomorrow, Yesterday, 3 days ago, a weekday name inside
the week, then 31 Dec. The board groups into Overdue / Today / Tomorrow / This week / Later.
An open task under Today or Tomorrow leaves its date out: the heading already says it, and
saying it twice made the rows read as noise (Gunnar). Every other section spans several days -- or,
for completed tasks, none -- so there the row says which.
Today and Tomorrow are followed by their weekday (#337), beside the heading and after a
completed row's word -- Today · Saturday -- because on holiday which day today is is not always
obvious (Gunnar, from the app's first test on a phone). Beside the heading, not in it: the heading
names the section. On the website and in the app alike (weekdayBeside in dates.ts).
Adding a task offers Today, Tomorrow, In 1 week and In 2 weeks, and defaults to
tomorrow.
Why. Due 2026-12-31 requires arithmetic to read, and "what is late and what is today" is
the only question a todo list has to answer at a glance. Typing a date was also the slowest
part of adding a task; the default means the common case needs no date interaction at all.
Why the logic takes today as a parameter. dates.ts never reads the clock. Every function
receives today as an ISO string, so a render is a pure function of its inputs and the tests
need no clock faking. Dates are anchored at UTC midnight and handled as strings, because
new Date('2026-10-26') in a zone behind UTC is the 25th, and day arithmetic over a
daylight-saving change is off by one — both bugs that look like correct code.
Cost. The board reads the clock once per mount, so one left open overnight keeps yesterday's headings until it is reloaded. Rows silently re-sorting under the pointer would be worse.
Undo instead of a confirmation, and what it costs#
Accepted · 2026-09-27 · #54
Decision. Deleting a task is one click with no dialog. An offer to undo stands for eight seconds. Undo re-creates the task through the API.
Why not a confirmation dialog. "Are you sure?" on every delete trains people to click through it, so it stops protecting anything while still costing a click every time. An undo is cheaper when you meant it and better when you did not.
Two requests, not one. Creating refuses a date in the past, so re-creating a task that was
already overdue would fail — and overdue tasks are exactly the ones people delete. restoreTask
therefore creates the task dated today and then corrects the date with an update, which does
allow the past. That asymmetry is deliberate and is the subject of its own entry above; this is
the first place it bit something other than the board.
Cost, and it is a real one. The task comes back with a new id. The server has no memory of the old one. Nothing here refers to a task by id except the rows themselves, so the only visible effect is where it lands among tasks that share a due date — but "undo" restoring something that is not, strictly, the same record is worth knowing before anything starts referring to tasks by id.
Rejected: deferring the delete until the offer expires. That would make undo a true cancel, with no new id and no date repair. It was not taken because the task would still exist on the server during the window, so a reload mid-offer resurrects something the user has already seen disappear — a worse surprise than a changed id, and a silent one.
A second delete joins the undo offer#
Accepted · 2026-10-31 · #426
What. A delete while an undo offer stands joins it ("2 tasks deleted"), and the offer's eight
seconds start afresh; Undo puts every task in it back. Each restore stands on its own: what came
back is shown, and a task re-created but not dated back to its own day is shown too, dated today,
with the failure said. One failure is said: an ended session first, then a task not put back at all,
then one not put back to its own date. The app's undo does the same, with the same texts and the
website's NotDatedBackError (frontend/src/restore.ts).
Why. The second delete used to replace the offer without a new countdown, so the first task's undo was lost without a word and the second's cut to what was left of the first's; and a failed restore among several left the ones already re-created off the board until a reload. Keying the toast by the newest deletion alone would have fixed the countdown but still lost the first task.
Cost. An offer joined by a delete every few seconds stands as long as that goes on, and could in principle outlast the ten minutes a deleted task's files are kept for it (domain-and-backend.md, D3); the task would then come back without them.
Importance is a dot, and the word is still there#
Accepted · 2026-09-27 · #54
Decision. Importance renders as a dot at the head of each row's metadata line: hollow for low, solid for medium, solid with a ring for high. The word is kept in the markup as screen-reader-only text.
Why. Importance: MEDIUM on every row was noise on the thing people scan fastest. A dot
carries the same information in a glance and takes no width.
Why fill as well as colour. Colour alone fails for the colour-blind, in greyscale and in high-contrast modes. The three levels differ in fill, so they are still three things without any colour at all — and a screen reader gets the word rather than a decorative shape.
Explained once (#335). The dot saves the word on every row, but a first-time visitor has to learn it: above the first board with open tasks, one line — Importance: ● High ● Medium ○ Low. A date in red is overdue. — with Got it, which hides it for good in that browser, or on that phone in the app. One sentence with the dots inline rather than a list of labelled items, so it reads aloud as a sentence and adds no second "High" beside the form's.
Also. n opens the add row from anywhere on the board, ignored while the caret is in a
field or a modifier is held, so it cannot swallow a typed letter or shadow a browser command. Its
badge on Add a task is left out where no precise pointer is attached, not (any-pointer: fine)
(#386): a phone. CSS cannot ask whether there is a keyboard, and a mouse or trackpad is the nearest
sign of one, so a tablet with a trackpad keyboard keeps the badge and one with a keyboard alone
loses it. The shortcut itself still works wherever a keyboard is attached.
The row closes once a task is added (#383), as the app's form does: the website and the app
behave the same, and the board, not an empty form, is what is left to look at. The focus goes back
to the row's button, so Enter or n starts the next task — as it does after Cancel or Escape. A
failed add keeps it open with what was typed, and so does a file that did not make it after the
task was added — cleared, saying which. From Add until then the row is locked, so nothing typed in
the meantime is lost when it closes.
Sign out and Delete account wait behind Account#
Accepted · 2026-10-27 · #391
Decision (#385). The header shows who is signed in and one button, Account, which opens a dialog under it: Signed in as …, Sign out and Delete account — the app's account sheet, on the website. Escape, a click outside and Account itself close it, and the focus goes back to Account; while the deletion's confirmation is open inside it, Escape closes only that and a click outside does nothing, so a half-typed address is not lost.
Why. Neither is something to do with a single click, and the two took the header's room. The dialog opens in place, as the confirmation did, so the board stays readable behind it.
A task id is checked before it is put in a URL#
Accepted · 2026-09-28 · #65
Decision. putTask and deleteTask build their URL through taskUrl, which throws unless
the id is a safe integer, rather than interpolating whatever arrived.
Why. readJson ends with as T. That is an assertion, not a check, and TypeScript erases
it — so every field of every response is the right type only by claim. An id of
"../../elsewhere" or an absolute URL would have been interpolated straight into a fetch,
and the browser would have issued that request with the session cookie attached. SonarCloud
reports the path as API traversal and client-side request forgery.
How much of a risk it actually was. Small: the tainted source is this application's own backend, and a backend able to return a malicious id can already do worse directly. The reason to fix it anyway is that the check is three lines and the alternative is a frontend that believes whatever it is told about where to send an authenticated request.
It throws rather than coercing. A task whose id is not a task id is a broken response. Silently addressing a different task, or dropping the request, would both hide that.
The root cause is larger and was not fixed here. as T lies about every response, not just
this field. It is fixed by the next decision; the guard in taskUrl stays anyway, because
putTask and deleteTask take a Task from a caller and a caller can build one.
A storage link is checked before a file goes to it#
Accepted · 2026-10-11 · #298 Revised in part · 2026-11-13 · #561: the check stays, but SonarCloud did not recognise it at the preview's download, so its two findings there are excluded for that file: A SonarCloud false positive is silenced in the code, at its line.
Decision. The signed links the backend hands out — to upload a file or its thumbnail, and to
open one — go through storageUrl in api.ts before anything is sent or opened. A link must be
HTTPS, or plain HTTP only to this machine (localhost, *.localhost, 127.0.0.1), which is
where the local stacks keep their storage. Any other link is a broken answer, and the upload or
the opening fails as one. The link is used exactly as it came, because a signed link must not be
rewritten.
Why. SonarCloud's taint analysis counts every response as forged input, and it reported the
upload as client-side request forgery (tssecurity:S8476) three times. That was twice under keys
that later closed, and once marked a false positive (Gunnar, 8 October 2026), which a restructured
api.ts would lose again under a new key. As with the task id above, the risk is small, because
the source is this application's own backend. The check costs a few lines, and it keeps a user's
file from going anywhere but HTTPS storage.
An account deletion sends the browser only to Apple's sign-in#
Accepted · 2026-11-21 · #639
Revised in part · 2026-11-22 · #654: SonarCloud did not see the check after all, so its finding
at the redirect is excluded for App.tsx in sonar-project.properties, as taint findings are by
A SonarCloud false positive is silenced in the code, at its line.
A real open redirect elsewhere in App.tsx would not be reported either. The check stays, and so
does leaving the pattern out of openapi.json: one check is still enough.
Decision. deleteAccount in api.ts follows the sign-in URL of the backend's 428 answer
(#635) only when it starts with https://appleid.apple.com/; any other URL is a failed deletion,
worded like any other, and the browser stays where it is.
Why. SonarCloud's taint analysis reported the redirect as a client-side open redirect
(tssecurity:S6105, a blocker), which failed the quality gate on main. As with the two checks
above, the risk is small, since the source is this application's own backend, and the check is
one line. The slash in the prefix is what refuses a host such as appleid.apple.com.example.com.
Left out, to keep it simple. A pattern in openapi.json would say the same in the
contract; one check is enough, and this is the one SonarCloud sees. A refused URL is not worded as
a broken contract (ContractBreachError), which would need a subject in both languages for a case
that only a broken backend produces. Should SonarCloud not recognise the check, its finding is
silenced at its line, as
A SonarCloud false positive is silenced in the code, at its line
says.
Responses are validated against the schema the backend publishes#
Accepted · 2026-09-29 · #74
Revised in part on 2026-11-14 (#559): the schemas are no longer generated from the Quarkus
backend; doc/api/openapi.json is the source they and the validators are derived from
(The API contract is the source). The
validation itself stands.
Decision. api.ts declares none of the shapes it receives. The types and the runtime
validators are both generated from doc/api/schema/*.schema.json by npm run generate:api,
and every response is checked before anything reads a field off it.
Why. readJson used to end with as T, which TypeScript erases — so every field of every
response was the right type by claim only. SonarCloud reported one consequence of that as
client-side request forgery, and the rule's own mapping says what to do about it: CWE-20 and
ASVS 5.1.4, validate structured data against a defined schema. Not encode the output, which
is what the previous attempt did.
Why generated rather than a schema written by hand. A hand-written validator is a second
description of the same shape, and api.ts already had the first: its TaskState and
TaskImportance carried comments saying the backend's enums and these "must be changed
together". That is a convention that depends on being remembered. The backend publishes the
schemas already (see architecture.md), so the frontend can check against the definition
instead of against a copy of it.
Why Ajv compiled ahead of time. Ajv's standalone mode turns a schema into ordinary
JavaScript at build time, so ajv stays a devDependency and dependencies remains React
alone. The generator asserts this rather than hoping for it: if the compiled output ever
needs an import at runtime, it fails and says so.
That assertion is why only the three response shapes get validators. Adding the request
schemas pulls in maxLength, whose compiled form needs a helper from ajv — and the requests
do not need checking here anyway, because the backend validates what it is sent and answers
400.
Why format: date is a regular expression. ajv-formats would be an import at runtime for
one format. A RegExp is inlined. It checks the shape and the ranges but not the calendar, so
2026-02-30 passes — a due date that cannot exist is a backend bug that shows as an odd label,
not something a malformed response could exploit.
Why a checked response is copied rather than returned. toTask builds a new object, with
id: Number(data.id). Past that point the id is a number because a check said so and Number
produced it. It is also where the safe-integer test belongs, because the schema cannot express
it: format: int64 describes a range JavaScript has no exact numbers for.
Extra fields are allowed, deliberately. The schemas do not set
additionalProperties: false. A backend that starts sending a new field must not break a
frontend deployed before it; the parsers copy the fields the contract names and ignore the
rest.
Rejected: zod or valibot. Either would mean a runtime dependency and a third description of the shape — hand-written schemas, derived types — which is the thing being removed. Ajv consumes the published JSON Schema directly.
Rejected: marking the SonarCloud finding a false positive. It would have been defensible.
Number.isSafeInteger did reject every hostile value, and the finding is the engine failing to
recognise a guard rather than a reachable flaw. It was rejected because the rule was pointing
at something true: the frontend believed whatever it was told about every field, not just this
one.
Spacing and type are scales, not values#
Accepted · 2026-09-30 · #91
Decision. App.css defines a strict 4px spacing grid and exactly four type sizes, and every
padding, margin, gap and font size in the stylesheet comes from them.
| Spacing | --space-1 … --space-16, the number being the step count, so --space-4 is 16px |
| Type | --font-display 2rem, --font-title 1.5rem, --font-body 1rem, --font-small 0.875rem |
Why. Colour was already tokenised and dark-mode aware; spacing and type were not. There
were 16 distinct pixel values across padding, margin and gap and ten font sizes, mixing
rem with a stray 16px. Most of the spacing was already a 4px multiple, which is what made
the outliers worth removing rather than accommodating: 7px, 10px, 14px, 6px were drift,
not intent.
What actually moved. Sixteen declarations changed value; the rest only changed to a token.
The largest were .app-footer 40 → 32, .button-primary 20 → 24, .task-section and
.completed-section 28 → 24, and the type collapse: 1.25rem and 1.1rem to body,
0.8125rem, 0.75rem and 0.6875rem to small. Verified by rebuilding the design-system bundle
and comparing the rendered cards before and after — the risk was .user-avatar--initials going
11px → 14px inside a 28px circle, and it fits.
Four declarations are deliberately off the scale, each with a comment saying so:
:root's font-size: 16px, which defines what 1rem means rather than being an entry in the
scale; .visually-hidden's margin: -1px, part of the standard clip idiom; and the 2px top
margins on .task-check and .task-meta, which are optical nudges that a scale step in either
direction visibly misaligns.
Rejected: keeping every existing value and naming it. A scale with --space-7px in it is a
list, not a scale, and gives the design agent no reason to prefer one value over another. The
point of a strict grid is that the next person has eight choices rather than sixteen.
Rejected: a separate spacing token per component. Tokens named for where they are used
(--task-row-gap) grow with the component count and stop composing; a step scale is reusable by
anything, including the layout the design agent writes around these components.
The agent is told. .design-sync/conventions.md carries both scales, and
npm run check:conventions already validates every name it lists, so the new tokens are covered
by the existing guard without changing it.
Sign-in buttons follow Google's branding rules, and every provider looks alike#
Accepted · 2026-10-07 · #198
Revised in part on 2026-11-16 (#281): Apple gets its own button too, not the neutral copy (Apple's own button, in the page's language).
Decision (#190). The sign-in buttons stand one under another. Google's is Google's official
button, used as it comes from its branding assets — light or dark with the page — and every other
provider's button copies its neutral style: white with a grey outline (dark in a dark theme), 40px
high, Sign in with … beside an icon. The icon follows the provider's issuer (providerIcons.ts):
Google's own button for accounts.google.com, the TaskFest mark for a Cognito pool — qa's test
accounts — and a plain key otherwise.
Why Google's button as it comes. Google's rules allow its "G" only inside a complete button, in its light, dark or neutral theme — never the app's blue — set in Google's font, and at least as prominent as any other provider's. The asset has the text drawn in, so no font is needed, and it reads Sign in with Google; the other buttons say Sign in with … to match.
Why the PNGs and not the SVGs. Google's SVG buttons are design-tool exports that draw the "G"
through a <foreignObject> with a CSS gradient and blur filters; Safari renders that as a blurred
smear. The PNGs from the same package — @1x to @3x, chosen by srcset — look the same everywhere,
and all six together weigh about 47 KB.
Why not other providers' logos. None has one meant for this: AWS's icons are licensed for architecture diagrams, and the Cognito pool appears to users as "TaskFest test account" anyway.
Why by issuer, not by id. No provider is named in the frontend, as before; Google's rules belong
to Google as the identity provider, which the issuer says. A configurable icon per provider would
have done it too, at the price of an API change and a changed existing test.
Apple's own sign-in button, in the page's language#
Accepted · 2026-11-16 · #281
Decision. Apple's button is Apple's own image, as Google's is: generated by Apple's button
server (appleid.cdn-apple.com/appleid/button, the parameters in SignedOut.tsx) and kept in
frontend/src/assets/ at 1x to 3x. 180 by 40 like Google's; white with an outline on the light
page and white without one on the dark page; Apple's standard corners; in the page's language.
Why. Apple's rules allow its logo only as Apple supplies it, a button no smaller than any other sign-in button, and black never on a dark background. Its generated button speaks German, unlike Google's, so it follows the page. The corners are Gunnar's choice from screenshots: a capsule like Google's would have been allowed, and the difference keeps the two apart.
Cost. The words are drawn into the image: the catalogue's signedOut.apple is its alt and
must say what the image says, which no test can check. Changing either means fetching the images
again.
English and German, from a typed catalogue of our own#
Accepted · 2026-10-08 · #203, #206
Decision (#203). Every text the frontend shows comes from src/i18n/messages.ts: an English
catalogue that defines the shape, and a German one typed as that shape. The language is the
visitor's remembered choice, else the browser's first preference the app has, else English; a
switch in the footer changes it and is remembered in the browser. <html lang> follows. Dates and
due-date words take the language's words and locale (dates.ts), and the calendar uses
react-day-picker's German locale.
Why no i18n library. Two languages and about a hundred texts need a lookup, interpolation and plurals for a handful of entries -- which a typed object of strings and small functions gives, with completeness checked by the compiler rather than at runtime. FormatJS or i18next would add a runtime dependency, an extraction step and a key format, for features (ICU message syntax, lazy-loaded catalogues) nothing here needs yet. If a third language or a translation tool arrives, that is the moment to revisit.
Why errors carry keys. The wire layer stays language-free: api.ts imports no catalogue. It
names a failure -- a request by what it was doing, a broken contract by which answer and how -- and
keeps an English message of its own for consoles and tests; i18n/failures.ts words it from the
catalogue when the banner renders, so switching language translates a banner already on screen. An
error nobody named (the browser's "Failed to fetch", a JSON parser's complaint) speaks English or
the browser's language, so it is shown as it is on an English page only.
What stays English (for now). Google's sign-in button: its official assets exist in English only (D3). Provider labels: they are backend configuration, so "TaskFest test account" stays English in a German sentence until labels are configured per language. The privacy policy, the terms and the documentation site (D4).
Files go straight to storage, with the tab opened on the click#
Accepted · 2026-10-08 · #204, #212
Decision. Attaching a file (#204) is three requests from api.ts: announce it to the backend,
PUT it to the presigned link that comes back, confirm it. Opening one asks for a link on the click
and points a tab at it. The backend never sees file content; doc/decisions/domain-and-backend.md
says why.
An image's thumbnail is drawn in the page (#236). thumbnail.ts decodes the image with
createImageBitmap, turned as its EXIF says (imageOrientation: 'from-image', as <img> shows the
file), draws it on a canvas at 128 px on its shorter side (cropping a panorama to its middle), on
white since a JPEG keeps no transparency, writes a JPEG, and lets the decoded photo go whatever
happened. A file of 64 KB or less, or an image that would not be scaled down, gets none: it is shown
as it is, which keeps a PNG's transparency and a GIF's animation. Anything that fails -- an old
browser, an image that will not decode, a result over 64 KB -- gives no thumbnail either, and the
upload goes on without one; the thumbnail goes up side by side with the file. The row's Preview
asks for the thumbnail's link when there is one, and for the file's when there is none, its link
cannot be had, or it does not load.
Why XMLHttpRequest for the PUT. The issue asks for progress, and fetch cannot report how
much of an upload has gone. It is used for that one request only; everything else stays fetch.
Why the tab is opened before the link exists. A link works for minutes and the board stays
open for hours, so it is asked for when the file is opened, not when the row renders. A tab opened
after that request has come back is no longer a direct result of the click, and popup blockers
refuse it. So the click opens an empty tab, and the link is put into it when it arrives, with
opener cleared so the file's tab cannot reach back into the board.
Why the limits are in the frontend too. attachmentLimits repeats D1 to say the limits before
an upload and to refuse a 40 MB photo without sending it. The backend's configuration is the
authority and refuses anyway; the refusal texts deliberately name no numbers, so only the hint
would be wrong if the two came apart.
Why a file attaches when it has uploaded, not on Save. An upload is a transfer, not a form field. Holding it until Save would leave an object in storage that the task does not know about, and Cancel undoing it would mean deleting what was just sent.
Attaching while adding a task (#216) holds the files in the browser instead, because there is
no task to upload to yet. The add row checks each file at once -- type, size and how many a task
may have, with the same checkFile the upload uses -- and uploads the held ones, in parallel, once
the task exists. A file refused then does not undo the task: the row names it and says why, and it
can be attached again from the editor; the row stays open to say so, where it closes once
everything went (#383). The editor and the add row share the drop zone (FileDrop)
and the uploading with its progress and messages (useUploads).
The mark is a panda with a ticked ear#
Accepted · 2026-10-10 · #294
Decision (Gunnar, 10 October 2026). TaskFest's mark is a panda's head on a mint tile, its right
ear a green disc with a check mark. It replaces the rounded square with an open corner and a tick
leaving through the gap. It is drawn once, in doc/images/generate.py, which writes every file that
shows it: the README's and the documentation site's logo, the favicons, the sign-in button's icon,
and the sources of the app's icons (mobile/assets/icons/, rendered to PNG by
mobile/assets/render-icons.sh). CI fails when any of them differs from what the generator writes.
Why a panda. It started as the panda of the paused page, which Gunnar liked better than the abstract mark. Made more abstract, it keeps that page's ink and mint, and the tick that says what the app is for. Of four drafts (a round head with a tick ear, the old open square as a face, a panda drawn only by its dark parts, and this tile) the tile won: it brings its own background, so it reads the same on light and dark pages and needs no colour variants, and it is already shaped like an app icon. Two bamboo variants (a stalk behind the head, a tick drawn as bamboo) were also drawn; the plain tick stays legible at 16 pixels, where bamboo turns into a green smudge.
A task's saves go one after another, and a stalled save or upload is given up#
Accepted · 2026-10-31 · #431
Decision. The website sends a task's saves, a tick's or an edit's, one after another: each waits until the one before it has its answer. Only the last one queued has a say on the board: its answer is shown, and its failure rolls the task back to what the server last said and is reported. An earlier one's answer is passed over and its failure kept quiet, unless the session has ended. A save's answer sets the task's fields, keeps the files the board has and adds those it lists that the board has not removed. A task being deleted sends none of its saves still waiting and says nothing of the one on its way. A save that has no answer after 30 seconds is aborted and fails as a refused one does, so it is rolled back and reported, and the save behind it goes. An editor that is saving ignores Escape and disables Cancel until the answer has come. An upload to storage that takes nothing more for 30 seconds is aborted and fails as any other failed upload does, which unlocks the add row; once the whole file is handed over, storage has two minutes to answer.
Why. Two PUTs on their way at once may be applied by the server in either order, and their answers come back in either order too: a tick answered after the untick that followed it left the board showing done while the task was open. Filtering answers in the browser alone would still let the board and the database disagree, so the saves are sent in order instead, and the checkbox still flips at once. Rolling back to the server's last answer, rather than to the task as shown before the click, keeps a tick clicked on another tick that failed from leaving something untrue. An earlier failure is kept quiet because the save after it sends the whole task as the board shows it, so it says what happens. A file confirmed while an edit was on its way vanished from the row when the edit's answer, given before the confirmation, came last. A file attached in another tab is known to the board only from an answer, and one the board removed is still in an answer given before the removal. A save sent after its task was deleted was refused, and the board said it could not update a task whose deletion had worked. A save that hung held back every save after it, unsent, and what they changed was lost on a reload; it is given the thirty seconds an upload without progress is. An editor closed while saving looked discarded and was saved all the same. A connection that hangs rather than drops never settled an upload, so the add row stayed locked until a reload. Thirty seconds without progress count a hanging connection as none, as the app's ten seconds do for a request (mobile-app.md, #311), and never cut off a slow upload that is still moving; the browser counts a byte as sent once it is in the network's buffer, so the last of a file on a slow line is still on its way with nothing to report, which the two minutes allow for. Gunnar's choices (2026-10-31).
Cost. A quick tick and untick wait one round trip between their requests. An edit saved after a tick that failed saves the task as the board showed it, the tick included, and says nothing of the failure. A save passed over while its task was being deleted stays unsent if the deletion fails, and the row comes back as it was deleted.
Rejected: a fixed limit for the whole upload, such as the link's ten minutes. A file of 10 MB on a slow line takes long enough that any limit short enough to help would cut it off, and one long enough would keep the row locked for minutes.
A due time is a native time field, and its zone a switch with the browser's list#
Accepted · 2026-11-02 · #476
Revised in part: the zone switch is shown from the start, and a desktop picks the time from a list, in One picker for each: TaskFest's on a desktop, the phone's on a phone (#588).
Decision. The add row and the editor take an optional time in an input type="time", after the
due date. With a time, a switch "Tied to a time zone" appears, off by default, so a time floats
unless it is tied (Gunnar on #290). Turned on, it starts from the browser's zone, and a <select>
of the zones Intl.supportedValuesOf('timeZone') names, without the Etc/ offsets the backend
refuses, can change it. Clearing the time clears the zone; turning the switch off and on again
gives a task back its own zone. An edit changes the time and zone only when either changed, then
both, null for none; otherwise the task's own go back, and an all-day task's none, which an
update that leaves both out keeps (#497). A browser zone that is a fixed offset, like Etc/GMT-2,
starts the switch at UTC instead, and a browser without the list offers UTC. A row shows the time as the app does (#475), after the date, under every heading.
Why. A native time field types and reads like the date field next to it, in the browser's own 12- or 24-hour form, and needs no library. A switch shows at once whether a time is tied, where a zone picker alone would always show a zone. The browser's list of zones is the same tzdata the backend checks against, so no list is kept here; offering the offsets would offer what is refused. Sending the pair only when it changed keeps an edit of an all-day task as it was before due times.
Cost. The zone picker is a long list, by IANA name ("America/New York"), not by city or offset. A browser that knows a zone the backend's JDK does not yet offers it, and the save is refused.
Rejected: a free-text zone with suggestions, which a mistyped name would only fail on Save, and a picker by UTC offset, which is a zone only half the year (#474).
One picker for each: TaskFest's on a desktop, the phone's on a phone#
Accepted · 2026-11-13 · #588
Decision. Gunnar found the date picker twice, and no way to pick a time or a zone, in desktop Safari. Safari opens a calendar of its own on a click into a native date field, and Firefox shows its own button, which no CSS hides; neither offers a picker for a time on a desktop.
- On a desktop -- anything but a touch screen, a keyboard alone included, decided in one place
(
pointer.ts) that the stylesheet follows -- the due date is a text field in the language's numeric form,14/11/2026or14.11.2026, read as it is typed, an ISO date too (dates.ts). TaskFest's calendar is its one picker. What cannot be read, or lies in the past when adding, keeps the form from being sent and says how to write one. The time stays a native field, for typing any minute, with a clock button beside it that opens the quarter hours, 00:00 to 23:45. - On a phone (Gunnar's choice), the native fields and the phone's own pickers, which suit it; the calendar button is hidden by the stylesheet.
- The zone switch is shown from the start. Turned on before a time is set, it sets 09:00, so a zone is never sent alone, which the backend refuses.
Cost. The desktop's date field is TaskFest's own code where a browser's used to be: its reading
of a typed date is tested in dates.test.ts, and a screen reader hears a text field, labelled "Due
date", rather than a date field.
Rejected: hiding the browser's own pickers by CSS, which reaches only Chrome's, and TaskFest's pickers on a phone as well, which are worse than the phone's own there.
A click on a task's description opens its editor#
Accepted · 2026-11-13 · #593
Revised in part: not only the description but the task's whole section opens the editor, in The whole task section opens the editor (#593). The rest stands.
Decision. Gunnar's: only the checkbox ticks a task off. A click or a tap on an open task's description opens its editor, as the row menu's Edit does, unless it ended a selection, so the text can still be copied; on a completed task, whose row is read-only, it does nothing. The description stays text rather than becoming a button: the keyboard and screen readers have the menu's Edit already, and a second control named after the task in every row would be one more to pass -- and would have the text no longer selectable, and its name matched by the menu's. The app works this way already: its checkbox ticks a task off, and a tap on the rest of the row opens the form.
Cost. The larger target, the whole description, now starts the rarer action, which Editing starts from the menu had chosen against: ticking a task off needs the checkbox itself. A tick is no longer taken by a click meant to read the task.
The whole task section opens the editor#
Accepted · 2026-11-13 · #593
Decision. Gunnar's, after trying the description's click in Safari on qa: the area was only as tall as the text. A click or a tap anywhere in an open task's section opens its editor -- its whole height, the row's padding above and below included, the due line and the space beside it. A control inside it keeps its own click: anything focusable, or with a role of its own, such as an attachment, its remove button or a link. A click that ended a selection still opens nothing.
Cost. Which clicks are a control's is a selector (CONTROLS in TaskRow.tsx); a new kind of
control in the section that is neither focusable nor given a role would open the editor as well
as doing its own thing. The tests click an attachment, its remove button and a link to hold that.