feat(admin): consolidate Stripe nav and raise the dashboard switch (BUNYIP-417) #415
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/BUNYIP-417-nav-stripe-dashboard-switch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Closes BUNYIP-417. Two admin navigation fixes.
1. Stripe navigation redundancy
Verified first (the ticket flagged that only one literal Stripe nav entry exists): the real redundancy was that Stripe config was split across two nav entries - the "Stripe" page (keys, checkout, and Products/Prices from BUNYIP-416) and "Tier Settings", which also carried the tier -> Stripe price/product ID mappings.
Consolidated per the chosen direction (move mappings to the Stripe page):
POST /admin/stripe/catalog.Now all Stripe config lives under the single "Stripe" nav entry (matching the a8n-tools structure).
2. Dashboard switch raised
The user/admin dashboard switch ("Admin Panel" / "User Dashboard") moved from the bottom of the sidebar to the top (above the section items, divider below), since it's one of the most-used controls.
Tests
tier_settings_shows_slots_and_no_stripe_catalog- catalog gone from Tier Settings, slots/trials present, links to Stripe.catalog_section_renders_mapping_fields_prefilled- the moved section renders the six fields prefilled from tier config, posts to/admin/stripe/catalog, with a load-error state.just check-containergreen.Verification (screenshots shared in-thread)
🤖 Generated with Claude Code
https://claude.ai/code/session_01LerAorB26HGHLfjC9iDUbd
Two navigation fixes. 1. Stripe redundancy. Stripe configuration was split across two admin nav entries: the "Stripe" page (keys, checkout, and - since BUNYIP-416 - Products/Prices) and "Tier Settings", which also carried the tier -> Stripe price/product ID mappings. The catalog mapping now lives on the Stripe page as its own "Tier catalog mapping" section (Free/lifetime, Early adopter, Standard), so all Stripe config sits under the single "Stripe" nav entry (matching the a8n-tools structure). Tier Settings keeps only its non-Stripe concerns (slots + trial lengths) and links to the Stripe page. Nothing is lost: the mapping fields moved, not removed, and persist via the same partial tier-config update (blank = keep) through a new POST /admin/stripe/catalog handler. 2. Dashboard switch. The user/admin dashboard switch ("Admin Panel" / "User Dashboard") moved from the bottom of the sidebar to the TOP (above the section items, with a divider below), since it is one of the most frequently used controls. Verification: every destination previously reachable from Tier Settings is still reachable - the catalog mapping is on the Stripe page, Tier Settings still holds slots/trials. Confirmed via screenshots (admin + user nav, Stripe page with the catalog section, Tier Settings slots-only) at 1440px. Tests (bunyip-web): tier_settings_shows_slots_and_no_stripe_catalog (catalog gone, slots present, links to Stripe) and catalog_section_renders_mapping_fields_prefilled (the moved section renders the six fields, prefilled from tier config, posting to /admin/stripe/catalog, with a load-error state). Existing product/price tests still pass. just check-container green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LerAorB26HGHLfjC9iDUbd