Merged
Conversation
…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.添加node版本使用说明
2. Optimized the issue of multiple calls to the list interface during initialization.
DavdGao
reviewed
Nov 18, 2025
Member
DavdGao
left a comment
There was a problem hiding this comment.
- Plz solve the conflict in this PR
- Remove the dist directory
- Please see inline comments
There was a problem hiding this comment.
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
getProjectsendpoint 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.
2. Fixed table height issues. 3. Added internationalized text.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
List