Repository navigation
feat(wp-hotel-booking): add WP Hotel Booking integration - #244
Open
RishadAlam wants to merge 13 commits into
Open
RishadAlam wants to merge 13 commits into
RishadAlam wants to merge 13 commits into
Conversation
Controller with dropdown routes and a RecordApiHelper that fires one Pro hook per action. Register the WP Hotel Booking trigger.
Action picker, required selects (room, booking status, discount type, coupon, extras), field map and utilities for the 24 Pro actions.
…flow WpHotelBooking was missing from customFormIntegrations, so the flow edit page fell back to the form trigger UI.
Use tutorialLinkKey and pass nextPage straight through, like WP Simple Booking Calendar.
A mapped checkbox field sent an array into text and meta fields. Join its values with commas. Also say "activated" in the missing Pro message.
Long "(YYYY-MM-DD)" suffixes were cut off next to a custom value. Use short labels, show one date format hint above the field map, and read labels from staticData so saved flows pick up label changes.
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
Unpublished rooms have no price plans, so bookings made with them had a total of 0.
…n errors Errors now say what is wrong and what to do.
… link - Say when no action is selected and when a field map row is empty. - Show the server message when a list cannot load. - Hide the action doc link until the page is published, like the trigger. - Say that the room price applies to all days.
TagifyInput binds its onChange once at mount, and the shared handleCustomValue spread that stale conf, so editing a custom value reverted settings changed afterwards, such as the booking status. Update the field map through a functional setter instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds WP Hotel Booking (ThimPress) as a Pro integration in Bit Integrations Free. The PR adds the action settings screen for 24 actions, the dropdown routes, and the hooks that pass each run to Bit Integrations Pro. It also registers the 12 Pro triggers so they show in the trigger list. The action and trigger logic is in the matching Pro PR: bit-apps-pro/bit-integrations-pro#164.
Motivation & Context
WP Hotel Booking is in Bit Flows (bit-apps-pro/bit-pi#883). This PR ports its WordPress-hook triggers and its write actions to Bit Integrations.
The following were left out on purpose:
Related Links: (if applicable)
Type of Change
Key Changes
Integrations
WpHotelBookingControllerwith therefresh_wp_hotel_booking_{rooms,coupons,extras,room_types,payment_methods}routes and the plugin check (WPHB_VERSION).RecordApiHelper. It builds the field data, joins a mapped array value into one comma-separated string, and fires onewp_hotel_booking_*hook per action with only the arguments that action reads. It logs every run withLogHandler.AllTriggersName(Pro) and incustomFormIntegrations, so the flow edit page opens the custom trigger editor.Frontend
staticData.js:Review fixes
Testing
Tested on a local site with WP Hotel Booking 2.3.4 through the Bit Integrations UI:
Checklist
Changelog
🤖 Generated with Claude Code