-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate RestTable from MobX-RESTful-table to shadcn registry #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: TechQuery <[email protected]>
Co-authored-by: TechQuery <[email protected]>
TechQuery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
所有官方组件用 pnpx shadcn-helper add 安装,原始代码不要提交上来,全部 Git ignore。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
所有迁移源仓库的内部组件都注册为本仓库的独立组件,在 registry 中注册后对外使用。
TechQuery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot 把所有没 resolve 的 comment 都重新处理一遍,如有报错,请在评论中明示。
Migrates the RestTable component from MobX-RESTful-table to shadcn registry format per registry documentation, maintaining the original React class component architecture.
Changes
UI Components (
registry/new-york/ui/)table.tsx- shadcn table primitives (Table, TableHeader, TableBody, TableRow, TableCell, TableHead, TableFooter)checkbox.tsx- Radix UI checkbox componentspinner.tsx- Loading spinner with Lucide iconsbadge.tsx- Badge component with CVA variantsRestTable Block (
registry/new-york/blocks/rest-table/)rest-table.tsx- MobX class component with CRUD operations, pagination, row selectioncomponents/badge-bar.tsx- Multi-value displaycomponents/file-preview.tsx- File/image preview handlingcomponents/pager.tsx- Pagination controlscomponents/rest-form-modal.tsx- Modal form for create/edit operationsREADME.md- API documentation and usage examplesDependencies
@radix-ui/react-checkbox,lodash,mobx,mobx-i18n,mobx-react,mobx-react-helper,mobx-restful,web-utility@types/lodashArchitecture Preserved
Class-based component using MobX decorators (
@observer,@observable,@computed) extendingObservedComponent. No hooks introduced.Usage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/usr/local/bin/node /home/REDACTED/work/MobX-RESTful-Shadcn/MobX-RESTful-Shadcn/node_modules/.pnpm/[email protected]_@babel+[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/jest-worker/processChild.js(dns block)ui.shadcn.comcurl -s REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.