[grid] Enhance UI with theme integration and improved status indicators#16512
[grid] Enhance UI with theme integration and improved status indicators#16512
Conversation
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
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