Skip to content

OU-1416 OU-1415 fix histogram and table colors themes, fix volume legend background - #389

Open
zhuje wants to merge 3 commits into
openshift:mainfrom
zhuje:ou1416-ou1415-fix-histogram-n-legend-color-themes
Open

OU-1416 OU-1415 fix histogram and table colors themes, fix volume legend background#389
zhuje wants to merge 3 commits into
openshift:mainfrom
zhuje:ou1416-ou1415-fix-histogram-n-legend-color-themes

Conversation

@zhuje

@zhuje zhuje commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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)
Screenshot 2026-07-16 at 5 51 09 PM
Screenshot 2026-07-17 at 4 35 24 PM

Figure. Fix histogram and table row colors to match (OU-1415)
Screenshot 2026-07-17 at 4 05 37 PM
image

Summary by CodeRabbit

Summary by CodeRabbit

  • Bug Fixes

    • Updated logs table row indicator coloring to be driven by severity-derived CSS variables, including in virtualized rendering.
    • Refined the logs metrics legend sticky-cell background to improve consistency.
  • Accessibility

    • Improved the metrics legend table by adding an aria-label and applying a dedicated styling class.
  • Tests

    • Improved Logs page E2E reliability with better textarea editing and clearer network synchronization waits.

…d background

Signed-off-by: Jenny Zhu <jenny.a.zhu@gmail.com>
@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Walkthrough

Log severity indicators now use CSS variables applied through virtualized row styles. The metrics legend table receives transparent sticky-cell backgrounds, and Cypress tests synchronize required network requests and query edits.

Changes

Logs UI and test updates

Layer / File(s) Summary
CSS-variable severity row styling
web/src/severity.ts, web/src/components/logs-table.tsx, web/src/components/virtualized-logs-table.tsx, web/src/components/logs-table.css
Severity colors are returned as CSS variables and applied through virtualized row styles instead of severity-specific classes.
Metrics legend sticky-cell styling
web/src/components/logs-metrics.tsx, web/src/components/logs-metrics.css
The legend table receives a dedicated class, and sticky-cell backgrounds are set to transparent.
Cypress request synchronization
web/cypress/e2e/integration/logs-dev-page.cy.ts, web/cypress/e2e/integration/logs-page.cy.ts
Tests clear query fields consistently and wait for matrix and infrastructure streams requests at the relevant points.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: jgbernalp, peteryurkovich

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed Changed test titles are static strings; no dynamic names, timestamps, IDs, or generated values appear in the modified test files.
Test Structure And Quality ✅ Passed PR only changes React/Cypress files; no Ginkgo tests or Go test setup/Eventually usage were modified, so this check is not applicable.
Microshift Test Compatibility ✅ Passed PASS: The only touched test is a Cypress spec; no new Ginkgo It/Describe blocks were added, and no new MicroShift-unsupported e2e API use was introduced.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only Cypress specs changed; no Ginkgo e2e tests were added, and the modified tests don’t assume multiple nodes or HA topology.
Topology-Aware Scheduling Compatibility ✅ Passed Only a Cypress E2E test changed; no manifests, controllers, or scheduling constraints were added.
Ote Binary Stdout Contract ✅ Passed Touched files are UI/Cypress only; no main/init/suite setup or stdout writes were introduced.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PASS: The changed specs are Cypress, not Ginkgo, and they only use cluster-internal proxy/API URLs; no hardcoded IPv4, localhost, or public-internet dependencies found.
No-Weak-Crypto ✅ Passed No weak-crypto APIs, custom crypto, or secret comparisons appear in the touched files; changes are limited to UI styling, color mapping, and test synchronization.
Container-Privileges ✅ Passed PR only changes a Cypress test file; no container/K8s manifests were modified, and no privileged settings were introduced in the diff.
No-Sensitive-Data-In-Logs ✅ Passed The diff only changes table styling, severity color mapping, and test synchronization; no new logging statements or sensitive values appear.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main visual theme and legend background fixes in the changeset.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
web/src/components/virtualized-logs-table.tsx (1)

223-223: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Preserve virtualization layout styles.

getRowStyle is spread after the react-virtualized style, so any callback returning top, height, width, or position can 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

📥 Commits

Reviewing files that changed from the base of the PR and between 79326c0 and 4ce49b3.

📒 Files selected for processing (6)
  • web/src/components/logs-metrics.css
  • web/src/components/logs-metrics.tsx
  • web/src/components/logs-table.css
  • web/src/components/logs-table.tsx
  • web/src/components/virtualized-logs-table.tsx
  • web/src/severity.ts

@zhuje

zhuje commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

/retest

zhuje added 2 commits July 28, 2026 13:54
Signed-off-by: Jenny Zhu <jenny.a.zhu@gmail.com>
Signed-off-by: Jenny Zhu <jenny.a.zhu@gmail.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@web/cypress/e2e/integration/logs-dev-page.cy.ts`:
- Around line 444-449: Update the second ExecuteQueryButton interaction in the
query test to use the queryRangeStreams alias and wait for that request to
complete before asserting histogram or button state. Remove force: true from
this click so Cypress retains its actionability checks, while preserving the
existing synchronized first query flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: d7c1586c-77ff-437b-baa1-dcc02bc4e2d6

📥 Commits

Reviewing files that changed from the base of the PR and between a222d72 and 8a4ca1b.

📒 Files selected for processing (1)
  • web/cypress/e2e/integration/logs-dev-page.cy.ts

Comment thread web/cypress/e2e/integration/logs-dev-page.cy.ts
@zhuje
zhuje force-pushed the ou1416-ou1415-fix-histogram-n-legend-color-themes branch from 78379ad to 8a4ca1b Compare July 28, 2026 21:46
@openshift-ci

openshift-ci Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@zhuje: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions 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.

@PeterYurkovich

Copy link
Copy Markdown
Contributor

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 29, 2026

const getSeverityClass = (severity: string) => {
return severity ? `lv-plugin__table__severity-${severity}` : '';
const getRowSeverityStyle = (severity: string): CSSProperties => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in this file aren't needed. We can just have the function live in virtualized-log-table.tsx and not need to pass it in as a prop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants