Skip to content

Publish / Unpublish toggle #8

Description

@monapdx

Goal:

Let authors control whether a campaign is live.

What to do:

  • 1. Add a button in CampaignOverviewPage
  • 2. Toggle status between:
  • 3. draft
  • 4. published

Example logic:

await supabase
  .from('campaigns')
  .update({ status: 'published' })
  .eq('id', campaignId);

Notes:

Required before enforcing .eq('status', 'published') publicly

Important for real-world use

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions