feat(integrations): add Bookings & Appointments for WooCommerce - #224
Open
RishadAlam wants to merge 7 commits into
Open
RishadAlam wants to merge 7 commits into
RishadAlam wants to merge 7 commits into
Conversation
Controller (isExists/authorize + 3 refresh* dropdown fetchers for products/customers/assets), RecordApiHelper (real switch, one case per write action, LogHandler::save on every path), Routes. Free only fires bit_integrations_bookings_and_appointments_for_woocommerce_* hooks — all real logic lives in Pro. Also registers the trigger side in AllTriggersName.php.
staticData.js (14 modules, per-action field maps, fixed status/notify-mode option sets, needsProduct/needsCustomer/needsAsset/needsStatus/ needsNotifyMode groupings), CommonFunc.js, FieldMap.jsx, pro-gated Authorization.jsx + IntegLayout.jsx (product/customer/asset dropdowns, status/notify-mode selects), main + Edit wizard components, icon. Registers in NewInteg/EditInteg/IntegInfo/SelectAction. Required target identifier (item_id) stays in the field map on every action per rule 13; product_id/customer_id/asset_id are config-choice dropdowns since create_booking has no existing target record (mirrors FluentCart's create_order selectedCustomer/selectedProduct precedent).
… for improved readability and maintainability
…phic for icon Replaces the cropped calendar detail with the entire product graphic (logo + illustrations + title text), resized to 128x128 - 4.8KB.
…o 'Bookings And Appointments For Woocommerce'
…tmentsForWoocommerce' to 'Bookings and Appointments for Woocommerce' across multiple components.
🔍 WordPress Plugin Check Report
📊 Report
|
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
0 |
mismatched_plugin_name | Plugin name "Bit integrations - Form Integration, Webhook, Spreadsheets, CRM, LMS & Email Automation" is different from the name declared in plugin header "Bit Integrations". |
0 |
readme_parser_warnings_trimmed_section_changelog | The "Changelog" section is too long and was truncated. A maximum of 5000 characters is supported. |
🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check
…utorialLinks No entry existed for this integration; the action doc is now published.
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 the Free-side action integration for Bookings & Appointments for WooCommerce (PluginHive) — the Controller (authorize + refresh-dropdown endpoints),
RecordApiHelper(one hook per write action, all dispatched to Pro), Routes, and the full action wizard UI (staticData, field map, IntegLayout with product/customer/asset/status selects, main + Edit components). Registers the integration inNewInteg.jsx,EditInteg.jsx,IntegInfo.jsx,SelectAction.jsx, andAllTriggersName.php.Motivation & Context
Extracted from an existing bit-pi integration covering PluginHive's Bookings & Appointments for WooCommerce plugin, to bring the same booking automation (create/update/cancel/delete bookings, reschedule, notes, assets, participants, status emails) to Bit Integrations Free + Pro. All write actions are Pro-gated; Free only fires the hook and renders the config UI.
Related Links: (if applicable)
Type of Change
Key Changes
Integrations
BookingsAndAppointmentsForWoocommerceController— plugin-active check, authorize endpoint, andrefreshProducts/refreshCustomers/refreshAssetsdropdown fetchersRecordApiHelper— one hook per write action (bit_integrations_bookings_and_appointments_for_woocommerce_*),LogHandler::saveon every pathRoutes.php— authorize + 3 refresh routesAllTriggersName.phpFrontend
staticData.js— 14 action modules, per-action field maps, fixed status/notify-mode option setsBookingsAndAppointmentsForWoocommerceIntegLayout.jsx— pro-gated action select, product/customer/asset dropdowns, status/notify-mode selects, field mappingBookingsAndAppointmentsForWoocommerce.jsx/EditBookingsAndAppointmentsForWoocommerce.jsx— create + edit wizardsNewInteg.jsx,EditInteg.jsx,IntegInfo.jsx,SelectAction.jsxChecklist
Changelog