Skip to content

💄: Configure all component to be compatible with the ArgoCD dark mode #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 24, 2025

Conversation

xunleii
Copy link
Contributor

@xunleii xunleii commented May 24, 2025

No description provided.

@xunleii xunleii requested a review from Copilot May 24, 2025 14:44
Copy link

@Copilot 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 PR updates several Storybook stories to include dark mode variants for improved compatibility with ArgoCD’s dark mode, and it also revises the Storybook preview configuration.

  • Added dark mode story variants across multiple components (StatusPanel, StateScreen, IconStatusSync, IconStatusHealth, ApplicationMapNode, ApplicationMapNavigationControls, ApplicationMap).
  • Updated the Storybook preview configuration by introducing a new preview.tsx file and removing the older preview.ts file.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/components/StatusPanel.stories.tsx Added dark mode variants for StatusPanel stories.
src/components/StateScreen.stories.tsx Renamed “Basic” to “Default” and added corresponding dark mode variant.
src/components/IconStatusSync.stories.tsx Introduced new dark mode variants for sync status stories.
src/components/IconStatusHealth.stories.tsx Added dark mode variants for health status stories.
src/components/ApplicationMapNode.stories.tsx Added dark mode variant for ApplicationMapNode story.
src/components/ApplicationMapNavigationControls.stories.tsx Renamed story to “Default” and added a dark mode variant.
src/components/ApplicationMap.stories.tsx Added dark mode variants for default, complex topology, and selection stories.
.storybook/preview.tsx New preview configuration supporting dark mode through a withColorScheme decorator.
.storybook/preview.ts Removed outdated preview configuration.

@xunleii xunleii force-pushed the feat/add-dark-mode branch 2 times, most recently from 0b2b332 to 9481aaf Compare May 24, 2025 16:02
xunleii added 6 commits May 24, 2025 19:17
The MiniMap is not so much usefull and is very tricky to configure the dark-mode without chaging the react-flow color mode

Signed-off-by: Alexandre Nicolaie <[email protected]>
Refactored the ApplicationMapNode component to align with ArgoCD styling conventions. Updated the associated story to ensure the ApplicationSet icon and node kind text are rendered correctly.

Signed-off-by: Alexandre Nicolaie <[email protected]>
@xunleii xunleii force-pushed the feat/add-dark-mode branch from 54c43aa to aca42b8 Compare May 24, 2025 17:17
@xunleii xunleii requested a review from Copilot May 24, 2025 17:17
Copy link

@Copilot 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 PR updates the ArgoCD extension to support dark mode across all components by refining styles and adding dedicated dark mode story variants. Key changes include:

  • Updating SCSS variables and restructuring styles for the node icons and navigation panels.
  • Replacing library-based control components with custom markup in ApplicationMapNavigationControls.
  • Adding dark mode story variants and renaming stories consistently across multiple components.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/styles/index.scss Revised color variables and removed deprecated control and node icon styles
src/index.tsx Added an additional class for improved dark mode styling
src/components/*.{stories,tsx} Added/upgraded dark mode story variants and updated component markup accordingly
src/components/ApplicationMapNavigationControls.tsx Replaced Panel/ControlButton with custom markup for navigation controls
src/components/ApplicationMapNode.tsx & .stories.tsx Updated node icon markup to align with the new dark mode design
.storybook/preview.tsx & .storybook/preview.ts Transitioned to a new preview configuration that supports both light and dark themes

@xunleii xunleii merged commit 9e06f19 into main May 24, 2025
6 checks passed
@xunleii xunleii deleted the feat/add-dark-mode branch May 24, 2025 17:32
@xunleii xunleii restored the feat/add-dark-mode branch May 24, 2025 17:33
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.

1 participant