Support

Direct help for common BaseBuddy setup, access, mapping, editing, and deployment tasks.

Support/How to publish, unpublish, and archive content

How to publish, unpublish, and archive content

Test BaseBuddy workflow actions against the status fields in your saved mapping.

Use this after your posts mapping is saved and one safe Save or Update has already worked.

You will test the workflow buttons on one safe post and confirm BaseBuddy writes only the mapped workflow fields for that action.

Before you start

Workflow actions appear only when the saved mapping supports them. BaseBuddy needs to know which existing field stores the post state and which stored values mean draft, published, or archived.

Common examples:

Existing storageExample values
Text or enum status columndraft, published, archived
Boolean published flagfalse for draft, true for published
Nullable publish datenull for draft, timestamp for published
Separate archived stateStatus value, archive flag, or archive timestamp

The saved mapping is the runtime truth. If the status field is missing, read-only, unsupported, or mapped to the wrong values, BaseBuddy should not guess. It should hide the action, disable it, or leave the field read-only.

BaseBuddy posts list showing mapped content items
BaseBuddy posts list showing mapped content items

Pick one safe post

Choose one draft or internal post where a status change will not affect a public page, campaign, feed, redirect, or automated job.

Open the post in BaseBuddy and check the top-right actions:

Current stateUsual actions
DraftSave, Archive, Publish
PublishedUpdate, Archive, Unpublish
ArchivedSave, Move to Draft

The exact buttons depend on mapping, permissions, and the current post state.

Mapped post editor with Save, Archive, and Publish actions visible
Mapped post editor with Save, Archive, and Publish actions visible

Save content edits first

If the post has unsaved content edits, finish those before testing workflow actions.

Save and Update write dirty mapped fields only. They should not publish, unpublish, archive, reshape JSON, rewrite relations, or convert storage formats as a hidden side effect.

Use Save for ordinary dirty fields on a draft. Use Update for ordinary dirty fields on a published post. Workflow actions are separate buttons.

Editor with one dirty field and Save enabled
Editor with one dirty field and Save enabled

Publish a draft

  1. Open a safe draft post.
  2. Confirm there are no unsaved content edits.
  3. Click Publish.
  4. While the action runs, the button shows Publishing....
  5. Inspect the row in Supabase or your database client.
  6. Confirm the mapped status, publish flag, or publish date now matches the published state in your mapping.
  7. Return to the posts list and confirm the status shown in BaseBuddy matches the database.

BaseBuddy writes your mapped workflow storage. It does not copy the post into a BaseBuddy-owned content table.

Supabase table editor showing mapped posts rows for direct verification
Supabase table editor showing mapped posts rows for direct verification

Unpublish a published post

  1. Open the same post after it is published.
  2. Confirm ordinary edits are already saved with Update, if needed.
  3. Click Unpublish.
  4. Inspect the same database row.
  5. Confirm the mapped status, flag, or publish date returns to the draft state configured in your mapping.
  6. Return to the posts list and confirm BaseBuddy shows the draft state.

If your app stores custom values, verify those exact values. For example, your mapping may use ready, live, and hidden instead of draft, published, and archived.

Archive a post

  1. Open a draft or published post that can safely be archived.
  2. Confirm any ordinary edits are already saved with Save or Update.
  3. Click Archive.
  4. Inspect the same database row.
  5. Confirm the mapped archive status, flag, or timestamp matches the archived state in your mapping.
  6. Return to the posts list and confirm BaseBuddy shows the archived state.

To restore an archived post to draft, open it and click Move to Draft. Then verify the row returns to the mapped draft state.

What should change

The exact database change depends on your mapping:

ActionExpected result
PublishDraft value becomes the mapped published value; a mapped publish date or flag may also change.
UnpublishPublished value becomes the mapped draft value; a mapped publish date may clear if your mapping says so.
ArchiveDraft or published value becomes the mapped archived value; a mapped archive flag or date may also change.
Move to DraftArchived value becomes the mapped draft value.

Unrelated content fields should not change. If database triggers update updated_at, audit tables, or cache fields, account for those separately from what BaseBuddy sends.

If buttons do not appear

Check the mapping first:

SymptomWhat to check
No Publish buttonStatus is not mapped, workflow values are incomplete, or the item is already published or archived
No Unpublish buttonThe item is not in the mapped published state, or unpublish is not supported by the current mapping
No Archive buttonArchived value or archive storage is not configured, or the current item state cannot be archived
No Move to Draft buttonThe item is not archived, or restoring archived items is not supported by the current mapping
Button is disabledRequired fields are missing, the post is not editable, Save, Update, or Publishing... is already running, or the current user lacks permission
Action failsThe mapped status field is read-only, unsupported, trigger-owned, or no longer matches the database shape

Workflow actions require publish access. If author-scoped access is enabled, the user also needs publish access for the post's assigned author scope.

If the result is wrong

Stop before testing more posts.

  1. Restore the row from your normal backup, audit log, or the values you recorded before testing.
  2. Review the saved posts mapping.
  3. Confirm the status values match the values stored in your database.
  4. Confirm publish and archive fields are writable storage, not generated, view-derived, trigger-owned, or unsupported.
  5. Check the current user's publish permission and author scope.
  6. Refresh the editor and test again with one safe post.

If the mapping is unclear, leave the workflow field read-only and map it manually. Manual mapping is safer than letting auto-detection guess the wrong public state.