Skip to content

feat(TimeInput): add native picker option - #5811

Merged
imdreamrunner merged 1 commit into
mainfrom
feat/time-input-native-picker
Sep 1, 2026
Merged

imdreamrunner merged 1 commit into
mainfrom
feat/time-input-native-picker

Conversation

@imdreamrunner

Copy link
Copy Markdown
Contributor

Summary

  • add nativePicker="touch" | "always" | "never" to TimeInput, defaulting to the browser/OS time picker on coarse pointers
  • reuse the iOS-safe native time control introduced for DateTimeInput in feat(DateTimeInput): add native picker option #5620
  • retain Astryx's typed field for hasSeconds and custom increment values, which native iOS time pickers cannot preserve
  • document the API and add Storybook, doc-site showcase, localization, and standalone native-picker coverage

Behavior

  • touch (default): native picker on coarse pointers, Astryx typed field on fine pointers
  • always: native picker wherever compatible
  • never: Astryx typed field everywhere
  • min/max are forwarded and enforced on commit
  • pending changeAction work does not detach an open native picker

Test plan

  • 264 focused TimeInput and DateTimeInput tests
  • core typecheck and production build
  • 454 doc-site tests and production build
  • Storybook typecheck and production build
  • strict lint, formatting, i18n, knowledge, changeset, sync, and package-boundary checks

@vercel

vercel Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Sep 1, 2026 4:43am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 1, 2026
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Sep 1, 2026
github-actions Bot added a commit that referenced this pull request Sep 1, 2026

@xinzi-bot xinzi-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks, the native surface shape looks good. Since this intentionally changes TimeInput's default touch UI, I need exact-head screenshots of the native surface and typed fallback before this leaves draft. No code concern from this pass.

[Automated review]

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook and Sandbox were not published for this CI run.

Modified Components

DateTimeInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 3388 -
Complexity N/A Very High (532) -
TimeInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 526 -
Complexity N/A Very High (91) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.8KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

266 added · 0 removed. View the report

A repository maintainer can accept these exact frames: /accept-visual 33470682802/1 <why every changed frame is correct>

Added — After
Added — After visual regression frame

Added — After
Added — After visual regression frame

Added — After
Added — After visual regression frame


Generated by PR Enrichment workflow | View full report

@imdreamrunner
imdreamrunner marked this pull request as ready for review September 1, 2026 05:50
@imdreamrunner
imdreamrunner merged commit 03eb631 into main Sep 1, 2026
30 of 31 checks passed
@github-actions
github-actions Bot deleted the feat/time-input-native-picker branch September 1, 2026 06:23

This branch was successfully deployed

1 active deployment
Preview — 6f7e5f1e Deployed Sep 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants