Skip to content

Differentiate radix components from custom scicomp components part 1 noah - #43

Merged
pcsmomo merged 5 commits into
mainfrom
differentiate-radix-components-from-custom-scicomp-components-part-1-noah
Nov 11, 2026
Merged

pcsmomo merged 5 commits into
mainfrom
differentiate-radix-components-from-custom-scicomp-components-part-1-noah

Conversation

@pcsmomo

@pcsmomo pcsmomo commented Nov 6, 2026

Copy link
Copy Markdown
Contributor
  • Adds a @australiansynchrotron/sci-comp-ui/shadcn entry (src/shadcn.ts) for components derived from shadcn/ui (Alert, AlertDialog, Badge, Button, Checkbox, Dialog, Form, etc.). cn is exported from both entries.
  • Removes those components from the root entry (src/ui/index.ts). Custom components stay at the root.
  • Docs site: removes demo pages for unmodified shadcn components and points readers to ui.shadcn.com. Badge, Button and Form keep their pages because they differ from upstream.
  • Promoted Periodic Table to components.
image

chanmSC and others added 4 commits October 29, 2026 22:50
for starter, split those components that is being used in xas web ui
project.

BREAKING CHANGE: shadcn-derived components (Accordion, Alert,
AlertDialog, Badge, Button, Card, Checkbox, Collapsible, Dialog, Form,
Input, Label, Popover, Progress, RadioGroup, Select, Separator,
Sidebar, Switch, Toaster, Tooltip) are no longer exported from the
root entry. Import them from "@australiansynchrotron/sci-comp-ui/shadcn"
instead. `cn` is still exported from both entries.
@pcsmomo
pcsmomo requested review from chanmSC and stmudie November 6, 2026 09:41
Comment thread README.md Outdated
import { StepColumns } from "@australiansynchrotron/sci-comp-ui";
```

Components derived from shadcn/ui (Button, Card, Dialog, Form, Select, Sidebar, Tooltip, …) come from the `/shadcn` subpath; see `src/shadcn.ts` for the full list. `cn` is available from both. Usage docs for these are on [ui.shadcn.com](https://ui.shadcn.com/docs/components); our copies are a snapshot and can differ from upstream, so check our docs site for Button, Badge and Form.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would probably rephrased the start from Components derived from shadcn/ui to sth like Unaltered components from shadcn/ui.

Since derived would mean we changed it based on the original (like it's a derivative of the original).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch! derived does read as though we changed all of them, and we didn't. Unaltered isn't quite right either, though. Most are straight copies, but Button and Badge have our success/warning variants (plus loading state on Button). Form is unchanged but uses the older FormField API, so upstream's current docs don't match it. I would probably reword it to "Components from shadcn/ui" and name those three exceptions, so we know when to look at our docs instead of upstream.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yep! That sounds g!

Comment thread src/docs/components/app-sidebar.tsx Resolved
@chanmSC

chanmSC commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Also, I think you can PR your branch directly into main 👍

I created the differentiate-radix-components-from-custom-scicomp-components branch before our meeting, but I think our 5 step plan is very neatly separated, and this PR covers both step 1 + 2, so I think I can delete this big feature branch 👍

The other steps should be in their own PRs to merge into main.

@pcsmomo
pcsmomo changed the base branch from differentiate-radix-components-from-custom-scicomp-components to main November 11, 2026 00:31
@pcsmomo
pcsmomo requested a review from a team November 11, 2026 00:31
@pcsmomo
pcsmomo requested a review from chanmSC November 11, 2026 01:02
@pcsmomo
pcsmomo merged commit 0da1291 into main Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants