Skip to content

feat: 新增 dashboard/logs 上游筛选#162

Merged
mxyhi merged 1 commit intomainfrom
feat/dashboard-upstream-filter
Mar 10, 2026
Merged

feat: 新增 dashboard/logs 上游筛选#162
mxyhi merged 1 commit intomainfrom
feat/dashboard-upstream-filter

Conversation

@mxyhi
Copy link
Owner

@mxyhi mxyhi commented Mar 10, 2026

Summary

  • 为 dashboard 和 logs 新增按 upstream 的共享筛选,默认项文案为 全部
  • 让后端 snapshot 按 upstream_id 过滤 summary / providers / series / recent,并返回当前时间范围内的 upstream 选项
  • 为 SQLite 增加 (upstream_id, ts_ms) 索引,并补充前端交互测试、hook/API 测试与 Rust 回归测试

Testing

  • pnpm vitest run src/features/dashboard/api.test.ts src/features/dashboard/snapshot.test.tsx src/features/dashboard/DashboardPanel.test.tsx src/features/logs/LogsPanel.test.tsx
  • cargo test -p token_proxy_core proxy::dashboard::tests -- --nocapture
  • pnpm build

@mxyhi mxyhi merged commit a21c036 into main Mar 10, 2026
1 check passed
@mxyhi mxyhi deleted the feat/dashboard-upstream-filter branch March 10, 2026 06:30
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