Skip to content

fix: improve CMS item status tracking and UX#90

Merged
liamwalder merged 3 commits intodevelopfrom
fix/various-cms-fixes
Mar 24, 2026
Merged

fix: improve CMS item status tracking and UX#90
liamwalder merged 3 commits intodevelopfrom
fix/various-cms-fixes

Conversation

@tristan-mouchet
Copy link
Copy Markdown
Collaborator

@tristan-mouchet tristan-mouchet commented Mar 24, 2026

Summary

Fix CMS item status tracking so published items correctly reflect edited state, and improve context menu and item editing UX.

Changes

  • Fix optimistic status update to preserve computed fields and set "Published · Edited" immediately on save
  • Fix bulk and single-item publish flows to persist content_hash on published items
  • Backfill null content_hash on published items for accurate is_modified detection
  • Ensure published fields exist before publishing item values (prevents FK violations)
  • Add "Edit CMS item" option to the item context menu
  • Adjust context menu disabled states: disable "Stage for publish" when already staged/published, enable "Set as published" when item is modified
  • Allow clicking CMS items to open the edit sheet even in manual order mode
  • Remove duplicate richTextImage Tiptap extension to fix console warning
  • Disable autocomplete on field name, default vaue, and collection item sheet inputs
  • Include 'status' in valid field types and pass is_computed flag so the Status field is auto-created with new collections

Test plan

  • Publish a collection and its items, edit an item, verify status shows "Published · Edited"
  • Right-click a "Published · Edited" item — "Set as published" should be enabled
  • Right-click a "Published" (unmodified) item — "Set as published" should be disabled
  • Click "Edit CMS item" in context menu — sheet should open
  • Click an item row in manual order mode — sheet should open
  • Open a rich text field in the item sheet — no duplicate extension warning in console
  • Create a new custom collection — verify Status field is auto-created
  • Publish a single item via "Set as published" after adding a new field — should not throw FK constraint errors

- Fix "Published · Edited" status not showing after editing published items
- Backfill null content_hash on published items during status enrichment
- Set content_hash on published items in bulk and single publish flows
- Publish collection fields before item values to prevent FK violations
- Optimistically update status pill when saving published items
- Add Edit option and isModified-aware disabled states to context menu
- Allow clicking CMS items in manual order mode to open the sheet
- Disable browser autocomplete on field and item form inputs
- Remove duplicate richTextImage tiptap extension
@liamwalder liamwalder merged commit 75df4b6 into develop Mar 24, 2026
2 checks passed
@liamwalder liamwalder deleted the fix/various-cms-fixes branch March 24, 2026 14:09
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