Skip to content

feat: side panel aka refrigerator for query text in top queries #2134

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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Apr 10, 2025

Closes #2079

Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
318 317 0 1 0

😟 No changes in tests. 😕

Bundle Size: 🔺

Current: 83.42 MB | Main: 83.36 MB
Diff: +0.06 MB (0.07%)

⚠️ 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.

@astandrik
Copy link
Collaborator Author

  • pasting sharing link to tg is not working

@astandrik
Copy link
Collaborator Author

  • pasting sharing link to tg is not working

fixed

@astandrik
Copy link
Collaborator Author

should fix design review now

@astandrik astandrik requested a review from Copilot April 21, 2025 14:50
Copy link
Contributor

@Copilot 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 introduces a side panel ("refrigerator") to display detailed query text and related information in the Top Queries view. Key changes include:

  • Updating sorting behavior in Top Queries by accepting an optional initial sort parameter.
  • Adding a new drawer component for displaying query details.
  • Refactoring row selection and active state highlighting logic in both TopQueriesData and RunningQueriesData.

Reviewed Changes

Copilot reviewed 19 out of 24 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/containers/Tenant/Diagnostics/TopQueries/utils.ts Adds an optional initialSort parameter and a new utility to create InfoViewer items.
src/containers/Tenant/Diagnostics/TopQueries/hooks/useSetSelectedTopQueryRowFromParams.ts Introduces a hook to select a query row based on URL params.
src/containers/Tenant/Diagnostics/TopQueries/hooks/useGetSelectedRowTableSort.ts Adds support for retrieving sort order from URL params.
src/containers/Tenant/Diagnostics/TopQueries/columns/constants.ts Updates query columns by adding a new 'QueryHash' column.
src/containers/Tenant/Diagnostics/TopQueries/columns/columns.tsx Adjusts the ordering of columns for running queries.
src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx Refactors row click handling and integrates the new query details drawer.
src/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx Removes now-unused row click handlers in favor of the new drawer logic.
src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx Applies similar refactoring as TopQueriesData for consistency in handling selected rows and drawer display.
src/containers/Tenant/Diagnostics/TopQueries/QueryDetails/* New files for rendering query details including the drawer content and copy link button.
src/containers/Drawer/Drawer.tsx Implements a new drawer container and item wrapper used across query details views.
src/components/SyntaxHighlighter/YDBSyntaxHighlighter.tsx Enhances the syntax highlighter with dynamic padding based on clipboard button settings.
src/components/Search/Search.tsx Adds support for passing an input ref to the Search component.
src/containers/Tenant/Diagnostics/Diagnostics.tsx Wraps page content in the new Drawer container to support drawer overlays.
Files not reviewed (5)
  • src/containers/Drawer/Drawer.scss: Language not supported
  • src/containers/Tenant/Diagnostics/Diagnostics.scss: Language not supported
  • src/containers/Tenant/Diagnostics/TopQueries/QueryDetails/QueryDetails.scss: Language not supported
  • src/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss: Language not supported
  • src/containers/Tenant/Diagnostics/TopQueries/i18n/en.json: Language not supported

@astandrik astandrik marked this pull request as ready for review April 21, 2025 14:54
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.

feat: side panel aka refrigerator for query text in top queries
1 participant