Repository navigation
feat(bit-connect): add Bit Connect forum triggers and actions - #250
Open
RishadAlam wants to merge 10 commits into
Open
RishadAlam wants to merge 10 commits into
RishadAlam wants to merge 10 commits into
Conversation
Free fires one bit_connect_* hook per write action (create post, set status, vote, comment, badge, group add/remove) and logs the result. A refresh route lists topic types, statuses, stages, badges, groups and tags for the action dropdowns.
Action select, field map, option dropdowns with refresh, the plugin check and the logo.
Add the integration to the new, edit and info routers, the action list, the custom form trigger list and the tutorial links.
…ee plugin Move the forum event triggers and the seven actions out of Pro. The free trigger, the BitConnectActionHelper and RecordApiHelper call Bit Connect Pro directly, and every action is free in the action list.
The action search matched only the type key, so "Bit Connect" or "Rox Appointment Booking" found nothing. Match the display name too.
Clicking the selected role cleared the required Group Role select. Fall back to Member.
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
Tell the user whether Bit Connect, Bit Connect Pro or its licence is missing, instead of always saying Bit Connect Pro is not installed, and write the error to the flow log.
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 a free Bit Connect integration: 15 forum event triggers (
custom_form_submission) and 7 write actions. Actions call the Bit Connect Pro PHP API (BitApps\BitConnectPro\Integrations\Actions), so they use the forum's own validation, permissions and events. The PR also lets the action search match an app's display name.Motivation & Context
Bit Connect (the Bit Apps community forum plugin) fires a
bit_connect_*WordPress hook for every forum event and offers same-site PHP actions. Users can now react to posts, comments, votes, polls, sign-ups, logins, badges, group changes, reports and moderation, and create posts, comment, vote, set status/stage, award badges and manage group members. Everything runs in the free plugin; Bit Integrations Pro is not needed.Related Links: (if applicable)
Type of Change
Key Changes
Triggers (
backend/Triggers/BitConnect/)bit_connect_event).bit_connect_<event>from the payload), each with a note.Actions (
backend/Actions/BitConnect/)BitConnectActionHelper, called fromRecordApiHelperwithLogHandler).refresh_bit_connect_options.Frontend
Actionsclass, action select, option dropdowns with refresh, field map) and registered them in the new/edit/info routers, the action list, the custom form trigger list and the tutorial links.Testing
php -land php-cs-fixer clean; prettier and eslint clean on the changed fileswp_btcbi_log: all 15 triggers ran and all 7 actions succeeded (52 of 53 runs). The one error was a test flow that mapped a comment ID from a moderation event into Vote for Post's post ID ("Invalid post.").Checklist
Changelog
🤖 Generated with Claude Code