style: add color to dashboard workflow stats cards#314
style: add color to dashboard workflow stats cards#314jamescmartinez merged 3 commits intoopenworkflowdev:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the visual design of workflow statistics cards by adding semantic color coding to differentiate between different workflow states. Each status card now has a subtle colored background and ring border that matches its semantic meaning (e.g., warning for pending, success for completed, destructive for failed).
Changes:
- Added optional
classproperty to workflow stats array with semantic color classes for background and ring borders - Refactored className construction to use the
cnutility instead of template strings - Removed deprecated border classes in favor of ring classes that align with the Card component's defaults
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@jamescmartinez just wondering if you had the time to take a look here at this PR, or if it's something you wish not follow through. |
commit: |
|
hey @Nic13Gamer, thanks for the ping, just took a look I agree color can make the stats faster to scan, but my main concern is that coloring every card background makes the row feel a bit "rainbow" so all states get similar visual weight. That said, we've since trimmed these stats to just show five statuses: (remove total) What do you think of that mapping? |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
thanks @Nic13Gamer ! |


Summary
This PR adds some color to the background and border of the workflow stat cards. I think it makes it faster/easier to skim through and find the info you need.
Changes
classwith color class-names to stats array in<WorkflowStats />Observations
I also tried adding color to the icons, but found it too much, let me know if you would like it though.
Also removed the
border-color classes from the card. Apparently shadcn/ui now usesring-for the card primitive, I don't know why not useborderthough, to be honest.