Issue 899
feat: A note on every saved content version, linked to its issue
Back to our planOpen
enhancementcmspriority: medium
Summary
Every content change made in Admin should carry a short note saying what changed and which issue it belongs to, stored with that change inside Payload, so the history is traceable in one place.
Details
Findings, in the order of the native-first ladder (#315):
- Native Payload: version history keeps the full document, who saved it and when (versions overview, opens in a new tab). It has no message or note field for a version, and the installed version (3.91) has none either.
- Official plugins: none found that add a note to a version.
- Community plugins: the ones found are audit logs (who changed what), not a note stating why.
- Our own code, kept small: a note is just a field on the document, and a saved version copies the whole document, so the field appears in every version automatically. Build it as a small, self-contained Payload plugin (a function that adds the field to the collections it is given), using only Payload's public config API so it survives updates and is easy to move or remove.
Design points to settle in the issue:
- Where the field sits in Admin (sidebar), and its label.
- Whether it clears after each save so an old note is never carried into the next change.
- Whether it is required when publishing.
- Which collections get it (those with versions on).
- Needs a database migration for the new column and the versions tables.
Acceptance criteria
- Not done: An editor can write a note when saving a page, post, FAQ entry or resource, and see it next to each saved version.
- Not done: The note can hold an issue number, so a change links back to its issue.
- Not done: The plugin has tests, lives in its own module, and is switched on per collection in config.
- Not done: A Payload update needs no change to it.
Generated by Claude Code, opens in a new tab