Skip to content

feat(webui): 账号列表添加搜索过滤功能#61

Merged
CJackHwang merged 18 commits intoCJackHwang:devfrom
ronghuaxueleng:main
Feb 28, 2026
Merged

feat(webui): 账号列表添加搜索过滤功能#61
CJackHwang merged 18 commits intoCJackHwang:devfrom
ronghuaxueleng:main

Conversation

@ronghuaxueleng
Copy link
Contributor

Summary

  • 后端 GET /admin/accounts 新增 ?q= 查询参数,大小写不敏感匹配账号的 identifier / email / mobile,totaltotal_pages 均反映过滤后数量
  • 前端搜索框内嵌于标题栏按钮行("测试全部"按钮前),输入时自动重置到第 1 页
  • 无匹配结果时显示专属提示文案(中英文双语)

Test plan

  • 账号管理页面显示搜索框(位于"测试全部"按钮前)
  • 输入关键词,列表实时过滤并重置到第 1 页
  • 分页总数正确反映过滤后账号数
  • 清空搜索框,恢复全量列表
  • 无匹配结果时显示"未找到匹配的账号"

🤖 Generated with Claude Code

root and others added 17 commits February 2, 2026 20:23
- 添加 docker/Dockerfile 多阶段构建(前端+后端)
- 添加 docker-compose.yml 支持阿里云镜像部署
- 添加 .github/workflows/release.yml 自动发布到阿里云
- 添加 .dockerignore 优化构建
- 添加 VERSION 版本管理文件
- 添加 start.mjs 本地开发启动脚本
- 账号列表支持分页(每页10条,倒序显示)
- API 密钥列表支持展开/关闭
- Account 结构加 TestStatus 字段,测试后写入 config.json
- listAccounts 接口返回 test_status,前端根据结果显示红/绿/黄状态点
- 分页选择器支持 10/20/50/100/500/1000/2000/5000
- 点击账号名自动复制到剪贴板,hover 显示复制图标,复制后显示绿色对勾
- 后端 GET /admin/accounts 支持 ?q= 参数,大小写不敏感匹配 identifier/email/mobile
- 前端搜索框内嵌于标题栏按钮行(测试全部按钮前)
- 搜索时重置到第 1 页,分页 total 反映过滤后数量
- 无匹配结果时显示专属提示文案(中英文)
@vercel
Copy link

vercel bot commented Feb 28, 2026

Someone is attempting to deploy a commit to the cjack's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d97b86e0ee

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use the repository Dockerfile path in release build

The release job points docker/build-push-action at ./docker/Dockerfile, but this repository only contains Dockerfile at the root, so the image build step will fail every time the workflow runs. This blocks both release pipelines because the same path is used here and in .github/workflows/release-dockerhub.yml.

Useful? React with 👍 / 👎.

function waitForProcesses() {
return new Promise(resolve => {
const check = setInterval(() => {
if (processes.filter(p => !p.killed).length === 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Detect child-process exit correctly in wait loop

waitForProcesses checks !p.killed to decide whether children are still running, but ChildProcess.killed is only set when kill() is called, not when a process exits on its own. If go run/npm run dev crashes or exits early, this loop never resolves and the script hangs indefinitely instead of returning control.

Useful? React with 👍 / 👎.

测试接口不再仅验证会话创建,改为始终发送「你是谁?」
走完整 completion 路径,确保被封禁账号能被正确识别为失败。
@vercel
Copy link

vercel bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ds2api Ready Ready Preview, Comment Feb 28, 2026 5:11am

@CJackHwang
Copy link
Owner

CJackHwang commented Feb 28, 2026

这动作有点大啊。。
先把codex的review建议解决了先。对于dockerhub和docker file改动还要好好斟酌一下

(我来改吧)

@CJackHwang CJackHwang merged commit 3725694 into CJackHwang:dev Feb 28, 2026
2 checks passed
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