Skip to content

fix(history): remove duplicate current label#959

Closed
perber wants to merge 1 commit intomainfrom
fix/history-current-version-label
Closed

fix(history): remove duplicate current label#959
perber wants to merge 1 commit intomainfrom
fix/history-current-version-label

Conversation

@perber
Copy link
Copy Markdown
Owner

@perber perber commented May 3, 2026

Keep the latest revision as a normal history entry and avoid repeating its current-state label in the restore action. This reduces the impression that the active version and last revision are separate items.

Keep the latest revision as a normal history entry and avoid repeating its current-state label in the restore action. This reduces the impression that the active version and last revision are separate items.
Copilot AI review requested due to automatic review settings May 3, 2026 21:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the page history UI so the “Restore” action no longer repeats a “current” label for the latest revision, aligning the right-panel action with the sidebar’s “Active version” badge and reducing the impression that the active version and latest revision are separate items.

Changes:

  • Simplifies the restore button label logic to always display “Restore” (or “Restoring...” while loading).
  • Removes the “Current version” label from the restore action for the latest revision.

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

@@ -1160,11 +1160,7 @@ export function PageHistoryContent({
onClick={() => void handleRestore()}
data-testid={`${testidPrefix}-restore`}
@perber perber closed this May 3, 2026
@perber perber deleted the fix/history-current-version-label branch May 3, 2026 21:27
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