Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

codeintel: Move expensive braindot components into menu contents#53039

Merged
efritz merged 3 commits into
mainfrom
ef/braindot-frenzy
Jun 6, 2023
Merged

codeintel: Move expensive braindot components into menu contents#53039
efritz merged 3 commits into
mainfrom
ef/braindot-frenzy

Conversation

@efritz

@efritz efritz commented Jun 6, 2023

Copy link
Copy Markdown
Contributor

Hypothesis: The brain dot's style calculation requires some rather heavy-weight GraphQL calls for large repos (including tag commands associated with a particular index).

This PR removes the style and moves the GraphQL calls into the brain dot menu itself so that it only makes the API calls when the menu is visible (on user interaction, not on all user blob interactions). Fixes #51675.

Test plan

Tested locally.

@efritz efritz self-assigned this Jun 6, 2023
@cla-bot cla-bot Bot added the cla-signed label Jun 6, 2023
@efritz efritz added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/language-platform labels Jun 6, 2023
@sourcegraph-bot

sourcegraph-bot commented Jun 6, 2023

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@efritz efritz enabled auto-merge (squash) June 6, 2023 19:47
@efritz efritz merged commit 4ffd1cf into main Jun 6, 2023
@efritz efritz deleted the ef/braindot-frenzy branch June 6, 2023 22:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce braindot rendering eagerness

3 participants