feat(workspace): instantly load the workspace #10191
Draft
feat(workspace): instantly load the workspace #10191
Conversation
… query loading Split the workspace GraphQL query into three progressive stages: - Light query (~120ms): component list, env info, server URLs, build status - Heavy query (~78ms): compositions, aspects, descriptions, issue counts - Status query (~13s): deferred — doesn't block the UI Only the light query triggers the global loading spinner (useDataQuery). Heavy and status queries use useQuery directly, so they resolve silently in the background without blocking interaction. Additional changes: - Switch lanes, cloud, and drawer hooks from useDataQuery to useQuery to remove them from the global loader - Disable Apollo BatchHttpLink by default (fast queries were blocked by slow ones in the same batch) - Fix drawer loading state: return loading=false when viewing workspace versions instead of waiting on lane queries - Proxy: add cache-control headers on JS/CSS, normalize double-slash URLs, configure timeouts Measured results (212 components): - Global loader visible ~120ms (was 12-16s) — ~100x improvement - Component data available in <200ms - Status resolves in background (~13s, doesn't block UI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> EOF )
The env icon in workspace component cards was not updating after the heavy GraphQL query delivered aspect data. Root cause: useCardPlugins() memoization only depended on component count, not on descriptor data. Fix: add descriptorAspectsSignature to the memo dependencies so plugins are recreated when aspect data arrives. Also show a subtle placeholder while env data is loading instead of a broken image. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…untime conflicts)
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.
Proposed Changes