-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[grid] Enhance UI with theme integration and improved status indicators #16512
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
Signed-off-by: Viet Nguyen Duc <[email protected]>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
User description
🔗 Related Issues
💥 What does this PR do?
After introducing Dark Mode in Grid UI, there are a few screens not consistent in colors
After fixing, the UI looks better
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Integrate theme colors for consistent dark mode support across Grid UI
Enhance node status indicators with color-coded visual states (DOWN, DRAINING, UP)
Improve Live Preview dialog styling with theme-aware backgrounds
Add status chip display in node details dialog with semantic colors
Diagram Walkthrough
File Walkthrough
themes.tsx
Add warning color palette to themesjavascript/grid-ui/src/theme/themes.tsx
warningcolor palette to both light and dark themes#FF9800#FFA726LiveView.tsx
Apply theme-aware background to canvasjavascript/grid-ui/src/components/LiveView/LiveView.tsx
useThemehook from Material-UItheme.palette.background.defaultNode.tsx
Enhance node card styling with status-based colorsjavascript/grid-ui/src/components/Node/Node.tsx
getCardStylefunction to provide theme-aware styling fordifferent node statuses
background
NodeDetailsDialog.tsx
Add status chip and improve details dialog layoutjavascript/grid-ui/src/components/Node/NodeDetailsDialog.tsx
Chipcomponent from Material-UIgetStatusColorfunction to map node status to semantic colorsRunningSessions.tsx
Apply theme background to session preview dialogjavascript/grid-ui/src/components/RunningSessions/RunningSessions.tsx