From c68e23b713e57c171d4478dbe85c06a37cd87774 Mon Sep 17 00:00:00 2001 From: Roberto Date: Wed, 13 May 2026 15:56:35 +0200 Subject: [PATCH] docs(spec): defer TaskFormDialog migration from timeline batch-add TaskFormDialog uses TZDate + H/M selectors; DateField primitive does not cover timezone or time-of-day. Track as follow-up after DateField gains timezone/time support. Co-Authored-By: Claude Opus 4.7 --- .../specs/2026-05-13-timeline-batch-add-design.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/superpowers/specs/2026-05-13-timeline-batch-add-design.md b/docs/superpowers/specs/2026-05-13-timeline-batch-add-design.md index 393bb83..07e4201 100644 --- a/docs/superpowers/specs/2026-05-13-timeline-batch-add-design.md +++ b/docs/superpowers/specs/2026-05-13-timeline-batch-add-design.md @@ -33,7 +33,7 @@ Two new shared primitives extracted from this work: - `adiuvAI/src/renderer/lib/parseDate.ts` — pure date parser, locale-aware. - `adiuvAI/src/renderer/components/ui/date-field.tsx` — controlled date input with typed entry + popover fallback. -Existing `EditEventDialog.tsx` and `TaskFormDialog.tsx` migrate to `` as part of this work. +Existing `EditEventDialog.tsx` migrates to `` as part of this work. `TaskFormDialog.tsx` is **out of scope** — it uses `TZDate` plus time-of-day (H/M) selectors, which DateField does not cover. A follow-up pass should add `timezone` + `showTime` props to DateField, then migrate TaskFormDialog. ## State model @@ -264,7 +264,6 @@ New: Modified: - `adiuvAI/src/renderer/components/timeline/AddEventDialog.tsx` — full rewrite to staged-batch model. - `adiuvAI/src/renderer/components/timeline/EditEventDialog.tsx` — swap popover+Calendar for ``. -- `adiuvAI/src/renderer/components/tasks/TaskFormDialog.tsx` — swap popover+Calendar for ``. - `adiuvAI/src/renderer/locales/{en,it,es,fr,de}/translation.json` — add i18n keys above. Untouched: @@ -287,7 +286,6 @@ Repo has no automated test suite (per `adiuvAI/.claude/CLAUDE.md`). Manual verif - [ ] Del on focused row removes it, focus advances. - [ ] Esc with staged > 0 shows confirm; cancel keeps dialog, OK closes. - [ ] `EditEventDialog` opens, `DateField` shows existing date formatted, edit and save works. -- [ ] `TaskFormDialog` create + edit flow works with `DateField`. - [ ] Reduced-motion preference respected (no popover spring if user has it). ## Open questions @@ -298,4 +296,4 @@ None known at design time. Resolved during brainstorming: - Date entry: typed input with smart parse, calendar popover as fallback. - Range entry: two fields (start → Tab → end). - Row edit: arrow nav, Enter edit, Del remove. -- Components: `DateField` + `parseDate` extracted as shared primitives, migrate `EditEventDialog` + `TaskFormDialog` in this work. +- Components: `DateField` + `parseDate` extracted as shared primitives, migrate `EditEventDialog` in this work. `TaskFormDialog` deferred (needs timezone + time-of-day support on DateField).