From 6aec06d1c6a7413148969dd820e2445b6df421d7 Mon Sep 17 00:00:00 2001 From: Adrian Fusco Arnejo Date: Thu, 13 Nov 2025 14:58:42 +0100 Subject: [PATCH] Add dark light mode button and missing dark classes --- frontend/RcaComponent.jsx | 32 +++++++++++++++--------------- index.html | 41 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/frontend/RcaComponent.jsx b/frontend/RcaComponent.jsx index d47631f..b18092a 100644 --- a/frontend/RcaComponent.jsx +++ b/frontend/RcaComponent.jsx @@ -5,7 +5,7 @@ import "./RcaComponent.css"; function Spinner({ last_status }) { return ( -
+
{last_status} @@ -16,12 +16,12 @@ function Spinner({ last_status }) { function Evidence({ error, source, log_url, logjuicer_url, source_map }) { return (
-
+
{source} @@ -34,7 +34,7 @@ function Evidence({ error, source, log_url, logjuicer_url, source_map }) { logjuicer
-
{error}
+
{error}
); } @@ -203,7 +203,7 @@ export function RcaComponent( {report && (
-

+

Analysis Result

{usage && ( @@ -265,7 +265,7 @@ export function RcaComponent( rootCauseIndex, ) => (
-

+

Possible Root Cause {rootCauseIndex + 1}

@@ -283,7 +283,7 @@ export function RcaComponent( {rootCause.cause}
-

Evidences

+

Evidences

    {rootCause.evidences.map((evidence, index) => (
  • @@ -303,7 +303,7 @@ export function RcaComponent( )} {report.jira_tickets && report.jira_tickets.length > 0 && ( <> -

    Related JIRA Tickets

    +

    Related JIRA Tickets

      {report.jira_tickets.map((ticket, index) => (
    • @@ -338,7 +338,7 @@ export function RcaComponent( {(jobInfo || playbooks.length > 0) && (
      -

      +

      Job Information

      @@ -361,20 +361,20 @@ export function RcaComponent( )} {playbooks.length > 0 && ( <> -

      Playbooks

      +

      Playbooks

        {playbooks.map((play, index) => ( -
      • {play}
      • +
      • {play}
      • ))}
      )} {jobInfo && jobInfo.actions && ( <> -

      Actions

      +

      Actions

        {jobInfo.actions.map((action, index) => ( -
      • {action}
      • +
      • {action}
      • ))}
      @@ -384,15 +384,15 @@ export function RcaComponent( {status.length > 0 && (
      -

      +

      Analysis Status

      - Expand + Expand
      {showStatus && (
        {status.map((msg, index) => ( -
      • {msg}
      • +
      • {msg}
      • ))}
      )} diff --git a/index.html b/index.html index 3700f9e..56bc408 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,12 @@


      +
      + +

      @@ -33,6 +39,41 @@