Permalink editor: replace Clear with a multi-level Undo #2

Merged
qe-ci-bot merged 1 commit from feat/permalink-undo into main 2026-07-18 20:21:11 -04:00
Member

Follow-up to #1. Replaces the permalink editor's Clear button with a safer Undo.

  • Undo steps back through the permalinks set during the session, restoring each previous value (and finally back to no custom link), then disables itself when there's nothing left to undo. Since permalinks get shared, being able to revert a change matters more than a one-shot wipe.
  • Clearing is still possible by saving an empty box (called out in the hint text).
  • Address bar (history.replaceState) and the Copy-link button stay canonical after every save/undo.

Backend is unchanged (client-side only: watch.html, watch.js, app.css).

Verified end-to-end in the browser against a live server: set alpha-link, set beta-link, undo -> alpha-link, undo -> no custom link; undo button enable/disable and the id link (200 throughout) all correct.

Follow-up to #1. Replaces the permalink editor's **Clear** button with a safer **Undo**. - **Undo** steps back through the permalinks set during the session, restoring each previous value (and finally back to *no custom link*), then disables itself when there's nothing left to undo. Since permalinks get shared, being able to revert a change matters more than a one-shot wipe. - **Clearing is still possible** by saving an empty box (called out in the hint text). - Address bar (`history.replaceState`) and the Copy-link button stay canonical after every save/undo. Backend is unchanged (client-side only: `watch.html`, `watch.js`, `app.css`). **Verified** end-to-end in the browser against a live server: set `alpha-link`, set `beta-link`, undo -> `alpha-link`, undo -> no custom link; undo button enable/disable and the id link (200 throughout) all correct.
Clear wiped the custom permalink; Undo is safer since links get shared.
Undo steps back through the permalinks set during the session — restoring
each previous value, including back to "no custom link" — and disables
itself when there's nothing left to undo. Clearing is still possible by
saving an empty box (noted in the hint).

Verified end-to-end in the browser: set A, set B, undo -> A, undo -> none,
with the address bar and Copy-link staying canonical throughout.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
qe-ci-bot deleted branch feat/permalink-undo 2026-07-18 20:21:11 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
QuaderEnterprises/lumo!2
No description provided.