Skip to content

fix: the last native date fields use the app's own picker - #429

Merged
vladenisov merged 2 commits into
mainfrom
fix/native-date-inputs
Oct 8, 2026
Merged

vladenisov merged 2 commits into
mainfrom
fix/native-date-inputs

Conversation

@vladenisov

Copy link
Copy Markdown
Collaborator

Summary

Three fields still showed the browser's native date input, with its own mm/dd/yyyy format and theme. All three now use the app's picker.

  • Audit log From/To filter now uses DatePicker.
    • The To calendar disables the days before From, so a backwards range can't be picked.
    • Clear lifts the filter.
  • Scan replay dialog From/To now uses DateTimePicker. Required fields and errors are still announced through aria-required and aria-invalid.
  • Event sunset date now uses DateTimePicker with Clear.

Picker changes:

  • New props clearable, aria-invalid and aria-required.
  • The button carries its wire value as data-value, so tests read the exact value.
  • New test helper test/pickers.ts (pickDate) drives the picker the way a user does.

Follows #428.

Test plan

  • Vitest: picker, audit tab, alert audit panel, event form and replay dialog (113 + 13 + replay suite).
  • tsc -b and oxlint pass.
  • E2E the audit log filters by day with the in-app calendar passes locally.
  • The replay dialog was checked in a browser.
  • CI.

🤖 Generated with Claude Code

The audit log's From/To filter (a native mm/dd/yyyy field), the scan replay
dialog and an event's sunset date now use DatePicker / DateTimePicker, as every
other date in the app does. Optional fields get a Clear button; the audit log's
To calendar disables the days before From, so a backwards range cannot be
picked. The picker button carries its wire value as data-value for tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 23:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vladenisov
vladenisov merged commit e2e4284 into main Oct 8, 2026
16 checks passed
@vladenisov
vladenisov deleted the fix/native-date-inputs branch October 9, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants