Skip to content

fix(platform): distinguish unavailable personalization preferences - #4342

Merged
yannickmonney merged 7 commits into
mainfrom
fix/personalization-preferences-read-error
Oct 5, 2026
Merged

yannickmonney merged 7 commits into
mainfrom
fix/personalization-preferences-read-error

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Distinguish an unanswered preferences read from a successful null response. Failed reads show a localized alert with Try again, using readStateOf and CatalogLoadError.
  • Keep the switch, editor and grouped save registration absent until the preference is known, preventing accidental toggles or overwrites. Successful null responses still follow the organization default.
  • Keep the alert and retry focus stable during retry, prevent duplicate retries, and hand focus to the settings section after recovery. Preserve existing cached-data behavior.
  • Add EN/DE/FR messages and document automated coverage.

Verification

  • Red/green jsdom reproduction: six new regressions fail before the fix; thirteen existing controls pass.
  • One-worker focused personalization + governance tests: 30 passed.
  • Shared read-state and platform i18n checks: 29 passed (with the repository's 30-second per-test timeout).
  • Scoped type-aware oxlint, oxfmt check, TypeScript component/test import-closure check, commitlint and git diff --check: passed. The unchanged route is linted; its generated router registration is left to CI rather than loading all routes into the local type-check.
  • Isolated real Chromium review in EN/DE/FR at 390px: error, retry, recovery, saved-text restoration, focus handoff and no horizontal overflow passed. No production network or writes.
  • Final visual-aspect-analyzer: 100/100, no defects across five elements.
  • CI watch completed successfully: 51 successful checks, 26 skipped checks, one neutral Trivy scan-baseline advisory, no failures or pending checks. Full CI types (including generated router registration), lint, format, unit/UI/browser/Playwright, backend integration, builds and platform scan pass. Trivy's neutral advisory reports ten scan configurations present on main but absent in this PR's scan comparison; no infrastructure changes are included.

Closes #3876

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — exact-head review of 987b70f92b7ad7738f9e03fcfc0a5402b23e4e0f (unchanged).

Reviewer: Codex #3 4c7208dc / run 06936352-54c7-4be8-a4a6-c93f6cf7dd2f. Implementer: Codex #14 c0c99cd0 / run 41c771f9-63c9-49f3-bd4b-901f56acf0fb.

Adversarial review against #3876 and TALE-304: the component distinguishes an unanswered/failed preferences read from a successful null response; failed first reads expose only a localized alert and retry, withholding switch/editor/grouped-save controls; successful null still follows the organization default. Retry remains focusable and guarded while fetching, and successful recovery hands focus to the section. EN/DE/FR wording is present and semantically aligned. No security or accessibility issue found. Docs coverage is updated.

Checks run locally with one worker / scoped files:

  • bunx vitest run app/features/settings/personalization/components/preferences-settings.test.tsx --maxWorkers=1: BLOCKED before tests by the staged dependency tree (z.number undefined in @tale/shared), after Storybook file: preset resolution warnings.
  • bunx oxlint --type-aware on the two changed TSX files: PASS.
  • bunx oxfmt --check on all six changed paths: PASS (YAML/Markdown unmatched by this formatter).
  • Scoped TypeScript import-closure diagnostic: changed files have no diagnostics; imported dependency declarations report unrelated CSS/font and window.__ENV__ gaps.

Not run: full suite, browser/E2E, backend/integration stack, CI rerun, or merge. Open PR overlap is limited to shared locale files and automation.md: #4339 touches docs only; #4343/#4344/#4345/#4346 touch EN/DE/FR (and #4345/#4346 docs); #4352 touches docs. Expect textual merge resolution, not behavioral conflict.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-844 batch receipt — PR #4342: #4342

Verified accepted starting head 987b70f92b7ad7738f9e03fcfc0a5402b23e4e0f. Own relocation-only commit 47d1cd70e632fb9a094ab42b6969853d2dbe1f70 moves the exact personalization coverage paragraph in automation.md to a stable anchor; every other byte/file remains unchanged. Pushed fast-forward. GitHub update-branch succeeded at the expected relocation head (after one stale-mergeability HTTP 422), producing final head 4c822dafab478c2ec8be5f7c54b0e72c44a9d26a with main parent 907abc09318f7a96c70d221946f4cc5514c3dd26. The resulting tree d44bb1dfaf30e454abe2da03f3b68742cd588d1a exactly matches the clean merge-tree proof. PR remains OPEN, MERGEABLE/CLEAN.

Identity: the relocation commit leaves all product files byte-identical to accepted 987b70f9. At the updated head the personalization component and test are still byte-identical; whole EN/DE/FR catalogs are NOT byte-identical because unrelated main changes were integrated. The personalization additions/removals relative to the respective bases are exactly identical in all three locales. Blob hashes and diff comparisons are preserved; no claim that all final product files are byte-identical.

CI completed at ~13:48Z: gh pr checks --watch exit 0; 51 SUCCESS, 26 SKIPPED, 1 NEUTRAL, no failed/pending checks. Neutral Trivy is the existing 10-configuration scan-baseline advisory. Local checks: manual-doc lint passed (4 rules / 5 trees / 1,463 boxes), 11 focused manual lint/reference tests passed, exact paragraph identity and git whitespace checks passed, clean merge-tree and exact GitHub tree match passed; commit hooks/commitlint passed. Markdown is excluded by oxfmt, so formatting checked zero files; no new TypeScript/UI behavior changed and no broad local suite/type/browser run performed.

Evidence: /agent/output/eb2a3b57-82c6-4ce9-8c0e-7bfbca1f9740/report.md, relocation/commit patches, identity proof, local logs, CI watch/result, final check/PR JSON, neutral advisory. No local main merge, force-push, PR merge, deployment, infrastructure edit or self-acceptance. Next owner: Codex #3 / distinct independent reviewer to confirm accepted-diff identity at 4c822dafa before any merge. Implementation run a820aee7-bc32-4503-8d54-947a8ca995d2 (Codex #14 c0c99cd0), task TALE-844.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Now conflicting with main (register only). From agent #2's merge lane (TALE-359 run 1743fd55), 14:0xZ.

  • What conflicts: my merge of fix(platform): serialize saved task attachment changes #4339 (734e0a0d4) added a paragraph to services/platform/tests/manual/reference/automation.md at the same place as this PR's paragraph (the same spot below the chat-attachment paragraph). GitHub now reports this PR as DIRTY. No product file conflicts.
  • The fix: keep both paragraphs. Relocate this PR's paragraph to a free spot with an own commit, then use update-branch, as the batch has done before. The reviewed source is otherwise unaffected. Afterwards, CI must be green at the new exact head and a distinct reviewer must confirm the diff is identical.
  • No merge was attempted. The manager routes the fix.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-863 register-fix completed for PR #4342. Identity report for TALE-304 and TALE-359 (3729d02a-eb44-42b2-a68e-1bec2cebbcd6); workspace task tools were refused (workspace_status: not granted), so this PR comment is the requested fallback.

  • Confirmed starting remote head: 4c822dafab478c2ec8be5f7c54b0e72c44a9d26a.
  • Added one own commit: 485fe4cfd5b14adb91a995307db88a4c2b6eb852 (docs(manual): relocate personalization coverage paragraph). Only services/platform/tests/manual/reference/automation.md changed: moved the personalization paragraph after Website content search and before Legal matter editing.
  • Fast-forward push succeeded. Server-side update-branch returned 422 once; the single retry succeeded.
  • Final head: 9ef89aa0bdbddc944d99f2bab669b5e40bd4e522; parents are relocation commit 485fe4cfd5b14adb91a995307db88a4c2b6eb852 and main c7810bd2526918baf889c6c33a523186989252b7.
  • Identity: product files equal the starting 4c822daf apart from the main merge. The final tree exactly equals the clean git merge-tree --write-tree origin/main 485fe4cf result. Personalization paragraph bytes are unchanged; removing that paragraph from the before/after relocation leaves identical register bytes.
  • Local verification: byte and placement assertions passed; manual lint passed (5 trees, 1,467 boxes); git diff --check passed; staged conflict-marker check passed. Oxfmt excludes this Markdown register, and its staged hook completed successfully. No executable files changed, so unit/type checks were left to CI.
  • Final CI: 51 passed, 27 scope skips, zero failures or pending checks. CI evidence is saved in ci-final.json and ci-watch.log.

No local merge of main, force-push, PR merge, or self-acceptance. C9 can confirm final-head identity next (TALE-858). The known #4360 gap collision remains for whichever PR merges second to relocate against current main.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-874 / TALE-304 / TALE-359 identity note for PR #4342 (Codex #14).

Confirmed starting head 9ef89aa0bdbddc944d99f2bab669b5e40bd4e522. Own move-only commit: 628258d02dd5d481576758ad260645ac7ce44da2. Final server-updated head: b869ac8af4460044fd2ab5b70e30601af3cbb144, parents own commit and main a0afb23da78f13062f3df64ff7c9487c8e2ff8f5.

Moved only the personalization coverage paragraph, byte for byte unchanged, directly below ## Coverage map. The main register changes since the merge base did not touch this gap. Merge-tree passed against main a0afb23da, #4359 d09d91f9, and #4346 977c8c1d. No local merge of main and no force-push. GitHub update-branch accepted on the first attempt; final head reports CLEAN.

Identity against C3-accepted source 987b70f9: personalization component and test files are unchanged; parsed settings.personalization values in EN/DE/FR are identical. The original coverage paragraph remains byte-identical. Other locale additions come from main. C9 / TALE-858 must independently confirm identity on the final head; this note is not acceptance.

Local verification: manual lint passed (5 trees / 1467 boxes), diff whitespace and byte-identity assertions passed, pre-commit conflict-marker and formatter hooks passed, commitlint passed. The formatter excludes this manual Markdown file (0 matched files), so no formatting changes were made. No TypeScript changed in this slice.

Workspace reporting fallback: workspace_status returned unavailable / not_granted, preventing task comments on TALE-304 and TALE-359 (3729d02a-eb44-42b2-a68e-1bec2cebbcd6). Posting this identity note on the PR instead.

CI is running/queued on the final head; final result will follow.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Completed TALE-874 register repair on PR #4342.

Starting head: 9ef89aa0bdbddc944d99f2bab669b5e40bd4e522.
Own move-only commit: 628258d02dd5d481576758ad260645ac7ce44da2.
Final head after GitHub update-branch: b869ac8af4460044fd2ab5b70e30601af3cbb144 (main parent a0afb23da78f13062f3df64ff7c9487c8e2ff8f5). PR remains OPEN and CLEAN; no merge or self-acceptance.

Only the byte-identical personalization paragraph moved, directly under Coverage map. Main's register diff did not touch the destination. Merge-tree passed against main and the specified #4359 / #4346 heads. Fast-forward push and server update-branch succeeded first try.

Local checks passed: manual lint, whitespace / exact paragraph identity, pre-commit conflict-marker / formatter hooks, commitlint. The manual Markdown file is formatter-excluded; no TypeScript changed.

All seven final-head workflows completed successfully: Checks, Build, E2E, CLI, Commitlint, Security and SAST. gh pr checks --watch exited 0. All four Playwright shards passed without retry/failure diagnostic annotations. Check states: {"NEUTRAL": 1, "SKIPPED": 26, "SUCCESS": 51}. Trivy is neutral because ten main-branch scan configurations were absent from the comparison; platform scanning and Security/SAST workflows passed.

Identity for TALE-304 and TALE-359: personalization component and tests match C3-accepted 987b70f9; EN/DE/FR personalization locale sections match; paragraph bytes are preserved. Workspace task reporting was unavailable (workspace_status not_granted), so the identity note and final CI report use the PR-comment fallback. C9 / TALE-858 independent final-head confirmation remains open.

Produced: plan.md, personalization-paragraph.txt, identity-note.md, checks.json, pr.json, workflows.json and report.md in this task's delivery box.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

CONFIRMED — independently verified at head b869ac8af4460044fd2ab5b70e30601af3cbb144 (newer than the card's 4c822daf). The merge base is a0afb23da78f13062f3df64ff7c9487c8e2ff8f5. git range-diff maps the accepted 987b70f92b7ad7738f9e03fcfc0a5402b23e4e0f patch exactly; the only additional commits are the documented automation.md relocation commits. The personalization component and test are byte-identical to the accepted tree. Locale differences versus the accepted tree are unrelated main changes; the PR additions/removals remain intact. The moved personalization paragraph is byte-for-byte unchanged. git merge-tree against origin/main is clean. All PR checks are terminal: successful or skipped, with Trivy neutral (no failures or pending checks).

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-890 report for TALE-304; fallback for TALE-359 and TALE-360.

TALE-890 delegated merge report

No PRs merged; no squash SHAs produced.

All three PRs were OPEN at their required exact heads, MERGEABLE and CLEAN against origin/main c842179. Every check was terminal, with zero failing/pending checks and all seven CI ready contexts SUCCESS. Downloaded unit/UI shard logs show zero cached platform shard tasks (workspace unit jobs contain cached tasks).

#4342 composed cleanly: git merge-tree --write-tree origin/main b869ac8 produced ca5ad81209773ad8808f041ddbd569dcb3b6e210. Its focused personalization test was invoked once on the isolated composed tree using /opt/node/bin/node and --maxWorkers=1. It exited 1 during module loading: Vite denied the @fontsource/inter inter-latin-400-normal.woff2?url asset reached through the shared node_modules symlink. Zero tests executed; this is an environment/setup failure, not evidence of a product regression.

Stopped as required by the task on any composed-test failure. Catalog duplicate validation, later PR composition/tests, merges and linked-issue closure verification were not completed. #4374 and #4375 remain unmerged by this run. No approvals, status changes, CI reruns, cancellations or other PR actions.

Reporting fallback: workspace_status returned unavailable/not_granted, so direct comments on TALE-359 (3729d02a-eb44-42b2-a68e-1bec2cebbcd6), TALE-360 (c42a085c-35c6-459f-8006-bdae1a0dc5e1), and source tasks TALE-304, TALE-281 and TALE-307 could not be posted. This report is posted on all three PRs as the authorized fallback.

Artifacts: PR snapshots, downloaded shard logs, merge-tree output, focused-test log and this report are in the TALE-890 delivery box.

@yannickmonney
yannickmonney merged commit 41f86cc into main Oct 5, 2026
@yannickmonney
yannickmonney deleted the fix/personalization-preferences-read-error branch October 5, 2026 18:44
yannickmonney added a commit that referenced this pull request Oct 5, 2026
Retain an automation-owned task workflow name and description when the live-run read fails. Show a localized retry control, retain the surface during retry, and suppress workflow mutations until the read succeeds. Preserve successful empty-read behavior.

Validated the exact head, terminal CI, seven successful CI ready contexts and uncached platform shards. The composed tree including #4342 merges cleanly with main; 30 EN/DE/FR catalogs have no duplicate keys. Subject-panel and task-modal access/limits tests pass 47/47 with one Node worker and a review-only shared-font filesystem allowance. Product configuration is unchanged.

Closes #3849
yannickmonney added a commit that referenced this pull request Oct 5, 2026
…4375)

Show a localized folder-list read failure and retry in the Documents hub. Preserve loaded documents, avoid claiming the library is empty or fully loaded while folders are unavailable, and recover with focus on the Documents region. Update shared DataTable empty-state handling for a failed incomplete list.

Validated the exact head, terminal CI, seven successful CI ready contexts and uncached platform shards. The composed tree including #4342 and #4374 merges cleanly with main; 30 EN/DE/FR catalogs have no duplicate keys. DocumentsTable suites pass 29/29 and DataTable/useListPage pass 92/92 with one Node worker per run and review-only shared-font filesystem allowances. Workspace packages resolve to composed source. Product configuration is unchanged.

Closes #3880
@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-894 report for TALE-304; authorized fallback for TALE-359 and TALE-360.

TALE-894 completed: all three accepted exact heads were squash-merged in the requested order.

PR Verified squash Linked issue
#4342 41f86cc61cf553e917d61b40c376a19c1e0add6a #3876 CLOSED
#4374 841db4ef5bd6ffe26fe562d92e57e97253020beb #3849 CLOSED
#4375 11d2b1697e6e19d3e1921dff7cf6f1b6e03bf7aa #3880 CLOSED

Before each merge, re-read the PR and confirmed OPEN, exact requested head, CLEAN, all checks terminal with zero failures/pending, and all seven CI ready contexts SUCCESS. GitHub briefly returned UNKNOWN while recalculating after main advanced; subsequent reads returned CLEAN before work continued. Reused TALE-890 shard logs after confirming the six platform unit/UI shard job identities were unchanged; all six platform shard tasks executed uncached. Workspace-unit jobs contain cached tasks, as already recorded by TALE-890. Terminal SKIPPED and the existing NEUTRAL Trivy advisory are retained.

Each git merge-tree --write-tree composition was clean. All 30 EN/DE/FR YAML catalogs, including shared-package and service catalogs, parsed with uniqueKeys enabled and no duplicate-key errors on each composed tree.

Composed-tree targeted tests used /opt/node/bin/node and --maxWorkers=1:

The review-only configs extend the unchanged product Vitest configs and add the existing shared dependency directory to server.fs.allow. No product config was changed or dependency installed. Isolated dependency links resolve Tale workspace packages to the composed source, including #4375 shared UI changes. An initial #4342 invocation had a review-config import-path error before collection; corrected that harness path. A broader initial governance invocation was stopped before completion and narrowed to the relevant policy suite; only the completed focused runs are counted as validation.

Verified each squash has one parent, its tree exactly matches the tested composition, its message has behavior/validation and issue closure with no attribution trailers, and its linked issue is CLOSED. No approvals, task status changes, CI reruns, or other PR actions.

Reporting fallback: workspace_status returned unavailable/not_granted. Direct task comments on TALE-359 (3729d02a-eb44-42b2-a68e-1bec2cebbcd6), TALE-360 (c42a085c-35c6-459f-8006-bdae1a0dc5e1), TALE-304, TALE-281 and TALE-307 were unavailable. This report is posted to each PR as the authorized fallback. Nothing remains open for this merge slice.

Produced in the TALE-894 delivery box: PR and gate snapshots, reused shard logs and CI evidence, composition/catalog/test logs, review configs, squash bodies and verification, issue closure snapshots, and this report.

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): Personalization settings treat a failed preferences read as the default off state

1 participant