Skip to content

🏗 refactor(svg): consolidate raw hex colors with chartColors.ts constants#14043

Merged
kubestellar-hive[bot] merged 1 commit into
mainfrom
architect/consolidate-svg-hex-colors
May 16, 2026
Merged

🏗 refactor(svg): consolidate raw hex colors with chartColors.ts constants#14043
kubestellar-hive[bot] merged 1 commit into
mainfrom
architect/consolidate-svg-hex-colors

Conversation

@kubestellar-hive
Copy link
Copy Markdown
Contributor

Summary

Consolidate 53 raw hex color literals across 5 mission-control SVG components to use named imports from lib/theme/chartColors.ts.

Changes

  • web/src/lib/theme/chartColors.ts — Add 22 new named constants: slate palette (200-950), provider brand colors (EKS, GKE, AKS, etc.), accent colors (indigo-200/400, purple-300, orange-200, emerald-300/900, green-400, sky-500), plus WHITE/BLACK
  • BlueprintDefs.tsx — Replace 8 raw hex → named constants
  • ClusterZone.tsx — Replace 21 raw hex → named constants (COLORS + PROVIDER_COLORS objects)
  • DependencyPath.tsx — Replace 8 raw hex → named constants
  • PhaseTimeline.tsx — Replace 9 raw hex → named constants
  • ProjectNode.tsx — Replace 10 raw hex → named constants

Zero visual changes

Every named constant maps to the exact same hex value. This is a pure mechanical extraction for maintainability and theme consistency.

Fixes #14041

Consolidate 53 raw hex color literals across 5 mission-control SVG
components to use named imports from lib/theme/chartColors.ts.

- Add slate, provider brand, and accent color constants to chartColors.ts
- Update BlueprintDefs, ClusterZone, DependencyPath, PhaseTimeline, ProjectNode
- Zero visual changes — exact same hex values via named constants

Fixes #14041

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: kubestellar-architect[bot] <kubestellar-architect[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 16, 2026 06:10
@kubestellar-hive kubestellar-hive Bot added architect Automated architect agent changes agent/architect Work by the architect agent hive/hive-open-doe Hive instance hive-open-doe labels May 16, 2026
Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label May 16, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 16, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit d4894b9
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a080a639fe59200093a229c
😎 Deploy Preview https://deploy-preview-14043.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mikespreitzer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@github-actions github-actions Bot added the ai-generated Pull request generated by AI label May 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 16, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ Test Coverage Check

All new source files in this PR have corresponding test files.

Checked web/src/hooks/ and web/src/components/ against origin/main.

@kubestellar-hive kubestellar-hive Bot merged commit 799a411 into main May 16, 2026
40 of 41 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the architect/consolidate-svg-hex-colors branch May 16, 2026 06:25
@github-actions
Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@github-actions
Copy link
Copy Markdown
Contributor

❌ Post-Merge Verification: failed

Commit: 799a41151117dff071e10fef08e34773bf8593d8
Specs run: smoke.spec.ts
Report: https://github.com/kubestellar/console/actions/runs/25954941545

@github-actions
Copy link
Copy Markdown
Contributor

Post-merge build verification passed

Both Go and frontend builds compiled successfully against merge commit 799a41151117dff071e10fef08e34773bf8593d8.

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

Labels

agent/architect Work by the architect agent ai-generated Pull request generated by AI architect Automated architect agent changes copilot dco-signoff: yes Indicates the PR's author has signed the DCO. hive/hive-open-doe Hive instance hive-open-doe size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tier/2-standard

1 participant