Repository navigation
Description
Clearing a task field displays its previous value in the activity log without saying it was removed. A due date that is now absent reads due date changed: 10/01/2026, which is indistinguishable from setting that date when read alone. The stored task and activity are correct; the presentation loses the direction of the change.
Suggested severity: P3.
Reproduction on an owned local task through native authenticated app routes:
- Set Due date to 30 September 2026, then to 1 October 2026, then clear it. The route is
POST /api/app/tasks/{id}?orgId={org}, with{dueDate: <epoch milliseconds>}or{dueDate: null}. - Read
/api/app/tasks/{id}/activity: the clearing row hasfromValueequal to the previous timestamp andtoValue: "". Read the task:dueDate: null. - Render that native activity through the real adapter,
useTaskActivityandTaskTimelineEntry. The ordinary date change shows due date changed: 09/30/2026 → 10/01/2026; the clear shows due date changed: 10/01/2026, with no cleared/none wording or destination. - Clearing a description exhibits the same fallback. As a positive control, clearing Priority correctly renders priority changed: Urgent → No priority.
Expected: distinguish removal from setting a value, with a localized empty destination or an explicit cleared action. Preserve the prior value as useful context while naming the resulting absence. Cover the shared formatter's nullable fields once, rather than filing one report per date, description, reviewer or assignee.
Cause: TaskTimelineEntry treats an empty string as undefined for ordinary fields, then uses to ?? from when either side is missing at line 202. The backend intentionally writes the empty string as its cleared sentinel. Priority already has explicit empty-value handling. Preserve the difference between a missing legacy value and an intentional clear.
Local proof: task-timeline-next/seed.py created an isolated synthetic project/task and retained all nine activity rows. timeline.probe.test.tsx executes the actual activity query adapter, hook, renderer, i18n and date formatting. The transport admits only the native localhost activity GET; only actor-directory names/previews are synthetic. Three observation/control cases passed in parent-probe.log; native persistence and rendered strings are recorded in fixture.json and timeline-evidence.json. The first symptom was also observed in the local Chrome task modal during the date-picker audit. No hardware assistive-technology, new screenshot of this isolated fixture or production behavior is claimed.
Replay from the detached audit checkout's services/platform directory:
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/task-timeline-next/vitest.config.ts --silent=falseTested source 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d; renderer, display maps, adapters, hooks and native task service are byte-identical to fetched main 2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. Full-body dedup covered 1,063 all-state issues, baseline102, and the 30 additional-report ledger. Related history-read, archive-metrics and date-input reports have different causes. This is separate from interpreting literal text as status codes: an ordinary date/string removal fails without any enum collision. No production testing, real providers, source edits or agent execution occurred.
Acceptance: real native field set/change/clear rows retain their meaning in EN/DE/FR; date-to-date and priority-clear controls remain correct; legacy absent values remain readable without inventing a value.
Activity