From 2b1bb62153609e2f2760405a73699ca710b55160 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 22:07:54 +0000 Subject: [PATCH 1/5] Keep verified organization Settings visible when the directory fails Keep the checked plan, membership and outgoing shares in the selected workspace when a peer blocks enumeration. Mark unchecked counts and incoming shares unavailable and preserve the complete-snapshot requirement for every sharing change. Reload restores the same selection using only reads. Change-source: pulse-maintainer --- .../v6/internal/subsystems/cloud-paid.md | 13 ++- .../subsystems/organization-settings.md | 25 +++++ .../7c06e629d6206de7.json | 51 ++++++++++ .../Settings/OrganizationBillingPanel.tsx | 8 ++ .../OrganizationIncomingSharesSection.tsx | 10 +- .../OrganizationOutgoingSharesSection.tsx | 2 +- .../OrganizationSharingCreateSection.tsx | 24 +++-- .../Settings/OrganizationSharingPanel.tsx | 18 +++- .../OrganizationBillingPanel.test.tsx | 25 ++++- .../OrganizationBillingTransport.test.tsx | 43 +++++++++ .../OrganizationSharingPanel.test.tsx | 33 +++++++ .../OrganizationSharingTransport.test.tsx | 95 +++++++++++++++---- .../useOrganizationBillingPanelState.ts | 14 +-- .../useOrganizationSharingPanelState.ts | 37 +++++--- .../src/utils/commercialBillingModel.ts | 4 +- frontend-modern/src/utils/orgUtils.ts | 18 ++++ 16 files changed, 362 insertions(+), 58 deletions(-) create mode 100644 frontend-modern/browser-verification/7c06e629d6206de7.json diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md index 9fc4842d90..1d844b511b 100644 --- a/docs/release-control/v6/internal/subsystems/cloud-paid.md +++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md @@ -182,22 +182,27 @@ billing, provider mutation or original administrator recovery is claimed. ### Organization billing reads are a selected snapshot, not fallback plan data -The existing Billing & Usage panel displays plan and member figures only after -all three reads for its current organization succeed. Selection, capability, +The existing Billing & Usage panel waits for the current organization's +session-bound reads. When the organization's plan and member list are verified +but directory enumeration returns the server's HTTP 500 `list_failed`, +the panel keeps the plan, current member count, and usage visible and labels +the Organizations total **Unavailable**. Reload billing rereads the same +selection without changing it. Selection, capability, presentation withdrawal and disposal invalidate the generation and abort its reads; an older response cannot overwrite the new selection or finish its spinner. License status prefers the browser session just as the organization reads do, carries the expected organization and cancellation signal, and disables automatic retries for this selected read without changing other status callers. -An incomplete or malformed read clears the former snapshot and renders a fixed, +Any other failed or malformed read clears the former snapshot and renders a fixed, inline unavailable notice with a deliberate reload of the same selection. It must not fabricate a Free plan, zero members, unconfigured email or unlimited usage from failed input. Accepted empty member lists still mean zero members. Organization-change events refresh the saved snapshot; no purchase, entitlement, pricing, plan or hosted-mode authority changes. Normal-suite Billing panel and OrganizationReadLifetimes tests cover failed/obsolete reads, A/B/A races, -withdrawal, disposal and recovery. Desktop/narrow proof consumes actual source +withdrawal and disposal; OrganizationBillingTransport covers the exact +directory failure, denial and explicit recovery. Desktop/narrow proof consumes actual source through the real API client with safe fixtures; it is not installed billing or commercial delivery acceptance. diff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.md index 63a4fa748e..7ffc67bf9e 100644 --- a/docs/release-control/v6/internal/subsystems/organization-settings.md +++ b/docs/release-control/v6/internal/subsystems/organization-settings.md @@ -439,6 +439,31 @@ late completion after actual principal, organization, policy, entitlement or component withdrawal. `OrganizationOverviewPanel.test.tsx` also pins normalized request scopes through the pending rename and resulting saved read. +### Sharing preserves verified selected data when a peer blocks enumeration + +The organization directory and the incoming-sharing scan can return the +server's explicit HTTP 500 `list_failed` even when the selected organization +is readable. If current-organization detail, membership and outgoing shares +are all verified for the same selection, Sharing keeps the selected identity +and outgoing rows. The recipient list and incoming rows are marked unavailable +only when their own enumeration failed. No synthetic organization, share, +target, or empty incoming inventory replaces an unread result. + +A verified owner or administrator continues to see the existing form and +any saved row controls, but all sharing writes still require the complete +snapshot, including remove, accept and decline. Reload sharing makes only +read-only requests for the same selection. An explicit draft recipient is +not replaced by another target and must still be present in the verified +directory before the form can submit. Other errors, stale readers, +malformed bodies, failed selected-scope reads, policy and authority withdrawal +keep their existing fail-closed behavior. Server authorization is unchanged. + +The registered OrganizationSharingPanel and OrganizationSharingTransport tests +cover individual and concurrent list failures, fresh scoped data versus a +failed selected read, native controls, no mutation or CSRF preparation, and +explicit recovery. Comparable desktop/narrow Settings browser proof uses +the native saved-workspace fixture's response bodies, not live client recovery. + ### Invitation decisions identify the exact organization Your Invitations shows each organization's display name **and** ID beside its diff --git a/frontend-modern/browser-verification/7c06e629d6206de7.json b/frontend-modern/browser-verification/7c06e629d6206de7.json new file mode 100644 index 0000000000..14d6b8afb2 --- /dev/null +++ b/frontend-modern/browser-verification/7c06e629d6206de7.json @@ -0,0 +1,51 @@ +{ + "version": 1, + "base_sha": "c13c7048ee8241fd4e7e8c7a2abb3629f501ca47", + "verified_at": "2026-11-18T22:07:49Z", + "result": "passed", + "changed_paths": [ + "frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx", + "frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx", + "frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx", + "frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx", + "frontend-modern/src/components/Settings/OrganizationSharingPanel.tsx", + "frontend-modern/src/components/Settings/useOrganizationBillingPanelState.ts", + "frontend-modern/src/components/Settings/useOrganizationSharingPanelState.ts", + "frontend-modern/src/utils/commercialBillingModel.ts", + "frontend-modern/src/utils/orgUtils.ts" + ], + "content_sha256": { + "frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx": "85afa817dd73c597dd08ab6dc924aab218ada584dc1e12556388b81df413cc79", + "frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx": "765d4b0c985dbb1dc54091c1863efc95ab6580bfd2e30f9214a99ca646f2ac16", + "frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx": "c877a00725959374f58db36328e4d5fa5490e6e423982ca2dd4157c362d04fd1", + "frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx": "c816ce65677d8cb9a5bcf37ec3bc78d3149022018afe537a8107cec4aa60a84e", + "frontend-modern/src/components/Settings/OrganizationSharingPanel.tsx": "533e58266616f7558afef8e2fefdd590479742b8e31510ad7a00b0c01b58f061", + "frontend-modern/src/components/Settings/useOrganizationBillingPanelState.ts": "ff242fa6778aac5f0c1023fcfe95e047d2a53d6387e732e302c58fee3975b2e1", + "frontend-modern/src/components/Settings/useOrganizationSharingPanelState.ts": "875c280fa6580a45dbc9c40816283c582fe371cc469864342843dab3cc74e97e", + "frontend-modern/src/utils/commercialBillingModel.ts": "c32f128143f962e589f727d8fc37483ab82c201feea0858f2e417d3b66b599fd", + "frontend-modern/src/utils/orgUtils.ts": "d68a0dc5aa096525d30e0247349c2f723c6d8021e00516be8c7c0f3c9bf47f2a" + }, + "routes": [ + "/settings/organization/billing", + "/settings/organization/sharing" + ], + "viewports": [ + { + "width": 1365, + "height": 900 + }, + { + "width": 390, + "height": 844 + } + ], + "states": [ + "Production Pulse Settings frontend with the same retained native fixture responses on both sides (synthetic plan and bootstrap). Playwright 1.56.1 Chromium 141 desktop and WebKit 26 narrow, light. Eight comparable viewport pairs and two additional narrow detail views inspected.", + "With the saved organization healthy and another workspace unreadable, Billing keeps the active plan, verified current members and usage; Organizations reads Unavailable. Sharing keeps the selected name, verified outgoing state and existing owner form with native disabled controls. Incoming is unavailable, not empty.", + "After read-only Reload and Retry, the same selection restores the complete counts and the real incoming result, and the unchosen recipient becomes available. The ordinary recovered screen preserves the previous controls and layout." + ], + "interactions": [ + "Retained 134 checks across eight browser cases. Same selected ID in cookie, session storage and socket, no prod origin or writes. An incomplete sharing snapshot rejects form requestSubmit; recovery never replays a mutation.", + "After complete recovery, selecting an explicit recipient and resource enables Create Share; no submission is made. Existing server authorization and complete-snapshot write rules remain in effect." + ] +} diff --git a/frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx b/frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx index df772eaa59..a945285385 100644 --- a/frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx +++ b/frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx @@ -26,6 +26,7 @@ export const OrganizationBillingPanel: Component loadError, reloadBillingData, selectedOrgID, + organizationCountUnavailable, } = useOrganizationBillingPanelState(props); const warningTitleID = createUniqueId(); let panel: HTMLDivElement | undefined; @@ -90,6 +91,13 @@ export const OrganizationBillingPanel: Component > + Reload billing + + ) : undefined + } loading={loading()} loadingFallback={} > diff --git a/frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx b/frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx index 80c811799f..ddd21702f0 100644 --- a/frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx +++ b/frontend-modern/src/components/Settings/OrganizationIncomingSharesSection.tsx @@ -112,7 +112,7 @@ export const OrganizationIncomingSharesSection: Component< onClick={() => { void props.state.acceptIncomingShare(share); }} - disabled={props.state.saving()} + disabled={props.state.saving() || props.state.sharingChangesPaused()} > Accept @@ -128,7 +128,7 @@ export const OrganizationIncomingSharesSection: Component< onClick={() => { void props.state.declineIncomingShare(share); }} - disabled={props.state.saving()} + disabled={props.state.saving() || props.state.sharingChangesPaused()} > {share.status === 'pending' ? 'Decline' : 'Remove'} @@ -138,7 +138,11 @@ export const OrganizationIncomingSharesSection: Component< }, ]} keyExtractor={(share) => share.id} - emptyState={getOrganizationIncomingSharesEmptyState()} + emptyState={ + props.state.unavailableLists()?.incoming + ? 'Incoming shares could not be loaded.' + : getOrganizationIncomingSharesEmptyState() + } desktopMinWidth="100%" /> diff --git a/frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx b/frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx index 667be88815..367e28f735 100644 --- a/frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx +++ b/frontend-modern/src/components/Settings/OrganizationOutgoingSharesSection.tsx @@ -119,7 +119,7 @@ export const OrganizationOutgoingSharesSection: Component< onClick={() => { void props.state.deleteShare(share); }} - disabled={props.state.saving()} + disabled={props.state.saving() || props.state.sharingChangesPaused()} > Remove diff --git a/frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx b/frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx index 99bb048fc7..0c22519574 100644 --- a/frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx +++ b/frontend-modern/src/components/Settings/OrganizationSharingCreateSection.tsx @@ -23,6 +23,8 @@ export const OrganizationSharingCreateSection: Component + props.state.unavailableLists()?.directory ? '' : props.state.targetOrgError(); // Keep names stable; expose changing validation as each control's description. // Describe only a current choice, not leftover draft fields after withdrawal. const selectedTarget = createMemo(() => @@ -52,7 +54,7 @@ export const OrganizationSharingCreateSection: Component

Create Share

@@ -62,12 +64,10 @@ export const OrganizationSharingCreateSection: Component props.state.updateTargetOrg(event.currentTarget.value)} help={ selectedTarget() && ( @@ -89,9 +89,13 @@ export const OrganizationSharingCreateSection: Component - + {(target) => (