feat(admin): adopt capability nomenclature — retire Pro/International, Merchant → Business (ENG-516)#55
Merged
Conversation
…, Merchant → Business (ENG-516) Account Hub and Account Management adopt the light-headline-status naming: accounts lead with Trial / Verified / Business, with capability badges (Bank payout, USD account) as supporting detail. Upgrade-request levels read as the capability being requested. The GraphQL account fragment now fetches statusHeadline + capabilities from the flash backend (requires lnflash/flash#452), with a level-based fallback for older backends. The change-level dialog uses disambiguated internal labels since L1 and L2 share the Verified headline. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…es (ENG-516) Review follow-ups on #55: - prettier: format account_hub.js (was failing the pre-commit CI hook — the new capabilityBadgesHtml chain wasn't prettier-clean). - Change-level dialog now uses the disambiguated ADMIN_LEVEL_OPTIONS labels in its ERP-party and success messages (was ACCOUNT_LEVEL_LABELS, which renders "Verified" for both L1 and L2 — misleading, since L1 needs no ERP party). Verified: prettier --check clean; node --check OK. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Admin-panel half of ENG-516. Companion to lnflash/flash#452 (backend capability state machine).
Adopts the light headline status naming (product decision 2026-07-14): accounts lead with one word — Trial → Verified → Business — with capability badges as supporting detail. Pro and International are retired; Merchant is renamed Business.
Changes
account_hub.js)statusHeadlinefrom the backend (Trial/Verified/Business), falling back to the stored level for older backends.requested_levelas the capability being requested (L2 → "Bank payout", L3 → "Business").data-tab/classes unchanged).account_management.js): level map and Requested Level filter adopt the new names with level numbers for admin clarity.graphql_client.py):AccountDetailfragment now fetchesstatusHeadline+capabilities { verified bankPayout business usdAccount }.Deploy ordering
Testing
node --checkon both pages;py_compileon the client.pytest admin_panel/tests/test_account_hub_search_js.py: 3 pass, 3 fail — the same 3 fail on cleanorigin/main(pre-existing, unrelated to this change).🤖 Generated with Claude Code