You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement light mode and theme toggle functionality (#406)
* feat: implement light mode and theme toggle functionality
- Added light mode CSS variables to globals.css for improved UI flexibility.
- Introduced ThemeProvider context to manage theme state across the application.
- Integrated ThemeToggle component for users to switch between light and dark modes.
- Updated layout and components to support theme changes, ensuring consistent styling.
- Enhanced GraphTemplateBuilder and GraphVisualization components to reflect theme changes.
These changes enhance user experience by providing a customizable interface that adapts to user preferences.
auth: @nk-ag
* fix: update execution_summary initialization in get_graph_structure.py
- Modified the initialization of execution_summary to use a dictionary comprehension that sets the status values from StateStatusEnum to 0. This change ensures that the execution summary accurately reflects the initial state of all statuses.
This update improves the clarity and correctness of the graph structure's execution summary.
* Update dashboard/src/components/GraphTemplateDetail.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update dashboard/src/components/GraphTemplateDetail.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* feat: enhance theme management with automatic theme detection and toggle functionality
- Added a script in the layout to automatically apply the user's preferred theme from localStorage or system settings.
- Refactored ThemeToggle component to use setTheme for toggling between light and dark modes.
- Updated ThemeContext to initialize theme based on the applied class from the document, ensuring consistent theme application.
- Prevented rendering of children in ThemeProvider until the theme is mounted to avoid hydration issues.
These changes improve user experience by providing a seamless theme management system that adapts to user preferences.
* feat: add close button to GraphTemplateDetail component
- Introduced a close button in the GraphTemplateDetail component to enhance user interaction and allow users to easily dismiss the modal.
- The button utilizes a ghost variant for a subtle appearance, improving the overall UI experience.
This addition improves usability by providing a clear method for closing the graph template detail view.
* fix: improve theme handling and back navigation logic
- Ensured that duplicate theme classes are removed from the document element to prevent conflicts.
- Enhanced the back navigation logic in the GraphPage component to handle cases where the window is opened from an external link, providing a fallback to router.back() for server-side rendering.
- Updated ThemeProvider to initialize with the dark theme and set the mounted state correctly, improving hydration consistency.
These changes enhance user experience by ensuring proper theme application and navigation behavior.
* feat: add responsive logo component with theme-based image selection
- Introduced a new Logo component that dynamically selects the logo image based on the current theme (light or dark).
- Replaced the static image in the Dashboard component with the new Logo component for improved theme consistency.
- Added a new dark logo image to the public assets.
These changes enhance the visual consistency of the application by ensuring the appropriate logo is displayed according to the user's theme preference.
---------
Co-authored-by: NiveditJain <nivedit@aikin.club>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
0 commit comments