Skip to content
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

【Copilot.Update】Add sorting and filtering functionality to client page #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gmij
Copy link

@gmij gmij commented Jan 19, 2025

Fixes #204

Add sorting and filtering functionality to the client page for specified fields.

  • Sorting and Filtering in index.tsx

    • Add sorting functionality for the fields 应用ID, 环境, IP, 客户端名称, and 标签 in the ProTable columns.
    • Add filtering functionality for the fields 应用ID, 环境, IP, 客户端名称, and 标签 in the ProTable columns.
    • Modify the request function to pass sorting and filtering parameters to the backend API.
  • Service Update in service.ts

    • Modify the queryClients function to accept sorting and filtering parameters and pass them to the backend API.
    • Add a comment to indicate that sorting and filtering are handled on the client side.

For more details, open the Copilot Workspace session.

Fixes dotnetcore#204

Add sorting and filtering functionality to the client page for specified fields.

* **Sorting and Filtering in `index.tsx`**
  - Add sorting functionality for the fields 应用ID, 环境, IP, 客户端名称, and 标签 in the ProTable columns.
  - Add filtering functionality for the fields 应用ID, 环境, IP, 客户端名称, and 标签 in the ProTable columns.
  - Modify the `request` function to pass sorting and filtering parameters to the backend API.

* **Service Update in `service.ts`**
  - Modify the `queryClients` function to accept sorting and filtering parameters and pass them to the backend API.
  - Add a comment to indicate that sorting and filtering are handled on the client side.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dotnetcore/AgileConfig/issues/204?shareId=XXXX-XXXX-XXXX-XXXX).
@kklldog
Copy link
Collaborator

kklldog commented Jan 19, 2025

不行,这个AI写的,完全不对。sorting是在前端sorting,这个倒还好。但是filter不是这样写的。
我顺手加了2个搜索条件
#206

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.

在前端页面中的客户端页面里,加入排序和过滤的功能
2 participants