-
Notifications
You must be signed in to change notification settings - Fork 17
fix: design refinements of query banner #2630
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
Conversation
406679f to
2b9a61a
Compare
|
bugbot run |
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.
Pull Request Overview
This PR refactors the QueriesActivityBar component to provide better handling of chart availability and visual improvements. The changes improve the user experience by showing appropriate UI states when charts are not available and reorganizing the component structure.
Key changes include:
- Component refactoring with separation of concerns for different UI states
- Addition of chart availability detection to prevent hidden components
- New compact alert-style mode when charts are unavailable
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/store/reducers/query/__test__/tabPersistence.test.tsx |
Updated test syntax from it to test for consistency |
src/components/QueriesActivityBar/useQueriesActivityData.ts |
New hook extracting data fetching logic from main component |
src/components/QueriesActivityBar/useChartAvailability.ts |
New hook to detect chart API availability without rendering components |
src/components/QueriesActivityBar/QueriesActivitySkeleton.tsx |
New skeleton component for loading state |
src/components/QueriesActivityBar/QueriesActivityExpandable.tsx |
New component for expandable mode when charts are available |
src/components/QueriesActivityBar/QueriesActivityCharts.tsx |
Updated chart layout using Flex components and adjusted heights |
src/components/QueriesActivityBar/QueriesActivityBar.tsx |
Refactored main component to orchestrate different UI states |
src/components/QueriesActivityBar/QueriesActivityAlert.tsx |
New compact alert component for when charts are unavailable |
src/components/QueriesActivityBar/QueriesActivityBar.scss |
Simplified styles removing redundant CSS rules |
src/components/QueriesActivityBar/QueriesActivityAlert.scss |
Styles for the new alert component |
|
Stand redeployed |
| @@ -0,0 +1,32 @@ | |||
| @use '../../styles/mixins.scss'; | |||
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.
seems to be unused
| } | ||
|
|
||
| // Render compact alert-style mode when charts are not available | ||
| if (areChartsAvailable === false) { |
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.
!areChartsAvailable?
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.
null - Still loading
Closes #2623
Flat banner
Expandable banner
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: 🔺
Current: 85.33 MB | Main: 85.31 MB
Diff: +0.01 MB (0.01%)
ℹ️ CI Information