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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 `<DateField>` as part of this work.
|
||||
Existing `EditEventDialog.tsx` migrates to `<DateField>` 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 `<DateField>`.
|
||||
- `adiuvAI/src/renderer/components/tasks/TaskFormDialog.tsx` — swap popover+Calendar for `<DateField>`.
|
||||
- `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).
|
||||
|
||||
Reference in New Issue
Block a user