Skip to content

Upd. Widget. Impove UX.#672

Open
svfcode wants to merge 4 commits into
devfrom
upd-dashboard-widget
Open

Upd. Widget. Impove UX.#672
svfcode wants to merge 4 commits into
devfrom
upd-dashboard-widget

Conversation

@svfcode

@svfcode svfcode commented Jun 14, 2026

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the WP Dashboard “brief” widget UX by improving how recent security actions are displayed and by changing how the “refresh” logic and “view all” navigation work.

Changes:

  • Defer brief-data refresh to admin_init instead of executing immediately on plugin load when spbc_brief_refresh=1.
  • Introduce spbc_format_security_log_event() to centralize human-readable security-log event formatting and reuse it in both Security Logs table and the dashboard widget.
  • Update the dashboard widget to show formatted actions (including optional post edit links) and to link “View all” to the local Security Log tab.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
security-malware-firewall.php Changes brief refresh trigger to schedule spbc_set_brief_data() on admin_init.
inc/spbc-tools.php Adds init-deferral for spbc_set_brief_data() and introduces shared event formatting helper spbc_format_security_log_event().
inc/spbc-settings.php Replaces duplicated event formatting switch with a call to spbc_format_security_log_event().
inc/spbc-admin.php Uses spbc_format_security_log_event() in the dashboard widget and changes “View all” to point to the local Security Log tab.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inc/spbc-tools.php
Comment thread inc/spbc-admin.php Outdated
svfcode and others added 2 commits June 14, 2026 13:55
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread inc/spbc-tools.php
Comment thread inc/spbc-tools.php
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants