-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(experiments): Remove blocking results load animation #28066
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR improves the experiment results loading experience by removing blocking animations and optimizing component rendering during loading states.
- Removed
ExperimentLoadingAnimation
fromfrontend/src/scenes/experiments/ExperimentView/ExperimentView.tsx
to prevent blocking UI during result calculations - Added
result
dependency to resize observer infrontend/src/scenes/experiments/MetricsView/DeltaChart.tsx
to fix chart dimension updates - Delayed rendering of
ExperimentImplementationDetails
until results are fully loaded to avoid UI flashing - Optimized loading states to allow partial content display while results calculate
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
<div className="xl:flex"> | ||
<div className="w-1/2 mt-8 xl:mt-0"> | ||
<DataCollection /> | ||
</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: The DataCollection div is set to w-1/2 but there's no complementary div using the other half of the space. This creates unbalanced layout.
Size Change: 0 B Total Size: 1.16 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing!
@jurajmajerik I'll let you take a look at this before I merge, in case you have any opinions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for moving quickly on this!
See https://posthog.slack.com/archives/C07PXH2GTGV/p1738179059221599
Changes
<ExperimentLoadingAnimation />
from displaying when experiment results are loading.<ExperimentImplementationDetails experiment={experiment} />
from displaying until results have loaded, to prevent it from displaying and then disappearing.refreshExperimentResults()
so we can null out the stale results while the new results are loading.I didn't think it would be this simple, but seems to work in my testing.
Before
After
How did you test this code?
Manual testing. To more easily evaluate, apply this diff locally: