Skip to content

Conversation

@GaryJones
Copy link
Contributor

Summary

  • Remove the unmaintained jquery-ui-timepicker-addon library (~1900 lines)
  • Replace with WordPress core jQuery UI Datepicker + HTML5 native time inputs
  • Add Gutenberg compatibility via REST API meta registration and data store sync

Changes

  • Date/Time UI: Separate date picker and time input instead of combined widget
  • Gutenberg saving: Register post meta with show_in_rest and sync field changes to wp.data store
  • Calendar: Inline editing now uses HTML5 datetime-local input

Backwards Compatibility

Existing stored data is fully compatible - dates remain stored as Unix timestamps, no migration required. Users will only notice the slightly different date/time picker UI.

Test Plan

  • Create a new post in Block Editor, set editorial metadata fields (date, text, checkbox, number), save and reload - values should persist
  • Edit an existing post with editorial metadata - existing values should display correctly
  • Change date/time values and save - should persist
  • Test in Calendar module - inline date editing should work

Closes #660

🤖 Generated with Claude Code

…ith native inputs

Remove the jquery-ui-timepicker-addon library (~1900 lines) which is no longer
maintained, replacing it with WordPress core jQuery UI Datepicker combined with
HTML5 native time inputs.

Key changes:
- Date fields now use separate date picker + time input instead of combined widget
- Added REST API support via register_post_meta() for Gutenberg compatibility
- JavaScript syncs field changes to Gutenberg data store for proper saving
- Calendar inline editing uses HTML5 datetime-local input

Existing stored data is fully backwards compatible - dates are still stored as
Unix timestamps and no migration is required.

Closes #660

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@GaryJones GaryJones requested a review from a team as a code owner December 24, 2025 01:24
@GaryJones GaryJones self-assigned this Dec 24, 2025
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Dec 24, 2025
@GaryJones GaryJones added this to the Next (minor) milestone Dec 24, 2025
@GaryJones GaryJones merged commit d7b9adb into develop Dec 24, 2025
12 checks passed
@GaryJones GaryJones deleted the refactor/660-replace-jquery-timepicker branch December 24, 2025 01:41
@GaryJones GaryJones mentioned this pull request Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change jQuery-Timepicker-Addon to another one

2 participants