Skip to content

UI: Add paste support to DateTimeInput component#66851

Closed
kyupark wants to merge 2 commits into
apache:mainfrom
kyupark:fix-datetime-paste-65356
Closed

UI: Add paste support to DateTimeInput component#66851
kyupark wants to merge 2 commits into
apache:mainfrom
kyupark:fix-datetime-paste-65356

Conversation

@kyupark
Copy link
Copy Markdown
Contributor

@kyupark kyupark commented May 13, 2026

Add an onPaste handler to the DateTimeInput component so users can paste datetime strings directly into the input field.

The handler parses the pasted text with dayjs, converts it to the selected timezone, and triggers onChange with the UTC value. Pasted values without explicit timezone offsets are interpreted in the Airflow UI's selected timezone.

closes: #65356


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.7)

Generated-by: Claude Code (Opus 4.7) following the guidelines

kyupark added 2 commits May 13, 2026 18:11
Add an onPaste handler to the DateTimeInput React component that
parses pasted datetime strings using dayjs, converts to the user's
timezone, and triggers onChange with the UTC value.

Closes apache#65356
@kyupark kyupark force-pushed the fix-datetime-paste-65356 branch from 6b89285 to 789ad88 Compare May 13, 2026 16:11
@parkhojeong
Copy link
Copy Markdown
Contributor

Thanks for the PR. I think this overlaps with #66251.

I left a few comments on #66251 about timezone handling and a possible debounce race condition. It would be great if you could join the discussion/review there so we can consolidate the work.

@parkhojeong
Copy link
Copy Markdown
Contributor

The ui test job failed in CI

@bbovenzi
Copy link
Copy Markdown
Contributor

Closing in favor of #66251

@bbovenzi bbovenzi closed this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow pasting full datetime strings into date picker inputs

3 participants