Repository navigation
fix(platform): name a failed cloud-import setup check, hold Connect - #4378
Conversation
The Documents connect dialog read a failed OAuth-app status check as an app that is set up: the ordinary not-connected words and a live Connect, no failure named and no way to run the check again (#3864). The dialog now reads the check through readStateOf. While the check has failed, a destructive alert names it in EN/DE/FR with Try again in place of the guidance, and neither Connect nor the connector-settings path shows. Try again stays busy and keeps its focus while the check runs again; a check that works hands focus to the dialog's words. Connect is disabled while the first check runs. A successful configured or not-configured answer reads as before. Closes #3864
|
ACCEPT — independent review of exact head Reviewed independently by Codex #8, not implementer Claude #6. No blocking findings.
Verification at this head using existing dependencies and
Local verification notes: the isolated archive needed a Vite filesystem allowlist for the existing dependency directory. The initial adjacent-suite run hit a five-second timeout and cascading render failures; a bounded sample passed on both head and main, and the complete head suite subsequently passed with the larger ceiling. Real-browser layout and screen-reader speech were not exercised in this light review. Delivery fallback for TALE-292 and TALE-359 ( |
|
TALE-896 delegated merge report for TALE-292; fallback report for TALE-359 and TALE-360 because workspace_status returned not_granted. Merged accepted exact head ba2473a as squash 966fd6a; issue #3864 verified CLOSED. OPEN/CLEAN and exact head rechecked before merge. All 78 checks terminal: 53 success, 24 skipped, 1 neutral; seven CI ready contexts SUCCESS. CI logs prove both platform Unit and all four UI shards uncached (0 cached/1 total). Merge-tree clean against main 1a86f23, revalidated unchanged immediately before merge. All 30 EN/DE/FR catalogs parse without duplicate keys. Composed-tree cloud-import setup, import outcome, lapsed session, listing failure and disconnect suites passed 126/126 across five files with /opt/node/bin/node, one worker and the permitted review-only server.fs.allow config. No approvals, status changes or reruns. |
What changed
The Documents cloud-import connect dialog (
CloudImportConnectDialog) read a failedcloud_import/queries:getOauthAppStatuscheck as an app that is set up.appMissingwasdata !== undefined && !data.configured, so a 503 leftdataundefined and the dialog showed the ordinary not-connected words and a live Connect. It named no failure and offered no way to run the check again (#3864).readStateOf, the same pattern as Bug: failed knowledge-entry reads look like an empty library or missing history #3777 and fix(platform): show a failed passkey list read with a retry #4300. While the check has failed, the sharedCatalogLoadErrorreplaces the guidance with a destructive alert and Try again, which re-runs the query. Neither Connect nor the admin's Open connector settings shows until the check answers.aria-busyandaria-disabled, not natively disabled) and keeps its focus while the retry runs. It keeps it again if the retry fails, and the failure is announced afresh (failureKey).tabIndex={-1}), then shows Connect or the not-configured path.GoogleReauthButtonandMicrosoftReauthButtontake an optionaldisabled.documents.cloudImport.appStatusLoadFailedin EN, DE and FR. There is noß, so no de-CH override is needed.docs/{en,de,fr}/platform/knowledge/documents.mdsays the dialog offers Try again instead of the connect button when the check fails.services/platform/tests/manual/reference/automation.md, directly after the notification-read paragraph.The successful paths are unchanged:
configured: trueshows the guidance and an enabled Connect, andconfigured: falseshows the not-configured text, with the settings button for an admin.How I verified it
cloud-import-connect-dialog.app-status.test.tsxruns the realuseBackendQuery, adapter row,backendFetchand retry policy againstsyntheticBackend()andserviceUnavailable(). It passes 19/19 for both providers:cloud-import-dialogs.{import-outcome,lapsed-session,listing-failure}andcloud-disconnect-buttonstogether with the new file pass 126/126 (--project client, one worker).lib/i18n/messages.test.tspasses 24/24.docs,locale-outline,locale-translationandlinkspass 27/27.bun tools/lint-manual/cli.tsis ok.oxlinton the four TS files exits 0 with no findings, andoxfmt --checkis clean.tsc --noEmitover the changed files plusdocuments-action-menu.tsxand the import-outcome test exits 0 with 0 errors.GET /cloud-import/oauth-app-statussits behind onlyrequireSessionandrequireOrgMember, so members can read it. A member doesn't get stuck on the alert through a 403.Commits (head
ba2473a1d)7dba5f793fix(platform): the fix, its suite, the copy, the docs and the register line. It was built on3ba3b8679and rebased ontof18ecf0b1before the first push. The range-diff is=(113f1003ebecame7dba5f793), and the tree equalsgit merge-treeof main and the old head.2b8fc5676test(platform): the suite now waits for the busy state, and for a failed retry to settle (exactly twice the first failure's requests), before it judges them. Against main's sources it still fails 15 of 19; the 4 that pass are the unchanged successful answers.ba2473a1ddocs(platform): the German docs call the control a Schaltfläche, as the rest of the German docs do.Left open, deliberately
readStateOf(...).staleisn't surfaced), because a known configuration is enough to start consent.Closes #3864