Skip to content

Conversation

@pasqualevitiello
Copy link
Contributor

@pasqualevitiello pasqualevitiello commented Dec 18, 2025

Summary by cubic

Moves all Radix/shadcn migration guidance into a dedicated page and removes duplicated comparison content from component docs. Clarifies the Base UI positioning on the overview and links to the new migration guide. Addresses CUI-96.

  • Migration

    • Added a comprehensive Radix/shadcn → coss ui migration guide at docs/radix-shadcn-migration.mdx and linked it from the Overview.
    • Added the page to docs navigation (meta.json) and llms.txt.
    • Cleaned up component docs by removing per-component “Comparing with Radix/shadcn” sections; the new page is the single source of truth.
  • Bug Fixes

    • Corrected docs diff highlight color token in globals.css to use --color-destructive.

Written for commit 2a870f2. Summary will update automatically on new commits.

@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
coss-com Ready Ready Preview, Comment Dec 18, 2025 2:06pm
coss-com-ui Ready Ready Preview, Comment Dec 18, 2025 2:06pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
coss-com-origin Skipped Skipped Dec 18, 2025 2:06pm

@vercel vercel bot temporarily deployed to Preview – coss-com-origin December 18, 2025 13:58 Inactive
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 34 files

Prompt for AI agents (all 2 issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/ui/content/docs/(root)/radix-shadcn-migration.mdx">

<violation number="1" location="apps/ui/content/docs/(root)/radix-shadcn-migration.mdx:104">
P3: Grammar error: &quot;a error&quot; should be &quot;an error&quot;.</violation>

<violation number="2" location="apps/ui/content/docs/(root)/radix-shadcn-migration.mdx:656">
P1: The `items` variable is not in scope. It&#39;s passed as a prop to `&lt;Select&gt;` but referenced directly in the JSX children. Define `items` as a constant before the JSX, then reference it in both places.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

| `info` | Displays an info alert (blue) |
| `success` | Displays a success alert (green) |
| `warning` | Displays a warning alert (yellow) |
| `error` | Displays a error alert (red) |
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Grammar error: "a error" should be "an error".

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/ui/content/docs/(root)/radix-shadcn-migration.mdx, line 104:

<comment>Grammar error: &quot;a error&quot; should be &quot;an error&quot;.</comment>

<file context>
@@ -0,0 +1,953 @@
+| `info`    | Displays an info alert (blue)     |
+| `success` | Displays a success alert (green)  |
+| `warning` | Displays a warning alert (yellow) |
+| `error`   | Displays a error alert (red)      |
+
+Ensure you have the following variables imported in your CSS file:
</file context>

✅ Addressed in 2a870f2

<SelectValue />
</SelectTrigger>
<SelectPopup alignItemWithTrigger={false}>
{items.map((item) => (
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: The items variable is not in scope. It's passed as a prop to <Select> but referenced directly in the JSX children. Define items as a constant before the JSX, then reference it in both places.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/ui/content/docs/(root)/radix-shadcn-migration.mdx, line 656:

<comment>The `items` variable is not in scope. It&#39;s passed as a prop to `&lt;Select&gt;` but referenced directly in the JSX children. Define `items` as a constant before the JSX, then reference it in both places.</comment>

<file context>
@@ -0,0 +1,953 @@
+    &lt;SelectValue /&gt;
+  &lt;/SelectTrigger&gt;
+  &lt;SelectPopup alignItemWithTrigger={false}&gt;
+    {items.map((item) =&gt; (
+      &lt;SelectItem key={item.value} value={item}&gt;
+        {item.label}
</file context>
Fix with Cubic

Copy link
Contributor

@sean-brydon sean-brydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is super nice to just feed to LLMs now! Nice job

@sean-brydon sean-brydon merged commit d2c79ed into main Dec 19, 2025
11 checks passed
@sean-brydon sean-brydon deleted the pasquale/cui-96-move-shadcnradix-instructions-to-a-separate-page branch December 19, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants