Skip to content

Claude/plan issue 6415 muu0g#1

Open
pscanf wants to merge 2 commits intomainfrom
claude/plan-issue-6415-MUU0g
Open

Claude/plan issue 6415 muu0g#1
pscanf wants to merge 2 commits intomainfrom
claude/plan-issue-6415-MUU0g

Conversation

@pscanf
Copy link

@pscanf pscanf commented Jan 11, 2026

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

…e#6415)

Add detailed implementation plan for adding millisecond granularity
support to DateField and TimeField components. The plan covers:

- Type definition updates for Granularity type
- Core state management changes in useDateFieldState
- Integration with Intl.DateTimeFormat's fractionalSecondDigits
- Placeholder, accessibility, and documentation updates
- Testing strategy

This addresses the feature request in adobe#6415.
…nd TimeField

This implements the feature request from issue adobe#6415 to add millisecond
granularity support to DateField and TimeField components.

Changes:
- Add 'millisecond' to the Granularity type definition
- Update getFormatOptions() to handle millisecond granularity using
  Intl.DateTimeFormat's fractionalSecondDigits option
- Add 'millisecond' segment type with TYPE_MAPPING from 'fractionalSecond'
- Update EDITABLE_SEGMENTS and PAGE_STEP to include millisecond (step of 100ms)
- Implement getSegmentLimits(), addSegment(), and setSegment() for millisecond
- Update processSegments() for RTL text direction handling with millisecond
- Add three-dash placeholder ('–––') for millisecond field
- Add 'millisecond' translations to all 34 locale files
- Update useDateSegment to handle millisecond numeric input
- Update useDisplayNames to fall back to polyfill for millisecond field
- Update documentation to mention 'millisecond' granularity option
- Add tests for millisecond granularity in TimeField and DatePicker

Fixes: adobe#6415
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