Repository navigation
feat(wp-activity-log): add WP Activity Log integration - #246
Open
RishadAlam wants to merge 8 commits into
Open
RishadAlam wants to merge 8 commits into
RishadAlam wants to merge 8 commits into
Conversation
Adds the controller, record helper and routes for the WP Activity Log action. RecordApiHelper fires one Pro hook per action and saves a task log on every path. The routes feed the event, event data field, user, object and event type dropdowns. Event data fields are the placeholders of the selected event's message, metadata and links.
Adds the setup wizard, edit screen, field map and utilities for the 20 Pro actions. Log Event loads its field map from the selected event. Delete Events by Filter takes its event, user, severity, object and event type filters from Utilities. Both delete-in-bulk actions show a warning that deleted events cannot be restored.
Lists WP Activity Log in the trigger list (custom form submission type) and the action list, wires the new, edit and info screens, and adds the logo.
The action list card and the new-integration header showed the raw type key WpActivityLog.
…ds exist Actions with only required fields offered an add button that opened an empty field picker.
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
- One validator checks the action, event, time unit, required fields and delete filters on the new and edit screens, so a flow that cannot run is not saved. - Ignore event field responses that arrive after the user picked another event. - Actions on stored rows say "log entry"; "event" means an event type. Meta key labels, toasts and notes use active voice.
Match the wording that Charitable and the other action controllers use.
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 WP Activity Log (WSAL) integration to Bit Integrations Free: the action backend, the action screens and the registration of the Pro trigger and actions. Free fires one
bit_integrations_wp_activity_log_*hook per action; Bit Integrations Pro does the work.Motivation & Context
WP Activity Log users want to react to audit-log events (logins, content changes, WooCommerce, plugin and setting changes) and to manage the log and its monitoring exclusions from a flow. The integration is ported from Bit Flows (bit-pi PR #886) to the Bit Integrations Free + Pro shape.
Related Links: (if applicable)
Type of Change
Key Changes
Backend
Actions/WpActivityLog/WpActivityLogController.php: plugin check, execute, and refresh routes for events, event data fields, users, objects and event types. The event list skips events that WSAL 5.x marks as deprecated.RecordApiHelper.php: oneswitchcase per action, each passing only the arguments the Pro handler reads, plusLogHandler::saveon every path.Routes.phpand theWpActivityLogentry inAllTriggersName.php(Pro).Frontend
AllIntegrations/WpActivityLog/(authorization, layout, field map, utilities, edit screen, static data).Testing
Checklist
Changelog
🤖 Generated with Claude Code