OU-1416 OU-1415 fix histogram and table colors themes, fix volume legend background#389
Conversation
…d background Signed-off-by: Jenny Zhu <jenny.a.zhu@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zhuje The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
WalkthroughLog severity indicators now use CSS variables applied through virtualized row styles. Severity color mappings return CSS variable references, and the metrics legend table receives transparent sticky-cell backgrounds. ChangesSeverity styling and metrics presentation
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
web/src/components/virtualized-logs-table.tsx (1)
223-223: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winPreserve virtualization layout styles.
getRowStyleis spread after the react-virtualizedstyle, so any callback returningtop,height,width, orpositioncan break row placement. Apply the callback first; the severity custom property will still be retained.Proposed fix
- style={{ ...style, ...getRowStyle?.(rowArgs.obj) }} + style={{ ...getRowStyle?.(rowArgs.obj), ...style }}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@web/src/components/virtualized-logs-table.tsx` at line 223, Update the row style merge in the virtualized logs table so getRowStyle?.(rowArgs.obj) is applied before the react-virtualized style, ensuring virtualization-controlled top, height, width, and position values always win while retaining custom properties such as severity.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@web/src/components/virtualized-logs-table.tsx`:
- Line 223: Update the row style merge in the virtualized logs table so
getRowStyle?.(rowArgs.obj) is applied before the react-virtualized style,
ensuring virtualization-controlled top, height, width, and position values
always win while retaining custom properties such as severity.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 42269667-8ee4-48e9-9005-0f26be620821
📒 Files selected for processing (6)
web/src/components/logs-metrics.cssweb/src/components/logs-metrics.tsxweb/src/components/logs-table.cssweb/src/components/logs-table.tsxweb/src/components/virtualized-logs-table.tsxweb/src/severity.ts
|
/retest |
|
@zhuje: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
JIRA
https://redhat.atlassian.net/browse/OU-1416
https://redhat.atlassian.net/browse/OU-1415
Note: Update chart colors associates to align with patternfly guidelines https://www.patternfly.org/ai/guidelines/color/#color-associations-and-statuses
Image
quay.io/jezhu/logging-view-plugin:ou1416-ou1415-jul17
Screenshots
Figure. Fix log volume legend background to be transparent (OU-1416)


Figure. Fix histogram and table row colors to match (OU-1415)


Summary by CodeRabbit
Bug Fixes
Accessibility