Skip to content

Conversation

@astandrik
Copy link
Collaborator

@astandrik astandrik commented Jul 29, 2025

Closes #2623

Flat banner
Expandable banner

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
354 348 0 4 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: 🔺

Current: 85.33 MB | Main: 85.31 MB
Diff: +0.01 MB (0.01%)

⚠️ Bundle size increased. Please review.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

This comment was marked as outdated.

@astandrik astandrik requested a review from Copilot July 29, 2025 12:05

This comment was marked as outdated.

@astandrik astandrik requested a review from Copilot July 29, 2025 12:16

This comment was marked as resolved.

cursor[bot]

This comment was marked as resolved.

@ydb-platform ydb-platform deleted a comment from cursor bot Jul 29, 2025
@astandrik astandrik requested a review from Copilot July 29, 2025 13:19
@astandrik
Copy link
Collaborator Author

bugbot run

Copy link
Contributor

Copilot AI left a 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

@astandrik
Copy link
Collaborator Author

Stand redeployed

@@ -0,0 +1,32 @@
@use '../../styles/mixins.scss';
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!areChartsAvailable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null - Still loading

@astandrik astandrik requested a review from Raubzeug July 30, 2025 08:14
@astandrik astandrik added this pull request to the merge queue Jul 30, 2025
Merged via the queue into main with commit 30c6427 Jul 30, 2025
11 of 15 checks passed
@astandrik astandrik deleted the astandrik.2623 branch July 30, 2025 09:56
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.

fix: design refinements of query banner

3 participants