feat: always-visible edit affordance; delete moves to edit page #14
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/list-edit-and-edit-page-delete"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Two related UI changes to the episode row actions:
Done rows show Play + Edit directly (
61b1ec8): the "done" badge no longer swaps to "Edit" on hover. The badge is now an always-visible purpleEditanchor (class="badge done edit-link") pointing at the edit page, alongside the existing Play button. The hover text-swap CSS (edit-default/edit-hoverspans) is removed.Delete for done episodes lives on the edit page (
de3b352): the edit page gains a "Danger zone" section below the Save/Cancel row with its own confirm-gated form posting to/entries/<id>/delete. Done rows no longer render a list delete form. Failed rows keep their list delete — there is no edit page for failed jobs.Tests
TestPageDeleteFormOnFailedNotDoneRows(done rows must NOT render list delete, failed rows keep it),TestDeleteListFormOnlyOnFailedRows,publicIDForsplit into done/failed helpers.TestPageDoneRowHasEditLink,TestEditPageRendersDeleteForm, updatedTestIndexDoneBadgeIsEditLink(asserts "Edit" label at rest, no hover spans).mise run checkandmise run testgreen at both commits.