Skip to content

Show connections and company sign-in before their status checks finish - #293

Merged
tnkuehne merged 2 commits into
mainfrom
load-slow-status-separately
Nov 22, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
load-slow-status-separately

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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

  • My connections: getUserConnections returns the connectors from the database. Each row shows "Checking account…" inside its own <svelte:boundary> while getUserConnectionStatus loads. It is a query.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's GET /user-connections keeps returning statuses, with the same concurrency and deadline as before.
  • Company sign-in: settings.overview returns the settings without the activation status, and getSettingsActivation asks 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.

Before (loaded) After (loading) After (loaded)
My connections, 1280 light
My connections, 390 dark
Company sign-in, 1280 light
Company sign-in, 390 dark

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)
  • Browser tests: 74 passed, 1 skipped. The CLI login suite did not run locally because the CLI binary was not built.
  • The personal connections test now holds the status request and checks that the list shows "Checking account…" before the status arrives.

RetriggerView in GreptileConfidence 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.

  • My connections shows rows while account checks run.
  • Company sign-in shows settings while activation loads.

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]
Loading

Reviews (2) · Last reviewed commit: "Check connector statuses together and re..." · Reviewed by Greptile

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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.
@tnkuehne
tnkuehne merged commit a4e2292 into main Nov 22, 2026
16 checks passed
@tnkuehne
tnkuehne deleted the load-slow-status-separately branch November 22, 2026 14:08
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.

1 participant