-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add isBeingPromoted field to piles #2719
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
|
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 adds support for displaying a "Being Promoted" status field for bridge piles in the cluster overview. The change introduces a new IsBeingPromoted boolean field to track when a pile is in the process of being promoted to primary status.
Key changes:
- Adds
IsBeingPromotedfield to theTBridgePileinterface - Updates the bridge info table component to display the promotion status with visual indicators
- Adds internationalization support for the new field
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/types/api/cluster.ts |
Adds IsBeingPromoted optional boolean field to TBridgePile interface |
src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.tsx |
Implements UI display for the being promoted status with icons and text |
src/containers/Cluster/i18n/en.json |
Adds internationalization key for "Being Promoted" field label |
tests/suites/bridge/mocks.ts |
Updates mock data to include IsBeingPromoted field for test piles |
tests/suites/bridge/bridge.test.ts |
Adds test assertion to verify the being promoted status is displayed |
|
|
||
| const renderBeingPromotedStatus = React.useCallback(() => { | ||
| const isBeingPromoted = pile.IsBeingPromoted; | ||
| const icon = isBeingPromoted ? CircleCheckFill : CircleXmarkFill; |
Copilot
AI
Aug 15, 2025
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.
The icons CircleCheckFill and CircleXmarkFill are not imported. You need to import these icons from @gravity-ui/icons at the top of the file.
|
Claude finished @astandrik's task —— View job Code Review for PR #2719I've completed a review of this PR that adds the ✅ Good Implementation Aspects
❌ Critical IssueMissing Icon Imports (src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.tsx:51) The code uses 🔍 Minor Suggestions
✅ Compliance with Standards
SummaryThis PR correctly implements the new The issue raised by Copilot about missing icon imports appears to be a false positive - the icons are properly imported at the top of the file. Recommendation: ✅ Approve - The implementation is correct and follows all project standards. |
| <Icon | ||
| data={icon} | ||
| size={16} | ||
| className={b('status-icon', {primary: isBeingPromoted})} |
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.
Closes #2718
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: ✅
Current: 85.36 MB | Main: 85.35 MB
Diff: +1.76 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information