Skip to content

Update table#26

Merged
DavdGao merged 45 commits intoagentscope-ai:mainfrom
sunpenghui1012:update_table
Dec 17, 2025
Merged

Update table#26
DavdGao merged 45 commits intoagentscope-ai:mainfrom
sunpenghui1012:update_table

Conversation

@sunpenghui1012
Copy link
Copy Markdown
Collaborator

List

  1. Supports keyword search
  2. Supports paging and sorting

sunpenghui1012 and others added 23 commits October 23, 2025 17:49
…able_backend

# Conflicts:
#	packages/client/src/components/chat/AppChatComponent/index.tsx
#	packages/client/src/context/EvaluationRoomContext.tsx
#	packages/client/src/context/FridaySettingRoomContext.tsx
feat(server): Add get request to support getProjects from the backend
2.改造project列表Table组件;
2.部分代码逻辑优化;
2. 列表数据支持后端筛选/排序/分页;
3. 支持轮训列表数据,无体感数据轮训更新;
2. Optimized the issue of multiple calls to the list interface during initialization.
@DavdGao DavdGao linked an issue Nov 17, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Member

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

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

  1. Plz solve the conflict in this PR
  2. Remove the dist directory
  3. Please see inline comments

Comment thread packages/client/src/components/tables/AsTable/README.md Outdated
Comment thread packages/client/src/pages/DashboardPage/ProjectPage/index.tsx Outdated
Comment thread packages/client/src/utils/common.ts Outdated
Comment thread packages/client/env.example Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds server-side pagination, sorting, and keyword search functionality to the project list table. The implementation refactors the data flow from Socket.IO-based real-time updates to tRPC-based on-demand queries with polling for updates.

Key Changes:

  • Introduces new table request/response schemas with validation for pagination, sorting, and filtering
  • Implements backend getProjects endpoint with database query aggregation
  • Refactors frontend to use tRPC client with polling instead of Socket.IO room updates

Reviewed Changes

Copilot reviewed 29 out of 34 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
packages/shared/src/types/trpc.ts Adds TableRequestParamsSchema, TableData, and renames BackendResponse to ResponseBody
packages/server/src/dao/Run.ts Implements getProjects method with aggregated queries, pagination, sorting, and filtering
packages/server/src/trpc/router.ts Adds getProjects tRPC procedure with error handling
packages/client/src/context/ProjectListRoomContext.tsx Major refactor: replaces Socket.IO with tRPC, adds polling, debounced search, and table state management
packages/client/src/pages/DashboardPage/ProjectPage/index.tsx Switches from AsTable to Ant Design Table with explicit pagination and server-side sorting
packages/client/vite.config.ts Updates proxy from /api to /trpc
packages/client/src/api/trpc.ts Creates tRPC client instance
Various styling files Cleans up className syntax (quotes consistency)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/shared/src/types/trpc.ts
Comment thread packages/server/src/dao/Run.ts
Comment thread packages/server/src/dao/Run.ts
Comment thread packages/server/src/dao/Run.ts
Comment thread packages/client/src/context/ProjectListRoomContext.tsx Outdated
Comment thread packages/client/src/context/ProjectListRoomContext.tsx Outdated
Comment thread packages/client/src/pages/DashboardPage/ProjectPage/index.tsx Outdated
Comment thread packages/server/src/trpc/router.ts
Comment thread packages/client/src/utils/common.ts Outdated
@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Dec 2, 2025

CLA assistant check
All committers have signed the CLA.

2. Fixed table height issues.
3. Added internationalized text.
Copy link
Copy Markdown
Member

@DavdGao DavdGao left a comment

Choose a reason for hiding this comment

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

lgtm

@DavdGao DavdGao merged commit 59bea81 into agentscope-ai:main Dec 17, 2025
2 checks passed
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.

feat: Support pagination loading of data in ASTable component

3 participants