Repository navigation
fix(platform): keep chat sharing truthful, prefixed and keyboard-usable - #3728
Conversation
The Share dialog read a loading or failed status as "not shared": Keep private showed checked over a live organization link, and choosing it sent nothing, because it was already the selection. The picker now takes its value only from a successful status read. While the read runs the options are masked, and after it fails neither is checked or selectable; a notice says the chat may still be shared, and Try again reads it back. A share or revocation that succeeds writes its answer into the status, so the dialog no longer falls back to Create share link until the refetch lands. The copied link was the page origin plus /dashboard, which drops the deployment's base path. The dialog and the Home row menu now build it in one helper from SITE_URL and BASE_PATH, one slash between the parts. The two options were hand-built role=radio buttons without arrow keys, each its own tab stop. They are the design-system RadioGroup now: one tab stop entered on the checked option, arrow keys that move the focus and the check, and focus that stays on the option acted on while a change is pending or refused.
The shared-chats page says what the dialog shows when it cannot load the sharing status, in all three languages. The chat suite gains boxes for the failed status read, a link under a base path and the picker from the keyboard, with their coverage rows and pins, and the readme's navigation count is corrected to the 64 boxes the suite holds.
…ew-chat-sharing-3728
yannickmonney
left a comment
There was a problem hiding this comment.
No blocking findings in the scoped review of 24604f1863385efce8acc8ad4426750e1f06aaa6.
The sharing read now distinguishes unknown from private, both link-producing paths use the same base-path helper, and the access picker uses the shared radio primitive. I independently ran the 20 changed tests plus four parent regression/control cases against the actual dialog, hooks and authenticated local native backend. The parent failure test retained an active native share during settled 503s, verified that neither option claimed access, then retried and revoked it; the snapshot changed from 200 to 404. Root/prefix copied-link cases passed (prefix stripping is modeled by the test dispatcher, not claimed as an independently deployed proxy).
In real local Chrome at this head, Tab entered on the selected radio, an ordinary Arrow Down changed focus and selection, and the next Tab left the group for Create share link. Creating the empty synthetic share succeeded; Arrow Up then revoked it through the native local API, kept focus on Keep private and showed Sharing stopped. No production or provider testing.
Read the EN/DE/FR message and guide additions for meaning and checked the manual suite references. React Doctor: 93/100, one control-flow complexity warning in the dialog, no independently established defect from that diagnostic. Exact-head GitHub check readback: 44 successful, five skipped, one neutral. I did not rerun the full root check or inspect every CI task's cache provenance; this is not a claim of a fresh complete local gate, rendered documentation audit or mobile/locale visual approval.
The original reports #3717–#3719 are covered by the observed behavior. Ready for the maintainer's normal landing checks; no merge or deployment performed by this reviewer.
yannickmonney
left a comment
There was a problem hiding this comment.
Re-reviewed exact head 1142912379a1e40b93655f3b86aae9b74b85586f after the integration from 24604f1863385efce8acc8ad4426750e1f06aaa6. No new blockers found. The sharing source/tests and EN/DE/FR shared-chat docs are unchanged; the reachable shared UI and boot changes were inspected.
Fresh local checks: 20 sharing tests, all 4 original native replays, 24 shared Alert tests and 20 Safari boot logic tests pass. Manual guide/structure checks and the updated 888-box count pass. React Doctor remains 93/100 with the same complexity advisory.
The native replay uses the existing local baseline backend (chat-sharing runtime unchanged), and its prefix dispatcher models proxy stripping. No fresh browser/device claim. CI still has pending jobs at this readback; the green checks were not cache-audited.
The Share chat dialog now distinguishes loading, unknown and known sharing status. Failed reads leave both choices unchecked and disabled with a retry action; successful changes update the link immediately. Shared links include the deployment base path, and the existing radio group provides keyboard selection and preserves focus while saving. EN/DE/FR copy, docs and manual coverage match these states.
Closes #3717
Closes #3718
Closes #3719
Validation after integrating current main: 33 focused UI tests, 171 docs tests, platform typecheck, scoped typed lint and manual guards passed. Eighteen native Chromium scenarios covered failed-status retry, revocation, pending focus, refused changes and link creation across EN/DE/FR at phone and desktop widths. Six localized docs renders passed without overflow or page errors. Manual suite counts were corrected after integration.
Browser checks used actual components with synthetic transport. Physical screen-reader speech and a second authenticated recipient were not observed in this review. Current-head CI is checked separately before merging.