feat: migrate UI layer to coss.com/ui (Base UI)#2
Closed
devin-ai-integration[bot] wants to merge 1 commit into
Closed
feat: migrate UI layer to coss.com/ui (Base UI)#2devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Replace the Radix UI primitive layer with coss.com/ui components built on Base UI, and refresh the stack: - Migrate primitives (button, card, input, select, popover, tooltip, scroll-area, switch, command, slider, toolbar, spinner, autocomplete) - Port consumers from Radix asChild -> Base UI render prop, fix TooltipProvider delay, --anchor-width sizing, and the Command -> Autocomplete API (items + onClick) - Rebuild color-picker hue slider on Base UI slider - Drop unused radix-ui / @radix-ui/* / cmdk deps - Bundle Inter + Geist Mono via @fontsource and wire --font-sans/--font-mono - Add manualChunks + chunkSizeWarningLimit to remove the bundle warning Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
|
leaving this for later cuz it has a lot of bugs to fix |
Repository owner
locked and limited conversation to collaborators
Jun 5, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Swaps the UI primitive layer from Radix UI → coss.com/ui (shadcn-style components built on Base UI), keeping all app features (coords, geocoding, map, custom theming, i18n, widgets) intact. No app logic, state, or Rust/Tauri backend changes; version left untouched.
The bulk of the work is adapting consumers to Base UI's API, which differs from Radix:
asChild→renderprop. Radix wrapped a child; Base UI takes a JSX element onrender. Triple-nested cases (tooltip → toolbar → button) nestrender:Commandis anAutocompletealias; items are passed as an array andCommandListtakes a render function; selection moved fromonSelect→onClick. Applied totheme-selectorandlanguage-selector.--radix-popover-trigger-width→--anchor-width; dropped Radix-onlycollisionPadding/avoidCollisions.TooltipProviderdelayDuration→delay.@radix-ui/react-toolbar→ cossToolbar/ToolbarButton(edit/marker/selection toolbars).slider(@base-ui/react/slider) instead ofradix-ui.Stack cleanup:
radix-ui,@radix-ui/react-{scroll-area,select,separator,slot,toolbar},cmdk.@fontsource-variable/*(offline desktop app) and wired--font-sans/--font-monodesign tokens.build.rollupOptions.output.manualChunks(icons/vendor/motion/dnd; leaflet kept in the lazy map-panel chunk) +chunkSizeWarningLimit, eliminating the bundle-size warning.lucide-reactstays fully bundled on purpose — themes resolve their icon by name at runtime.The sonner toast wrapper already maps to the design tokens (
--popover,--border,--radius), so it's kept as-is.Verification
bun run lint,bun run vite:build(tsc + vite) pass with no warnings.bun run vite:dev): settings panel, Base UISelects, migrated Command theme selector (switched Dark → Light), language selector, and switch all render and work; console clean.Note: full app run requires the Tauri desktop bridge; the dev-server smoke test shows the expected "waiting for Tauri" sidebar state.
Link to Devin session: https://app.devin.ai/sessions/96349a14345f42beb48c8282af8425a8
Requested by: @wiktorekdev