From 99ef1fee52adc154d8c795c93d4dade6c8a365e4 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 17:42:23 +0000 Subject: [PATCH 1/2] Identify exact organizations in Billing Admin controls Name subscription and reload actions with the displayed name and saved ID. Connect each details toggle to its named expanded region while retaining inventory status badges, read gates and billing transport. Contract-Neutral: Accessibility labels and disclosure relationships only; existing billing values, requests, permissions, actions and visible information are unchanged. Change-source: pulse-maintainer --- .../3ce5b8223927f309.json | 37 +++++++++ .../BillingAdminOrganizationsTable.tsx | 35 +++++++-- .../BillingAdminControls.transport.test.tsx | 75 +++++++++++++++++- .../__tests__/BillingAdminPanel.test.tsx | 78 +++++++++++++++++-- .../BillingAdminReadLifetimes.test.tsx | 26 +++++-- 5 files changed, 230 insertions(+), 21 deletions(-) create mode 100644 frontend-modern/browser-verification/3ce5b8223927f309.json 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