feat(ui): add dark theme#843
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a light/dark theme toggle to the Collector UI and wires themed rendering into JSON viewers so the UI can support a dark theme mode.
Changes:
- Introduces a
ThemeProviderthat applieslight/darkclasses and persists preference inlocalStorage. - Adds a
ModeTogglecontrol in the sidebar and wraps the app with the theme provider. - Refactors JSON rendering to use a themed
CustomJsonViewwrapper and updates call sites.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| kof-operator/webapp/collector/src/components/shared/tabs/RawJsonTab.tsx | Refactors JSON view into a themed wrapper component and adds optional text shortening. |
| kof-operator/webapp/collector/src/components/shared/ThemeProvider.tsx | New theme context/provider that persists theme and applies root classes. |
| kof-operator/webapp/collector/src/components/shared/ModeToggle.tsx | New icon-only button to toggle between light/dark themes. |
| kof-operator/webapp/collector/src/components/shared/JsonViewCard.tsx | Switches JSON card rendering to use the themed JSON view wrapper. |
| kof-operator/webapp/collector/src/components/pages/victoriaPage/victoria-details/VictoriaDetailsPage.tsx | Updates raw JSON tab to use the new JSON view wrapper. |
| kof-operator/webapp/collector/src/components/pages/dashboards/DetailTabs.tsx | Updates raw JSON detail tab to use the new JSON view wrapper. |
| kof-operator/webapp/collector/src/components/pages/collectorPage/components/collector-details/CollectorContent.tsx | Updates collector raw JSON rendering to use the new JSON view wrapper. |
| kof-operator/webapp/collector/src/components/features/TargetsList.tsx | Uses the new JSON view wrapper for per-target JSON expansion rows. |
| kof-operator/webapp/collector/src/components/features/MainPage.tsx | Removes hardcoded white background to allow theme-controlled backgrounds. |
| kof-operator/webapp/collector/src/components/features/AppSidebar.tsx | Adds the theme mode toggle to the sidebar layout. |
| kof-operator/webapp/collector/src/App.tsx | Wraps the app in ThemeProvider so theme state is available globally. |
| kof-operator/webapp/collector/package.json | Adds a new dependency entry related to Radix UI. |
| kof-operator/webapp/collector/package-lock.json | Locks newly added dependency tree. |
Files not reviewed (1)
- kof-operator/webapp/collector/package-lock.json: Language not supported
You can also share your feedback on Copilot code review. Take the survey.
gmlexx
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.