-
Notifications
You must be signed in to change notification settings - Fork 0
💄: 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
Conversation
There was a problem hiding this 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. |
0b2b332
to
9481aaf
Compare
Signed-off-by: Alexandre Nicolaie <[email protected]>
Signed-off-by: Alexandre Nicolaie <[email protected]>
Signed-off-by: Alexandre Nicolaie <[email protected]>
Signed-off-by: Alexandre Nicolaie <[email protected]>
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]>
54c43aa
to
aca42b8
Compare
There was a problem hiding this 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 |
No description provided.