Skip to content

Add founder-only business reset flow#64

Merged
DevCalebR merged 1 commit into
mainfrom
codex/founder-bulk-business-reset
May 16, 2026
Merged

Add founder-only business reset flow#64
DevCalebR merged 1 commit into
mainfrom
codex/founder-bulk-business-reset

Conversation

@DevCalebR
Copy link
Copy Markdown
Owner

Summary

  • add a founder-only admin reset action that can hard-delete every current business after typing DELETE ALL BUSINESSES
  • preserve normal archive-first lifecycle behavior for real customer businesses and keep permanent delete gated to founder or archived demo/test flows
  • add regression coverage for cascade cleanup, founder-only gating, redirect handling, and the post-reset empty state

Root cause

  • the existing bulk cleanup flow only targeted businesses marked as test/demo or the dedicated simulator owner
  • the current local businesses are not marked as test/demo, so the reset card never considered them eligible for deletion
  • the business detail page also exposed a test-business delete button before the archive precondition was satisfied, which made that path look broken

Validation

  • npm run typecheck
  • npm run lint
  • npm run test
  • npm run build

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
callbackcloser Ready Ready Preview, Comment May 16, 2026 10:14pm

Request Review

@DevCalebR DevCalebR merged commit f1f6c46 into main May 16, 2026
3 checks passed
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.

1 participant