Skip to content

D2: toggle selected syncs personal showcase status + revalidate (#178) #180

Description

@xenodeve

Parent

Part of #178

What to build

When an authorized actor toggles member_projects.selected, apply the D1 plan: update selected, then unpublish or republish the matched personal projects row (status only — no hard-delete, no auto-create). Revalidate public projects after a status change. Prefer a server action (or equivalent server write) over browser-only Supabase update so authz + sync stay atomic from the caller's perspective. Update selector UI copy to note that toggling also affects ผลงาน. First select with no projects row remains profile-only (admin from-members still imports).

Acceptance criteria

  • Deselect unpublishes matched personal showcase row
  • Reselect republishes previously unpublished matched row
  • Team/org showcase rows unchanged
  • Revalidation runs after status change
  • UI copy mentions ผลงาน impact
  • Tests at the toggle/sync write seam

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions