Skip to content

feat: paginate dashboard clients and proxies via API v2#5354

Merged
fatedier merged 1 commit into
devfrom
discuss/api-pagination-design
Jun 3, 2026
Merged

feat: paginate dashboard clients and proxies via API v2#5354
fatedier merged 1 commit into
devfrom
discuss/api-pagination-design

Conversation

@fatedier

@fatedier fatedier commented Jun 2, 2026

Copy link
Copy Markdown
Owner

WHY

Update Clients and Proxies views to use paginated /api/v2/clients and /api/v2/proxies endpoints instead of fetching all data at once.

  • Add V2Envelope/V2Page types and getV2 HTTP helper to api/http.ts
  • Add v2 paginated fetch functions to api/client.ts and api/proxy.ts
  • Add ClientV2Info and ProxyV2Info types for v2 API responses
  • Rewrite Clients.vue with server-side pagination, status/user search filtering, and ElPagination component
  • Rewrite Proxies.vue with client-side pagination over v2 fetches, type tabs, client dropdown filter, and search across proxy fields
  • Default page size 10, selectable sizes [10, 20, 50, 100]

Comment thread web/frps/src/views/Proxies.vue
@kilo-code-bot

kilo-code-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0

Fix these issues in Kilo Cloud

Issue Details (click to expand)

WARNING

File Line Issue
server/http/controller_v2.go 331 Server-side proxy search no longer matches the visible address text
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
- - None

Resolved from previous review: the web/frps/src/views/Proxies.vue fan-out search issue was addressed by moving proxy search to the v2 API query.

Files Reviewed (9 files)
  • server/http/controller_v2.go - 1 issue
  • server/http/controller_v2_test.go - 0 issues
  • web/frps/src/api/client.ts - 0 issues
  • web/frps/src/api/http.ts - 0 issues
  • web/frps/src/api/proxy.ts - 0 issues
  • web/frps/src/types/client.ts - 0 issues
  • web/frps/src/types/proxy.ts - 0 issues
  • web/frps/src/views/Clients.vue - 0 issues
  • web/frps/src/views/Proxies.vue - 0 issues

Reviewed by gpt-5.5-2026-04-23 · 773,218 tokens

Move the frps dashboard Clients and Proxies views to the paginated
/api/v2/clients and /api/v2/proxies endpoints instead of fetching all
data at once, and extend server-side proxy search so the search box
keeps working under pagination.

Frontend:
- Add V2Envelope/V2Page types and getV2 HTTP helper to api/http.ts
- Add v2 paginated fetch functions to api/client.ts and api/proxy.ts
- Add ClientV2Info and ProxyV2Info types for v2 API responses
- Rewrite Clients.vue with server-side pagination, status/user search
  filtering, and ElPagination component
- Rewrite Proxies.vue with server-side pagination, type tabs, client
  dropdown filter, and a search box that passes q to the API
- Default page size 10, selectable sizes [10, 20, 50, 100]

Backend:
- Extend /api/v2/proxies q matching to also cover online proxy spec
  fields: TCP/UDP remotePort and HTTP/HTTPS/TCPMux customDomains and
  subdomain, so dashboard search no longer needs to scan every page
- Add controller_v2 tests for the new spec-field matching
@fatedier fatedier force-pushed the discuss/api-pagination-design branch from 2b1f1da to 2263d2e Compare June 3, 2026 05:59
@fatedier fatedier changed the title feat(ui): consume dashboard API v2 pagination in frontend feat: paginate dashboard clients and proxies via API v2 Jun 3, 2026
Comment thread server/http/controller_v2.go
@fatedier fatedier merged commit 9bde0b0 into dev Jun 3, 2026
3 checks passed
@fatedier fatedier deleted the discuss/api-pagination-design branch June 3, 2026 06:08
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.

1 participant