Repository navigation
fix(platform): keep cleared and typed values in task history - #3813
Conversation
A task's history read every stored value the same way. The editor stores an empty side as '' when a field is cleared, and the timeline dropped it, so a cleared due date read as its old date alone. Every value that spelled a status code was also translated, so a title renamed from `todo` to `done` read "À faire → Terminé" in French. TASK_ACTIVITY_FIELD now says how each action's values read: statuses and priorities as words, people by name, days as dates, repeat rules as sentences, and titles, descriptions, label and file names exactly as stored. An empty side names the absence (No due date, Unassigned, No description, ...), and an end a row never recorded invents nothing. The assignee and repeat writers leave an empty side out instead of storing '', which the table says too. New empty-value words ship in en, de and fr. The task dialog's Activity and the task page's conversation share the formatter, so both read the same. Closes #3750 Closes #3751
…d-values Main's #3810 took TASK-F50 for its member box, so this branch's history box becomes TASK-F51 (suite box and automation register row); the suite's Cost is 93.
Review follow-ups for the task history formatter. - A row empty on both ends, which the assign door writes when an already unassigned task is unassigned, names no change instead of reading "Unassigned → Unassigned". - A stored day no Date can hold reads as no date, as the board reads it, instead of leaving the other side alone to read as the new date. - The retired claim door's rows name the member who claimed the task. - display.test.ts walks the task writers and fails when an action they record has no label, or stores a value without a declared field kind. - The fixture dates are local noon, so the test reads the same day in every time zone. - The docs no longer claim every change is recorded, and name everything that follows the reader's language. The manual box names its date and how the second member opens the task.
…ed-search-recovery The manual readme counts main's boxes plus this branch's six (989). Three of this branch's new boxes collided with IDs other open PRs add — TASK-F51 (#3813), TASK-B28 (#3881), TASK-B29 (#3908) — so they move to TASK-F52, TASK-B32 and TASK-B33, in the suite, pins.md and the automation register.
…d-values The manual readme keeps main's totals; its counts are recounted once after the open PRs land.
# Conflicts: # services/platform/tests/manual/suites/tasks.md
|
Scoped review of exact head Observed local verification: 23 history/guard tests, 50 task adapter/activity/i18n tests, 21 Chromium cases across EN/DE/FR/de-CH, and 31 docs checks pass. Changed-file formatting/lint/types and manual shape/reference checks pass. Browser controls include set/change/clear, literal status tokens, repeat values, unknown legacy actions and a mounted locale switch. Synthetic wire/query/directory data are explicit; the activity writer uses fake SQL. This is not a real PostgreSQL or multi-session realtime replay, whole-root check, or a full visual docs round. Evidence and limits: |
…chived-project-and-parent-moves The manual readme is recounted on the merged tree (1003 boxes), and the task suite's Cost is 100: main's TASK-F51 (#3813) and this branch's TASK-B29 each merged into a header both sides had set to 99.
Only two committed frames no longer match the merged code, out of a full
capture of every shot on it. project-task-repeat's Activity now shows the
due date's value before and after the change ("No due date ->
09/29/2026"), as #3813 records it. settings-providers names the provider
without the empty Custom pill the old frame kept. The other frames match
their fresh captures apart from the capture clock, seed order and font
rendering, so they stay as they are.
Task history now reads each stored value as the field it changed. A cleared field names its absence instead of repeating the old value, and text that a person typed stays exactly as typed.
What was wrong
''when a field is cleared (stringifyEditValue). The timeline dropped every''except priority's and repeat's, then fell back toto ?? from, so clearing a due date read due date changed: 10/01/2026, the same as setting that date. The assignee writers leave an empty side out instead of storing'', so unassigning read assignee changed: Kim Lee.isTaskStatus()on every value of every action. A title renamed fromtodotodoneread titre modifié: À faire → Terminé in French. The same happened to descriptions, label names, file names and unknown actions.What changed
TASK_ACTIVITY_FIELDinapp/features/tasks/lib/display.tsstates, per stored action, what its values are:created,status.changed) and priorities read as words;tasks.activity.empty.*words cover dates, description, labels and attachments in en, de and fr.de-CHneeds no override (noß).Datecan hold reads as no date;claimedrows name the member.app/features/tasks/lib/display.test.tswalks the task writers. It fails when an action they record has no label, or stores a value without a declared field kind, so a new action cannot quietly render as text.TaskTimelineEntryswitches on the field kind. The task dialog's Activity and the task page's conversation share it, so both are fixed.docs/{en,de,fr}/platform/projects/tasks.md.TASK-F51plus areference/automation.mdrow. Main's feat(platform): let members create tasks and work their own #3810 tookTASK-F50. The suite's Cost is 93 after main was merged in, andreadme.md's totals are recounted to 982. fix(ui): give filter radios one Tab stop and the arrow keys #3853 adds one accessibility box too, so whichever lands second counts 983.How it was verified
task-timeline.values.test.tsx, 12 cases (4 per locale). It uses the real en/de/fr catalogs and real date formatting. The door's own JSON (nullfor an end left out,''for a cleared one) is projected by the real activity adapter and handed to the timeline in place of its query hooks; the member directory is a fixture.created; rows that never recorded an end; unknown actions; a date noDatecan hold; a no-op assignee row; a legacy claim.fac88dfc2, and all 12 pass here. The fixture days are local noon, so they read the same in every time zone.display.test.ts, 3 cases (the guard). It fails when a declaration is removed, for exampledependency.added.task-timeline.test.tsx: 8 pass;app/features/tasksandapp/features/homeclient tests: 64 files, 464 tests pass;app/lib/backend/tasks.test.tsandbackend/domains/tasks/service.activity.test.ts: pass;backend/main.tswithROLE=all,vite previewof the production build; loopback only, synthetic organizations.ae45466a0. The maintainer's later merge ofmain(a653b0e2a) leaves every file these runs exercise byte-identical (git diff --quiet).POST /api/app/tasks/{id}/assign/statusroutes render correctly in en, de and fr, both in the board's task dialog and on the task page. For example: due date changed: 10/01/2026 → No due date, fälligkeitsdatum geändert: 01.10.2026 → Kein Fälligkeitsdatum, titre modifié: todo → done, statut modifié: À faire → Terminé.todothendone, and moved it to Done. A second member had the task page open in German in another session and saw each new line within 1 s without a reload; a reload showed the same lines.oxlint --type-aware --type-checkandoxfmton the changed files,bun run lint:manual, andcheck-guide.tsonsuites/tasks.md(no new findings againstorigin/main) all pass. The docs locale and structure checks pass: 8 files, 20 tests.Coordination and scope
claimed, the time-zone-sensitive fixture, the docs claiming more than the code does, and the manual box wording.a8af06404and mine have identical trees.fälligkeitsdatum geändert), the colon without a French no-break space, and dependency rows showing the blocker task's id (the field table now declares it as stored text).Closes #3750
Closes #3751