♻️ refactor(styles): migrate remaining createStyles to createStaticStyles#13358
♻️ refactor(styles): migrate remaining createStyles to createStaticStyles#13358
Conversation
…yles - Replace antd-style createStyles hooks with createStaticStyles and cssVar tokens - Update MentionMenu, reactions, eval bench UI, OAuth device flow, DeviceGateway, GTD plan UI - ModelSelect: use popupMatchSelectWidth for numeric popupWidth; narrow prop to number Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@canisminor1990 @ONLY-yours - This is a style refactor migrating |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## canary #13358 +/- ##
=========================================
Coverage 66.94% 66.95%
=========================================
Files 1903 1903
Lines 153684 153675 -9
Branches 15534 17678 +2144
=========================================
- Hits 102889 102887 -2
+ Misses 50675 50668 -7
Partials 120 120
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
❤️ Great PR @Innei ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
…yles (lobehub#13358) - Replace antd-style createStyles hooks with createStaticStyles and cssVar tokens - Update MentionMenu, reactions, eval bench UI, OAuth device flow, DeviceGateway, GTD plan UI - ModelSelect: use popupMatchSelectWidth for numeric popupWidth; narrow prop to number Made-with: Cursor
💻 Change Type
🔗 Related Issue
N/A
🔀 Description of Change
Migrates the last
createStyles(hook) usages tocreateStaticStyleswithcssVartokens so styles are computed once at module load instead of every render.Touches reactions, mention menu, eval bench run/case UI, OAuth device flow auth, Electron device gateway, GTD create-plan surfaces, and
ModelSelect.ModelSelect:
@lobehub/uibase-uiSelectdoes not expose Ant Designstyles.popup; numericpopupWidthis applied viapopupMatchSelectWidth. The prop is narrowed tonumber(only call site was a numeric width).🧪 How to Test
Type-check:
bun run type-check📸 Screenshots / Videos
N/A (visual parity intended; token/cssVar mapping only)
📝 Additional Information
cssVar.colorBgElevatedfor floating surface (replacesisDarkMode-branch on tokens).PendingStatedropped unuseduseTranslation.Made with Cursor