You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: share the Date field shell and calendar frame (jscpd: ~600 duplicated lines) #623
jscpd reports the Date components as the largest duplication: DatePicker/TimeField 188 lines, DateField/TimeField 147, Calendar/RangeCalendar 122, DatePicker/DateRangePicker 13.
Extract, internal only (no public API change):
a field shell (label, description, error, hidden input, group wrapper, trigger button) used by DateField, TimeField, DatePicker, DateRangePicker;
a calendar frame (application root, sr-only heading, CalendarBody) used by Calendar, RangeCalendar and the two picker popovers;
the shared popover helpers (focusOwnDay, close).
Proof: the existing Date browser tests stay green (no new behavior, so no new test).
Activity
mvilacad commentedon Oct 25, 2026
Working on this in #624 (draft). Branch
feat/623-refactor-share-the-date-field-shell. Regression test first, then the fix.chore: start #623
refactor: share the Date field shell and calendar frame (#623)
feat: refactor: share the Date field shell and calendar frame (jscpd:…