-
Notifications
You must be signed in to change notification settings - Fork 11
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
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.
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 |
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.
Clipboard button is hidden if column is narrow enough.
Also, ellipsis for groupId is missed.
visible: clipboardButtonAlwaysVisible, | ||
})} | ||
/> | ||
{infoPopoverContent && ( |
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.
@Raubzeug fixed |
Closes #1977
Stand
CI Results
Test Status: ✅ PASSED
📊 Full Report
Test Changes Summary ⏭️1
⏭️ Skipped Tests (1)
Bundle Size: ✅
Current: 83.25 MB | Main: 83.24 MB
Diff: +3.75 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information