Files
Nexus/docs/changelog/2026-06-09-push-category-full-list.md
T
Nexus Agent c366ed5adc fix(push): load full server list for accurate category selection
Push page previously fetched only 200 servers by ID order, so large categories
like 机器人 showed a handful of machines. Also decouple unset-path panel from
the main category chip filter and align category labels with the servers page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 08:12:50 +08:00

1.2 KiB

2026-06-09 — 推送页按分类全量加载 + 未设路径区独立筛选

变更摘要

修复「未设路径服务器改分类后推送不准」:推送页拉取全部子机(不再仅前 200 台);未设路径区块不再继承顶部分类 chip 过滤。

动机

  • 推送页 usePushServers 只请求 per_page=200,舰队 >200 台时按分类勾选会漏机或计数错误
  • 未设路径列表共用 listQueryParams()category,批量改分类后机器从面板消失,用户误以为未生效,推送页分类也与预期不一致

涉及文件

  • frontend/src/composables/push/usePushServers.tsfetchPagePerPage(..., -1) 全量;分类 key 与服务器页对齐
  • frontend/src/components/push/PushServerGrid.vue — 展示 label(未分类)
  • frontend/src/pages/ServersPage.vueunsetListQueryParams();批量任务后 invalidateCachedQuery

迁移 / 重启

无。前端 build 部署即可。

验证

cd frontend && npm run type-check && npx vite build
# 推送页:某分类台数应与服务器页分类 chip 一致(>200 台时尤其)
# 未设路径区:顶部分类筛选时仍显示全部未设路径机器;改分类后仍留在列表直至配置路径