refactor: move THEMES constant from utils to ui package#92
Merged
adelrodriguez merged 1 commit intomainfrom Feb 19, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
88a6cc0 to
4c513e7
Compare
2a87461 to
c89fe43
Compare
This was referenced Feb 19, 2026
4c513e7 to
bf14590
Compare
c89fe43 to
5f50c73
Compare
0d0edeb to
497317e
Compare
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.

Greptile Summary
Moved theme-related constants (
THEMES,Themetype, andTHEME_STORAGE_KEY) from the@init/utilspackage to the@init/uipackage, updating all imports across the codebase. This refactoring improves package organization by placing UI-specific constants with their related UI components.Changes:
packages/ui/src/constants.tsfile with theme constants./constantsexport to@init/uipackage.jsonpackages/utils/src/constants/app.tsAll imports have been correctly updated and no orphaned references remain.
Confidence Score: 5/5
Important Files Changed
./constantsexport mapping to expose the new constants fileFlowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A["@init/utils/constants"] -->|"Before: exports THEMES,<br/>Theme, THEME_STORAGE_KEY"| B["apps/app<br/>(theme validation & functions)"] A -->|Before| C["apps/desktop<br/>(main.tsx)"] A -->|Before| D["packages/ui<br/>(theme.tsx)"] E["@init/ui/constants"] -->|"After: exports THEMES,<br/>Theme, THEME_STORAGE_KEY"| B E -->|After| C E -->|After| D F["@init/utils/constants"] -->|"Still exports APP_NAME,<br/>APP_ID, I18N_COOKIE_NAME"| G["Other packages<br/>(backend, api, mobile, etc.)"] style E fill:#90EE90 style F fill:#87CEEBLast reviewed commit: 497317e