Repository navigation
Show connections and company sign-in before their status checks finish - #293
Merged
Merged
Conversation
My connections waited for every connector's status before showing the page. A status runs the connector's code in the app runtime and takes seconds. The page now lists connectors from the database right away, and each row loads its status on its own. Company sign-in waited for the sign-in service to report whether it applies the configuration. The settings now come without that status, and the page loads it separately.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 831f330 | Nov 22 2026, 02:01 PM |
The rows of My connections now ask for their statuses in one batched request. The server reads the connectors once and checks them with the list's limits: four at a time, within five seconds. If the sign-in service cannot be reached, company sign-in says so instead of showing that the check is still running.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A status check on My connections runs the connector's code in the app runtime and takes about 2.5 seconds in production. The page waited for every connector's status before it rendered. Company sign-in similarly waited 0.6 to 0.7 seconds for the sign-in service to report whether it applies the configuration.
Changes
getUserConnectionsreturns the connectors from the database. Each row shows "Checking account…" inside its own<svelte:boundary>whilegetUserConnectionStatusloads. It is aquery.batch, so the rows share one request, and the server reads the connectors once and checks them with the list's limits: four at a time, within five seconds. A connector whose check finds no personal connection drops out of the list, as before. "Try again" refreshes the list and every status. The API'sGET /user-connectionskeeps returning statuses, with the same concurrency and deadline as before.settings.overviewreturns the settings without the activation status, andgetSettingsActivationasks the sign-in service separately. Until it answers, the page says "Checking the sign-in service…". If the request fails, it says the sign-in service could not be reached. Polling while the configuration applies now refreshes only the activation status.settings.read, which the API and the welcome redirect use, still includes it.Screenshots
Before, the pages appeared only once every status had arrived. After, they appear right away and fill in the statuses. The loaded states are unchanged.
Not captured: an unavailable status after the check fails, and the company SSO connection card while its activation message loads.
Validation
pnpm check(typecheck, format and lint)

Confidence Score: 5/5
The PR appears safe to merge; all previous findings are addressed and no new blocking issue was found.Summary
The PR lets connection rows and company sign-in settings appear before their status checks finish.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Open My connections] --> B[Read connector records] B --> C[Show rows with Checking account] C --> D[Batch requested statuses] D --> E[Check up to four at once within five seconds] E --> F[Show status, mark unavailable, or hide row] G[Open Company sign-in] --> H[Read and show settings] G --> I[Request activation separately] I --> J[Show activation message or request error]Reviews (2) · Last reviewed commit: "Check connector statuses together and re..." · Reviewed by Greptile