feat(nextcrm): add NextCRM integration - #209
Open
RishadAlam wants to merge 3 commits into
Open
Conversation
Add the free side of the NextCRM integration: 16 write actions that fire bit_integrations_next_crm_* filters for Bit Integrations Pro, six dropdown endpoints (tags, lists, campaigns, contact fields, contact types and contact statuses) and the React wizard. Actions identify their target contact by email rather than by NextCRM's internal id, since an email is what trigger data actually carries. Read-only operations are not extracted as actions; the data they returned is exposed through the dropdowns instead. Register the trigger in customFormIntegrations so editing a NextCRM flow loads the custom-form-submission editor rather than falling through to the form-type one.
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
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.
Pull Request
Description
Adds the free side of the NextCRM integration: 16 write actions that fire
bit_integrations_next_crm_*filters for Bit Integrations Pro, six dropdown endpoints, and the three-step React wizard. Registers NextCRM as a trigger source so its 24 Pro triggers appear in the flow builder.Motivation & Context
NextCRM (Newsletters, Email Marketing, Automation, Revenue Tracking & CRM) had no Bit Integrations support, so its contacts, tags, lists and campaigns could not be driven from a flow.
Per the free/pro split, this plugin contains no NextCRM business logic — it validates the field map, then hands off through
Hooks::apply(Config::withPrefix(...)). The handlers live inbit-integrations-pro.Actions identify their target contact by email rather than by NextCRM's internal id, because an email is what trigger data actually carries; a hand-picked id would tie the action to a single record. Read-only operations are not extracted as actions — the data they returned is exposed through dropdowns instead.
Related Links: (if applicable)
Requires Bit-Apps-Pro/bit-integrations-pro PR (NextCRM actions and triggers) for the actions to do anything. This PR defines the filter names; Pro hooks into them.
Type of Change
Key Changes
Backend
backend/Actions/NextCrm/—NextCrmControllerwith sixrefresh*endpoints (tags, lists, campaigns, contact fields, contact types, contact statuses),RecordApiHelperwith a 16-caseswitchdispatching one literal filter per action and logging every path throughLogHandler::save, andRoutes.phpNextCrmtoCore/Util/AllTriggersName.phpFrontend
AllIntegrations/NextCrm/—staticData.js(all 16 modulesis_pro: true),NextCrmCommonFunc.js, plus Authorization, FieldMap, IntegLayout, Actions,NextCrm.jsxandEditNextCrm.jsxresource/img/integ/nextCrm.webp— without itGetLogofalls back to a placeholder and logs an errorNewInteg.jsx,EditInteg.jsx,IntegInfo.jsx,SelectAction.jsxandcustomFormIntegrationsinwebhookIntegrations.js, the last of which routes the trigger to the custom-form-submission editorField map vs dropdown
contact_email) and free text to the field map, so both are mappable from trigger dataChecklist
Prettier, ESLint and
php -lrun clean. Wiring verified end to end: 16 modules ≡ 16switchcases ≡ 16 free filter strings ≡ 16 Proaccepted_args; six routes ≡ sixbitsFetchcalls; controller response keys ≡ the keysNextCrmCommonFuncreads; and no field-map key is read by a handler without existing instaticData.Known issue, pre-existing and not introduced here: a long custom value in the field map overlaps the adjacent select. It affects every integration using
.integ-fld-wrp—TagifyInputaccepts aclassNameprop but never applies it, and.tagify--mixis a fixed330pxinside a row hard-capped at800px. A real fix belongs inTagifyInputorapp.scssand would touch all integrations, so it is deliberately out of scope here.Changelog