-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render uniform WP time picker over default time input element #489
base: trunk
Are you sure you want to change the base?
Conversation
…lect from wc bookings
Co-authored-by: Darin Kotter <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Status: Need Information/Need Fixes ⚠️
- Save a setting and refresh the page. The setting should persist. ✅
- Perform with both 12 and 24 hour configuration.
⚠️ When a user changes the settings from 24 to 12 hours, it shows 24 hours clock. @MaxwellGarceau Can you please help if any step I missed? Please watch video 1.
Video 1:
Screen.Recording.2025-01-28.at.13.01.41.mov
Testing Environment - Local
- WordPress: 6.7.1
- Theme active on store: Twenty Twenty-Five
- WooCommerce - Version 9.6.0
- PHP: 8.2.23
- Web Server: nginx/1.26.1
- Browser: Chrome - Version 128
- OS: macOS Sonoma 14.6.1
- woocommerce-accommodation-bookings: https://github.com/woocommerce/woocommerce-accommodation-bookings/actions/runs/13005292565
Hey @Sourabh208 thanks for the QA notes. Possible cause of the problemJust to confirm, are the changes from https://github.com/woocommerce/woocommerce-bookings/pull/3926 active in your testing environment? The reason I ask is because this change uses a CSS class that was introduced in https://github.com/woocommerce/woocommerce-bookings/pull/3926 to initialize the JS time picker that transforms the default Based on the testing video 1 it seems that the JS time picker isn't being applied. SolutionsThe easy wayAssuming what I said above is accurate, the easiest option would be letting https://github.com/woocommerce/woocommerce-bookings/pull/3926 go through to the development cycle first and making it into production before QA'ing this ticket. The hard wayAnother option would be manually setting up your testing environment to use branch fix/3633 in WooCommerce Bookings and building the plugin with the build steps documented in the readme. This is definitely more work. If you're testing on a remote environment you could try to SSH into the environment and upload the built fix/3633 branch or if you have access to FTP you could drag/drop it. What do you think? |
All Submissions:
Have you written new tests for your changes, as applicable?Not applicableWill this change require new documentation or changes to existing documentation?Documentation for this change would live on the WooCommerce Bookings side if neededChanges proposed in this Pull Request:
wc-bookings-render-wp-time-picker
class to the time input on the Bookings -> Settings -> Accommodations admin menu to render a uniform time selector that follows sitewide time formatsCloses #364.
Steps to test the changes in this Pull Request:
Warning
**‼️ ‼️ NOTE - BLOCKED by WC BOOKINGS PR 3926: This change relies on code introduced in https://github.com/woocommerce/woocommerce-bookings/pull/3926.
Note
There is no chance of introducing bugs if this PR is merged first.
Without the WooCommerce Bookings PR there will be no change whatsoever in appearance or functionality of the input time selector. The only code change in this PR is adding the class that the JS uses to select and initialize the time picker.**
/wp-admin/edit.php?post_type=wc_booking&page=wc_bookings_settings&tab=accommodation
/wp-admin/edit.php?post_type=wc_booking&page=wc_bookings_settings&tab=accommodation
should adapt to display the 12 hour formatFunctionality - Admin
Functionality - FE
/wp-admin/edit.php?post_type=wc_booking&page=wc_bookings_settings&tab=accommodation
Changelog entry