Metrics not displaying properly

Created on 11 February 2025, about 2 months ago

When installing into Drupal CMS 1.0, the metrics are not displaying within the Analyze tab. Here is a screenshot using the AI Sentiment Analysis plugin. When I look at the AI logs, I see the scores being returned for each sentiment. And when I inspect the page I do see the scores:

<tr>
            <th scope="row" class="analyze-range-label analyze-start">-1</th>
            <td colspan="2" style="--value: 0.65;">
                <span class="analyze-data">+0.3</span>
            </td>
            <th scope="row" class="analyze-range-label analyze-end">1</th>
        </tr>

So maybe this is just a theming issue with the Gin theme that is part of Drupal CMS?

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mpotter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mpotter
  • πŸ‡ΊπŸ‡ΈUnited States mpotter
  • πŸ‡ΊπŸ‡ΈUnited States mpotter

    I found the problem.

    The CSS for the Gauge is looking at the browser's `prefers-color-scheme` which comes from the computer setting. On my Mac, I have Dark mode set as preference. But the Drupal Olivero theme is a Light theme. So the gauge text is being shown white-on-white.

    Not sure what the correct resolution of this would be. The gauges need to use the colors provided by the Drupal theme and not from the desktop or browser color theme.

Production build 0.71.5 2024