Skip to content

fix(platform): distinguish organization settings read failures - #4344

Merged
yannickmonney merged 1 commit into
mainfrom
fix/organization-settings-read-error
Oct 5, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/organization-settings-read-error

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Changes

  • Distinguish a settled failed organization read from a successful empty response in OrganizationSettings, without changing the shared organization query hook.
  • Show the shared accessible read-error alert and Try again action, wired to refetch and inert while fetching, instead of the blank disabled editor.
  • Show a distinct not-found message for a successful null response. Preserve loading/access precedence and the healthy organization editor and owner danger zone.
  • Add organization-specific copy in EN/DE/FR; reuse the shared translated retry action.

Verification

  • Real-component jsdom regression: three new cases fail before the component fix; 13 controls pass. After the fix: all 16 tests pass with one worker, including accessibility, retry/recovery, loading, access denial and the healthy owner control.
  • Scoped type-aware oxlint and oxfmt check pass for the component/test and direct route importer.
  • Scoped TypeScript diagnostics pass for the component, regression test and direct route importer; no whole-platform type check run locally.
  • Locale parity/missing-key checks: 7 pass (17 unrelated checks filtered out).
  • Isolated real Chromium probe: EN/DE/FR failure, Retry recovery to Acme, and successful-null not-found states pass. No production calls or writes.
  • Final visual-aspect-analyzer: 100/100, no defects. The initial fixture-only top-margin collapse was corrected in the external probe, not product code.
  • Commitlint and git diff --check pass.

Closes #3889

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — independent exact-head review of PR #4344 / TALE-314 / #3889

Reviewed head: 86ff1f5ff97fc3a8d2fca1c7aa2fd2a2e10a3303, unchanged from dispatch and re-read immediately before publication.
Reviewer: Codex #6, agent 8c78cac9-4b65-4630-b901-0a52f2317ff3, run ff41ee56-2ec0-4f8b-9787-07c27469a5a3 (manager dispatch run 6c6e9157).
Implementer: Codex #4, agent dce9fe1e-9749-4181-8df8-464a4176ed56, run a91ad545-aac6-4a2a-bc02-a7b8a7916226. This is a distinct reviewer and run, not self-acceptance.

Assessment

No blocking correctness or security finding against #3889. A settled failed read without organization data renders the shared accessible destructive alert and translated Try again action, rather than an unexplained disabled editor. A successful null renders its own not-found message without Retry. Ability/loading precedence is preserved; known organization data still renders the editor and owner controls. The shared query hook, organization-scoped request/cache identity and write/delete authorization paths are unchanged. No error payload is exposed. EN/DE/FR additions convey the same distinction and read naturally; the retry label reuses shared translated copy. Public admin documentation does not contradict the repaired behavior.

Observed verification

  • PR component file, real-component jsdom tests, one worker: 16/16 pass, including the error-state axe audit, retry/recovery, null, loading, denied access and healthy owner controls.
  • Independent before-source substitution, same tests and head dependencies: 3 new regressions fail / 13 controls pass; no product file changed.
  • Scoped oxlint and type-aware oxlint on component, test and direct route importer: exit 0.
  • Scoped oxfmt check: pass on those three TSX files. YAML catalogs are explicitly excluded by the repository formatter; their additions were source-reviewed and parsed by locale checks, not falsely claimed as formatted.
  • TypeScript compiler API diagnostics on component, test and direct route importer, using existing ambient declarations, setup matchers and generated route registration: 0 diagnostics. Transitive imports loaded; no whole-workspace check.
  • Locale parity/missing-key checks: 7 pass / 17 unrelated checks filtered out.
  • Additional real QueryObserver synthetic retry probe: pass, failure → loading retry → successful payload; no network/backend.
  • git diff --check: pass. Merge-tree against fetched main b3ecfcd98: clean; main still has the old disabled-shell behavior, so this is not already repaired there.
  • Passive CI snapshot: 51 SUCCESS, 26 SKIPPED, 1 NEUTRAL; no failing or pending checks. No CI rerun or watch-triggered repair.

Existing dependencies only, no install. Initial harness collection under Bun failed on Zod; installed Node resolved it. External Vite configuration allowed reused dependency assets and mapped UI/shared imports to exact-head workspace sources. Initial scoped types lacked setup matchers/route registration; including the existing files resolved harness-only diagnostics.

Non-blocking follow-ups / limits

  1. The new test mocks query state. Real React Query returns to isLoading: true on a no-data refetch, so this component temporarily shows its existing loading skeleton; the mock's retained busy Retry assertion is not proof of real-query focus retention or inline-spinner persistence. The synthetic real-query probe confirms this lifecycle. Consider a real-hook component test for repeated failure/recovery and focus. This does not invalidate the requested settled error/empty distinction or functional refetch.
  2. The automation coverage register does not name this new organization read-error/null/retry coverage. Add a discoverability row when maintaining the settings coverage documentation; no public-doc behavior contradiction found.

Locale overlap

No conflict expected with the current reviewed sibling heads: pairwise merge-tree probes with #4342 987b70f92b7ad7738f9e03fcfc0a5402b23e4e0f, #4343 eb86cf5c688c252cb4d3050f990d48165559fba7, #4345 bb63331095a4418f4fd99f720d6155c6d9f50e2a, and #4346 f4c7d64d01faa92d8a6b466a4cde7aafd3d71273 all exit 0. They add keys under personalization errors, the governance user picker, automation metrics, and pending retention respectively; #4344 adds only settings.organization keys. Shared filenames alone are not a conflict. Later branch changes still require a fresh integration check.

Unrun: browser/visual analyzer, E2E, backend/database stack, real transport/retry integration, screen-reader speech, full platform suite and whole-workspace type/check commands. Prior implementer browser evidence was read as a handoff claim, not rerun or presented as independent observation.

Authority: comment verdict only. No push, merge, CI rerun, task status change or native review decision. TALE-314's captured human review is untouched; integration/merge and any follow-up routing stay with their authorized owners. Evidence: /agent/output/f833ede1-b5d4-4c0b-adcd-323ce6288613/ (verdict, reviewed patch, scripts/configs, logs, overlap probes and passive snapshots).

@yannickmonney
yannickmonney merged commit c74bec8 into main Oct 5, 2026
@yannickmonney
yannickmonney deleted the fix/organization-settings-read-error branch October 5, 2026 12:11
@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-827 merge receipt 3/4 — #4344

Accepted head 86ff1f5ff97fc3a8d2fca1c7aa2fd2a2e10a3303; normal squash merge SHA / eligible main source c74bec82b49dfa3b1314bdb54983988d3327a7f3.
OPEN/not draft; initial UNKNOWN resolved to CLEAN/MERGEABLE on re-read. CI: 51 SUCCESS, 26 conditional SKIPPED, 1 advisory NEUTRAL, none failing/pending.
Independent ACCEPT C6 ff41ee56; implementation C4 differs from merger C12 cb4bdc7f-5fd3-4a6c-8eee-734081fc0908.
GitHub squash message byte-compared: exact mandated title and one commit-subject bullet, no trailer/attribution.
TALE-314 fix. No admin bypass, push, update-branch, rerun, status change or native-review decision; human-captured review untouched. Merged-source eligibility is not candidate/release/deployment proof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(platform): Organization settings turn a failed organization read into a blank disabled editor

1 participant