Skip to content

[WIP] Align sharing, exportOptions and pagination formats - #792

Closed
hotlong with Copilot wants to merge 1 commit into
mainfrom
copilot/align-sharing-export-options-pagination
Closed

[WIP] Align sharing, exportOptions and pagination formats#792
hotlong with Copilot wants to merge 1 commit into
mainfrom
copilot/align-sharing-export-options-pagination

Conversation

Copilot AI commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>[P2] Sharing/ExportOptions/Pagination 协议对齐</issue_title>
<issue_description>## 背景
Parent Issue: #736

三个属性存在 Spec 与 ObjectUI 的 schema 格式不兼容问题:

  1. sharing:Spec { type: personal/collaborative, lockedBy } vs ObjectUI { visibility, enabled }
  2. exportOptions:Spec string[] vs ObjectUI { formats, maxRecords, includeHeaders, fileNamePrefix }
  3. pagination.pageSizeOptions:类型已定义,需 UI 选择器

目标

  • 三个属性均通过适配层兼容两种格式
  • pageSizeOptions 渲染 page size 下拉选择器

改动范围

  • packages/types/src/objectql.ts — sharing 类型 union
  • packages/plugin-list/src/ListView.tsx — exportOptions normalize + pageSizeOptions UI
  • packages/react/src/spec-bridge/bridges/list-view.ts — sharing adapter

验收标准

  • Spec sharing format 可被正确解析
  • Spec exportOptions: ['csv', 'xlsx'] 格式可正常工作
  • pageSizeOptions 渲染下拉选择器
  • 选择 page size 后数据重新按新 size 加载
  • 所有新增代码有对应单元测试
  • pnpm test 全部通过
    </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel

vercel Bot commented Feb 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
objectui Ready Ready Preview, Comment Feb 23, 2026 0:41am
objectui-demo Ready Ready Preview, Comment Feb 23, 2026 0:41am
objectui-storybook Error Error Feb 23, 2026 0:41am

Request Review

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.

[P2] Sharing/ExportOptions/Pagination 协议对齐

2 participants