Skip to content

ff-710 The "undo read" button moved from the sidebar to the top toolbar - #537

Merged
Tiendil merged 6 commits into
mainfrom
feature/ff-710-undo-button-on-the-news-toolbar
Sep 3, 2026
Merged

Tiendil merged 6 commits into
mainfrom
feature/ff-710-undo-button-on-the-news-toolbar

Conversation

@Tiendil

@Tiendil Tiendil commented Sep 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings September 3, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new icon-only undo buttons need accessible labels (e.g., aria-label) so the action remains identifiable to assistive tech.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR implements ff-710 by moving the “undo read” action from the sidebar area into a top toolbar on the News and Public Collection views, while consolidating toolbar UI and tooltip behavior.

Changes:

  • Replace the sidebar “undo mark read” button with a top UiToolbar containing an undo action (icon button) and the ProductTokens display.
  • Introduce a reusable UiToolbar component and shift ProductTokens to self-load product state (removing NewsToolbar).
  • Standardize tooltips by adding a tooltip prop to UiButton backed by AppTooltip, plus add an undo icon mapping and update docs/changelog.
File summaries
File Description
specs/frontend_architecture/components.md Document exception allowing local component imports when rendered via dynamic <component :is>.
site/src/views/PublicCollectionView.vue Move undo action into the new top toolbar and add ProductTokens to the right side.
site/src/views/NewsView.vue Move undo action into the new top toolbar and add ProductTokens to the right side.
site/src/values/Icon.vue Add undo icon mapping backed by IconArrowBackUp.
site/src/main.ts Register UiToolbar globally and remove NewsToolbar registration.
site/src/components/ui/Toolbar.vue New toolbar layout component with left/right slots.
site/src/components/ui/Button.vue Add tooltip prop and wrap button with AppTooltip, forwarding attrs to the native <button>.
site/src/components/ProductTokens.vue Make ProductTokens self-sufficient by fetching product state internally and gating on login.
site/src/components/NewsToolbar.vue Remove legacy toolbar component (replaced by UiToolbar + ProductTokens).
site/src/components/AppTooltip.vue Adjust focus handling to show tooltips only when the trigger is :focus-visible.
changes/unreleased.md Add release note entry for ff-710.
Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment on lines +52 to +57
<ui-button
variant="tonal"
size="compact"
tooltip='Undo last "mark read" operation'
:disabled="!entriesStore.canUndoMarkRead"
@click="entriesStore.undoMarkRead()">
Comment on lines +58 to +63
<ui-button
variant="tonal"
size="compact"
tooltip='Undo last "mark read" operation'
:disabled="!entriesStore.canUndoMarkRead"
@click="entriesStore.undoMarkRead()">
@Tiendil
Tiendil merged commit 1f3e3e3 into main Sep 3, 2026
3 checks passed
@Tiendil
Tiendil deleted the feature/ff-710-undo-button-on-the-news-toolbar branch September 3, 2026 17:07
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