Skip to content
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: add new popup menu icon #2045

Merged
merged 6 commits into from
Mar 27, 2025
Merged

feat: add new popup menu icon #2045

merged 6 commits into from
Mar 27, 2025

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Mar 25, 2025

Closes #1977

Stand

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
286 285 0 0 1
Test Changes Summary ⏭️1

⏭️ Skipped Tests (1)

  1. Streaming query shows some results and banner when stop button is clicked (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: ✅

Current: 83.25 MB | Main: 83.24 MB
Diff: +3.75 KB (0.00%)

✅ Bundle size unchanged.

ℹ️ 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 astandrik requested a review from Copilot March 25, 2025 16:25
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 adds a new popup menu icon and refactors how clipboard button and popover content are integrated into UI components. Key changes include:

  • Adding a ClipboardButton to the GroupId column in StorageGroups.
  • Refactoring TenantNameWrapper and NodeHostWrapper to remove the CellWithPopover and instead integrate popover content directly through the EntityStatus component.
  • Updating EntityStatus to support an optional infoPopoverContent and adjust the visibility logic for its controls.

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

File Description
src/containers/Storage/StorageGroups/columns/columns.tsx Adds a ClipboardButton and adjusts the column width for the GroupId column.
src/components/TenantNameWrapper/TenantNameWrapper.tsx Removes CellWithPopover and introduces infoPopoverContent for displaying additional tenant links.
src/components/NodeHostWrapper/NodeHostWrapper.tsx Removes CellWithPopover usage and supplies popover content directly to EntityStatus.
src/components/EntityStatus/EntityStatus.tsx Integrates infoPopoverContent prop and updates control visibility logic for clipboard and info buttons.
Files not reviewed (2)
  • src/components/EntityStatus/EntityStatus.scss: Language not supported
  • src/containers/Storage/StorageGroups/columns/StorageGroupsColumns.scss: Language not supported

<InternalLink className={b('group-id')} to={getStorageGroupPath(row.GroupId)}>
{row.GroupId}
</InternalLink>
<ClipboardButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Clipboard button is hidden if column is narrow enough.
Also, ellipsis for groupId is missed.

visible: clipboardButtonAlwaysVisible,
})}
/>
{infoPopoverContent && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Info button always take place in column. It looks not good if column is narrow enough.
Screenshot 2025-03-27 at 10 41 50

@astandrik astandrik requested a review from Raubzeug March 27, 2025 14:27
@astandrik
Copy link
Collaborator Author

@Raubzeug fixed
updated stand

@astandrik astandrik added this pull request to the merge queue Mar 27, 2025
Merged via the queue into main with commit 21de77f Mar 27, 2025
7 checks passed
@astandrik astandrik deleted the astandrik.1977 branch March 27, 2025 15:16
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.

add new popup menu icon
2 participants