Skip to content

copyandpastecoder/claude/add-cycle-statistics-ZFjiO#174

Merged
copyandpastecoder merged 3 commits intoMasterfrom
develop
Dec 22, 2025
Merged

copyandpastecoder/claude/add-cycle-statistics-ZFjiO#174
copyandpastecoder merged 3 commits intoMasterfrom
develop

Conversation

@copyandpastecoder
Copy link
Copy Markdown
Owner

No description provided.

claude and others added 3 commits December 22, 2025 06:16
The CSS variables use oklch() format, not hsl(). Remove the hsl()
wrapper and use var(--muted-foreground) directly to avoid invalid
CSS syntax like hsl(oklch(...)).
CSS variables in this project use oklch() format, not hsl().
Wrapping with hsl() creates invalid CSS like hsl(oklch(...)),
causing bars and tooltips to render black.

Fixed:
- Bar fill colors using var(--primary)
- Tooltip backgroundColor using var(--card)
- Tooltip border using var(--border)
- COLORS arrays in stage-duration and tumbler-utilization charts
…stics-ZFjiO

Claude/add cycle statistics z fji o
Copilot AI review requested due to automatic review settings December 22, 2025 06:28
@copyandpastecoder copyandpastecoder merged commit f021a66 into Master Dec 22, 2025
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request standardizes CSS custom property usage across dashboard chart components by removing the hsl() wrapper function from CSS variable references. The changes affect chart styling including axis ticks, tooltips, and bar colors.

Key Changes

  • Updated CSS variable syntax from hsl(var(--variable)) to var(--variable) for theme-based colors
  • Applied changes consistently to tooltip styling (background and border colors) across all chart components
  • Modified axis tick colors in bar charts and primary colors in some chart elements

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
weight-by-stage-chart.tsx Updated axis tick colors and tooltip styling to use simplified CSS variable syntax
weight-by-hardness-chart.tsx Updated axis tick colors and tooltip styling to use simplified CSS variable syntax
tumbler-utilization-chart.tsx Updated primary color and tooltip styling, but inconsistent with remaining hardcoded HSL colors
stage-duration-chart.tsx Updated axis tick colors, tooltip styling, and bar fill colors across multiple chart instances, but inconsistent with remaining hardcoded HSL colors
monthly-activity-chart.tsx Updated axis tick colors, tooltip styling, and "Started" bar color, but "Completed" bar still uses hardcoded HSL

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const COLORS = [
'hsl(var(--primary))',
'var(--primary)',
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Inconsistent color format usage. The first color was updated to use var(--primary) without the hsl() wrapper, but the remaining colors (lines 14-16) still use the hsl() format directly. For consistency, either all colors should be CSS variables without hsl() wrapper, or they should all maintain the same format.

Suggested change
'var(--primary)',
'hsl(var(--primary))',

Copilot uses AI. Check for mistakes.

const COLORS = [
'hsl(var(--primary))',
'var(--primary)',
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Inconsistent color format usage. The first color was updated to use var(--primary) without the hsl() wrapper, but the remaining colors (lines 15-17) still use the hsl() format directly. For consistency, either all colors should be CSS variables without hsl() wrapper, or they should all maintain the same format.

Suggested change
'var(--primary)',
'hsl(217 91% 60%)',

Copilot uses AI. Check for mistakes.
<Legend wrapperStyle={{ fontSize: '12px' }} />
<Bar dataKey="started" name="Started" fill="hsl(var(--primary))" radius={[4, 4, 0, 0]} />
<Bar dataKey="started" name="Started" fill="var(--primary)" radius={[4, 4, 0, 0]} />
<Bar dataKey="completed" name="Completed" fill="hsl(142 76% 36%)" radius={[4, 4, 0, 0]} />
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

Inconsistent color format usage. Line 82 was updated to use var(--primary) without the hsl() wrapper, but line 83 still uses hsl(142 76% 36%) directly. For consistency, both bars should use the same color format approach.

Suggested change
<Bar dataKey="completed" name="Completed" fill="hsl(142 76% 36%)" radius={[4, 4, 0, 0]} />
<Bar dataKey="completed" name="Completed" fill="var(--primary)" radius={[4, 4, 0, 0]} />

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants