Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

Implements RestTable component following the MobX-RESTful-table architecture but using Shadcn UI instead of Bootstrap. Updates README with component documentation and usage patterns.

Changes

RestTable Component (registry/new-york/blocks/rest-table/)

  • Full CRUD table with MobX RESTful integration
  • Multi-select via checkbox column
  • Custom column renderers (URL, email, file, badge lists)
  • Filter bar via RestForm, pagination via Pager
  • Loading states with spinner
<RestTable
  editable
  deletable
  columns={[
    {
      key: "name",
      renderHead: "Repository",
      renderBody: ({ html_url, name }) => (
        <a href={html_url}>{name}</a>
      ),
    },
    { key: "language", renderHead: "Language" },
    { key: "stargazers_count", type: "number", renderHead: "Stars" },
  ]}
  store={repositoryStore}
  translator={i18n}
  onCheck={console.log}
/>

Documentation

  • Updated README with 16-component list
  • Added installation, configuration, and usage examples
  • Aligned structure with MobX-RESTful-table README

Registry

  • Added rest-table entry with dependencies (table, checkbox, button, badge-bar, pager, rest-form, rest-form-modal)
  • Added Shadcn UI components (table, checkbox, button, badge, label, dialog, input) via CLI

Screenshot

RestTable Component

Shows table with checkboxes, action buttons (Delete/Create), column headers, and pagination controls.

Original prompt
  1. 基于 [add] FileUploader, RestForm, RestFormModal & SearchableInput components with Shadcn UI #4 的模式,用 Shadcn UI 实现 https://github.com/idea2app/MobX-RESTful-table/blob/master/source/RestTable.tsx

  2. 参考 https://github.com/idea2app/MobX-RESTful-table/blob/master/ReadMe.md 更新本项目 Read Me。

Human changes

  1. [refactor] simplify Copilot's source codes

创建自 VS Code


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 19, 2025 16:47
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement Shadcn UI for RestTable component Implement RestTable component with Shadcn UI Dec 19, 2025
Copilot AI requested a review from TechQuery December 19, 2025 16:58
@TechQuery TechQuery marked this pull request as ready for review December 19, 2025 19:55
@TechQuery TechQuery changed the title Implement RestTable component with Shadcn UI [add] REST Table component based on Shadcn UI Dec 19, 2025
@TechQuery TechQuery merged commit 559ed86 into main Dec 19, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In progress to Done in 开源项目 Dec 19, 2025
@TechQuery TechQuery deleted the copilot/implement-shadcn-ui-rest-table branch December 19, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants