Skip to content

Panel reload glyph: use fa-sync-alt and spin while reloading - #422

Merged
bmfmancini merged 2 commits into
developfrom
fix/reload-glyph-fa-sync
Oct 10, 2026
Merged

bmfmancini merged 2 commits into
developfrom
fix/reload-glyph-fa-sync

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Description

Replaces the panel Reload Panel header glyph: it was fa-retweet, now it is the proper refresh icon fa-sync-alt, and it spins (fa-spin) while the panel reloads (the spin clears automatically because reload_panel() replaces the panel header).

Related Issue

N/A — small glyph/UX fix.

Motivation and Context

fa-retweet reads as a share/retweet action rather than a refresh. The refresh icon communicates the "reload this panel" action clearly, and spinning it gives feedback during the reload.

How Has This Been Tested?

Loaded a dashboard with a force-reloadable panel: the header shows the refresh glyph, and clicking it spins the glyph until the panel content is replaced. php -l clean on includes/functions.php. No translatable strings changed (tokenizer-based i18n check unaffected).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation repository accordingly.

Replace the "Reload Panel" header glyph's fa-retweet icon with the proper
refresh icon (fa-sync-alt) and spin it (fa-spin) while the panel reloads.
The reload render path is an AJAX endpoint that exits, so the single
changed line is marked @codeCoverageIgnore (unreachable from the unit
suite), consistent with the allowlisted entry points.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 9, 2026 21:32

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.

🟡 Changes recommended

Failed requests leave the icon spinning indefinitely, and the PHP change bypasses required coverage.

2 open findings
What changed in this PR

Updates panel reload feedback with a clearer refresh icon and loading animation.

Changes:

  • Replaces fa-retweet with fa-sync-alt.
  • Spins the icon during reload.
  • Documents the UX change.
File Description
includes/​intropage.js Adds reload animation.
includes/​functions.php Renders the refresh glyph.
CHANGELOG.md Records the UX fix.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread includes/intropage.js
Comment thread includes/functions.php Outdated
…d button

Address PR review: (1) reload_panel()'s .fail path left fa-spin on the un-replaced header so the glyph span forever - clear it on failure. (2) Extract the force-reload button markup into intropage_panel_reload_button() and add a focused Pest test asserting it renders fa-sync-alt, instead of suppressing coverage of the behavior; only the thin exit-bound print glue stays coverage-ignored.
@bmfmancini
bmfmancini merged commit c0f378c into develop Oct 10, 2026
5 checks passed
@TheWitness
TheWitness deleted the fix/reload-glyph-fa-sync branch October 10, 2026 11:34
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.

3 participants