Skip to content

fix(status-menu): always allow unpublish if document has been published#2640

Open
gularsson wants to merge 1 commit into
mainfrom
feature/elelog-654-always-allow-unpublish-if-the-document-has-been-published
Open

fix(status-menu): always allow unpublish if document has been published#2640
gularsson wants to merge 1 commit into
mainfrom
feature/elelog-654-always-allow-unpublish-if-the-document-has-been-published

Conversation

@gularsson
Copy link
Copy Markdown
Contributor

Surface the unpublish action whenever heads.usable exists on the document, not only from the workflow states that statically declare it (done, approved, usable, withheld). Recovers the common incident where a wrong type is published and then a new version is started, which flips the state out of usable and previously made the menu hide the unpublish option entirely.

The injection reuses the existing per-type unpublished transition copy and the existing unPublishDocument flow (saveMeta { name: 'usable', version: -1n }), so no backend or repository changes are needed.

Refs ELELOG-654

Surface the unpublish action whenever heads.usable exists on the document,
not only from the workflow states that statically declare it (done, approved,
usable, withheld). Recovers the common incident where a wrong type is
published and then a new version is started, which flips the state out of
usable and previously made the menu hide the unpublish option entirely.

The injection reuses the existing per-type unpublished transition copy and
the existing unPublishDocument flow (saveMeta { name: 'usable', version: -1n }),
so no backend or repository changes are needed.

Refs ELELOG-654
@gularsson gularsson self-assigned this May 22, 2026
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.

3 participants