# v417 - Super Admin plan-family visibility cleanup controls

Baseline reviewed: v416 Super Admin bulk classification cleanup helper.

## Decision

v417 intentionally adds Super Admin plan-family visibility cleanup controls before changing registration/workspace-type plan-selection staging.

The reason is sequencing safety: v416 made workspace classification cleanup safer, but registration should not start showing plans by workspace type until Super Admin can directly review and clean up each plan's family, sales visibility, and visible workspace type list.

## Product changes

- Extended `/admin/subscriptions` with a plan-family visibility cleanup section.
- Added review counts for:
  - plans with visibility checks;
  - plans missing visible workspace type lists;
  - public staged plans;
  - plans aligned with the current family recommendation.
- Added plan review cards showing plan family, visibility, visible workspace types, and the first visibility warning.
- Added editable controls to the plan editor for:
  - plan family;
  - plan visibility;
  - visible workspace type list.
- Added a guarded `Use recommended visibility` helper that applies recommended visibility and workspace type list to the selected plan draft.
- Kept the helper review-only until the Super Admin saves the plan.
- Updated saved-plan persistence so clearing all visible workspace types intentionally saves an empty list instead of leaving the old list unchanged.

## Guardrails preserved

The v417 controls only update subscription plan metadata already represented in Prisma.

They do not change:

- public registration;
- workspace-type plan selection;
- Stripe checkout;
- subscription status;
- hard billing gates;
- broker distribution limits;
- owned interface or invited portal rules;
- internal load-board access.

## Prisma impact

No Prisma schema change.

## Validation

- `npm run dispatchspot:preflight` passed.
- Full local `npm run build` could not run in the sandbox because the source-only package does not include `node_modules`; the WHM server build remains the required full validation.