Skip to content

Rename dashboard toolbar Reset button to Redraw (260602-p2t)#187

Merged
HanSur94 merged 2 commits into
mainfrom
claude/strange-kepler-ec0915
Jun 2, 2026
Merged

Rename dashboard toolbar Reset button to Redraw (260602-p2t)#187
HanSur94 merged 2 commits into
mainfrom
claude/strange-kepler-ec0915

Conversation

@HanSur94
Copy link
Copy Markdown
Owner

@HanSur94 HanSur94 commented Jun 2, 2026

What

Renames the dashboard top-bar (toolbar) button from "Reset" → "Redraw" so the label matches what it actually does.

Why

The toolbar button labelled "Reset" doesn't reset anything — its callback onReset() calls DashboardEngine.rerenderWidgets(), which tears down and re-renders every widget on the active page (a manual recovery action). The tooltip already said "Force re-render of all widgets on the active page…", so "Redraw" matches both the behaviour and the existing tooltip.

Scope — two different "Reset" buttons

There are two buttons named "Reset"; only the top-bar one is renamed:

  • Top-bar / toolbar "Reset" (DashboardToolbar.m) → re-renders widgets → renamed to "Redraw"
  • Time-panel "Reset" (DashboardEngine.hTimeResetBtnresetTimeRange) → restores the time window to the full data range. That's a genuine reset and isn't in the top bar — left unchanged

Changes

  • libs/Dashboard/DashboardToolbar.m — button label 'Reset''Redraw' + updated adjacent comment. Tooltip unchanged (already accurate). Internal handle/handler hResetBtn/onReset kept as-is (not user-facing).
  • tests/test_dashboard_toolbar_buttons.m — synced the label assertion and button-names list to expect 'Redraw'.

Verification

  • test_dashboard_toolbar_buttons7/7 pass (label, tooltip-mentions-"widget", and the onReset re-render behaviour test).
  • MATLAB Code Analyzer → no new findings on either file.

🤖 Generated with Claude Code

HanSur94 and others added 2 commits June 2, 2026 18:07
The top-bar button labelled 'Reset' actually forces a full re-render of every
widget on the active page (onReset -> DashboardEngine.rerenderWidgets), not a
reset. Rename the user-facing label to 'Redraw' so its purpose is clear; the
tooltip already described the re-render behaviour. Internal handle/handler
(hResetBtn/onReset) keep their historical names. The time-panel 'Reset' button
(resetTimeRange) is a genuine reset and is left unchanged.

Updates test_dashboard_toolbar_buttons label assertion + button-names list.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Quick-task artifacts (PLAN/SUMMARY) + STATE.md tracking row for the
toolbar 'Reset' -> 'Redraw' label rename.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HanSur94 HanSur94 merged commit c2ef047 into main Jun 2, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant