diff --git a/frontend-modern/browser-verification/3ce5b8223927f309.json b/frontend-modern/browser-verification/3ce5b8223927f309.json new file mode 100644 index 0000000000..b1e555b5bd --- /dev/null +++ b/frontend-modern/browser-verification/3ce5b8223927f309.json @@ -0,0 +1,37 @@ +{ + "version": 1, + "base_sha": "85601faf3a51593467186d10d0cf347cce9591f5", + "verified_at": "2026-11-16T17:41:35Z", + "result": "passed", + "changed_paths": [ + "frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx" + ], + "content_sha256": { + "frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx": "c8ec42a12ce6543a33ddb7e82481a918e43f330e1ac906a390ae1330efc5b50f" + }, + "routes": [ + "/ (offline fixture consuming existing Settings > Billing Admin panel, state owner, stores and real HTTP client)" + ], + "viewports": [ + { + "width": 1440, + "height": 1000 + }, + { + "width": 390, + "height": 844 + } + ], + "states": [ + "Two organizations sharing one display name but different opaque IDs, with accepted Trial and Active billing states; collapsed row actions and expanded billing JSON.", + "Selected-row read failed and recovered; read-only gates. Desktop light and phone light/dark in Chromium; phone light in WebKit.", + "Suspended and soft-deleted inventory badge labels remain in final accessible details names; supplemental DOM interaction checks, not additional capture states." + ], + "interactions": [ + "52 baseline checks on base 85601faf and 64 repaired checks through real consuming panel with safe synthetic HTTP responses.", + "Keyboard Enter suspends then reactivates only the non-first namesake. Only the two explicit encoded-ID PUT requests occur; payload fields and sibling state retained.", + "Expand/collapse selected organization; aria-expanded tracks visibility, aria-controls identifies one exact named region; selected details reload and failed-row retry read only that ID.", + "Read-only disables all subscription writes; no stored-token fallback on billing and health endpoints. Runtime-capability bootstrap retains its ordinary stored-token behavior.", + "12 comparable before/after pairs retained in current outcome archives. Actual image content reviewed with native view_image; visible fields, identities, statuses, JSON and controls retained without layout change. No screen-reader, full App, installed paid journey or release claim." + ] +} diff --git a/frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx b/frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx index f9b47c7b89..33f35a50be 100644 --- a/frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx +++ b/frontend-modern/src/components/Settings/BillingAdminOrganizationsTable.tsx @@ -1,4 +1,4 @@ -import { Show, type Component } from 'solid-js'; +import { Show, createUniqueId, type Component } from 'solid-js'; import { Button } from '@/components/shared/Button'; import { PulseDataGrid } from '@/components/shared/PulseDataGrid'; import { useBreakpoint } from '@/hooks/useBreakpoint'; @@ -36,6 +36,17 @@ export const BillingAdminOrganizationsTable: Component { const { isMobile } = useBreakpoint(); + const tableID = createUniqueId(); + const detailsID = (orgID: string) => `${tableID}-billing-${encodeURIComponent(orgID)}`; + const organizationLabel = (org: HostedOrganizationSummary) => + org.display_name && org.display_name !== org.org_id + ? `${org.display_name} (${org.org_id})` + : org.org_id; + const detailsLabel = (org: HostedOrganizationSummary) => + [ + `Billing details for ${organizationLabel(org)}`, + ...getBillingAdminOrganizationBadges(org).map((badge) => badge.label), + ].join(', '); const unreadLabel = (orgID: string) => props.billingLoadingByOrgID[orgID] ? 'Loading' : 'Unavailable'; const actionsDisabled = (orgID: string) => @@ -44,7 +55,8 @@ export const BillingAdminOrganizationsTable: Component { + const subscriptionActions = (org: HostedOrganizationSummary) => { + const orgID = (org.org_id || '').trim(); const currentSubState = () => (props.billingByOrgID[orgID]?.subscription_state || '').toLowerCase(); return ( @@ -52,6 +64,7 @@ export const BillingAdminOrganizationsTable: Component props.onSuspendOrganization(orgID)} disabled={actionsDisabled(orgID) || currentSubState() === 'suspended'} > @@ -60,6 +73,7 @@ export const BillingAdminOrganizationsTable: Component props.onActivateOrganization(orgID)} disabled={actionsDisabled(orgID) || currentSubState() === 'active'} > @@ -84,6 +98,9 @@ export const BillingAdminOrganizationsTable: Component { props.onToggleOrganization(orgID); }} @@ -132,14 +149,14 @@ export const BillingAdminOrganizationsTable: Component props.onReloadOrganization(orgID)} disabled={props.billingLoadingByOrgID[orgID] || props.savingByOrgID[orgID]} > Reload billing - {subscriptionActions(orgID)} + {subscriptionActions(org)} ); }, @@ -176,7 +193,7 @@ export const BillingAdminOrganizationsTable: Component {subscriptionActions(org.org_id)}, + render: (org) => {subscriptionActions(org)}, }, ]} keyExtractor={(org) => org.org_id} @@ -184,13 +201,19 @@ export const BillingAdminOrganizationsTable: Component { const orgID = (org.org_id || '').trim(); return ( -
+
Billing state JSON