Skip to content

A.9: Plan Detail

Summary

Admins create, view, edit, and delete subscription plans, including plan metadata, pricing, features, quotas, and active status.

Role

  • Primary: Admin

Entry Point

  • URL: /admin/billing/plans/new
  • URL: /admin/billing/plans/:planId
  • Edit mode: /admin/billing/plans/:planId?mode=edit

Preconditions

  • User is authenticated as admin.

Steps

  1. Admin opens a plan detail route.
  2. Page loads existing plan data or initializes a new form.
  3. Admin edits plan fields, features, and quotas.
  4. Admin saves the plan.
  5. Admin can delete an existing plan after confirmation.
  6. App navigates back to admin billing.

Diagram

Edge Cases

  • Feature/quota arrays: Admin can add/remove dynamic feature and quota rows.
  • Create vs edit: New route starts directly in edit mode.
  • Delete: Delete returns to /admin/billing.

Current Implementation Notes

  • Frontend: frontend/src/app/pages/admin/billing/plan-detail.tsx

Screenshot Status

  • Not captured.