Skip to content

简化登录入口并增加账号余额与充值 - #249

Merged
ganisback merged 2 commits into
mainfrom
feat/248-account-navigation
Nov 13, 2026
Merged

ganisback merged 2 commits into
mainfrom
feat/248-account-navigation

Conversation

@ganisback

@ganisback ganisback commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #248.

  • 将登录移到导航底部,登录后提供用户菜单和账号信息;移除设置页旧登录区域,帮助改为设置页的「使用文档」。
  • 自动记住社区及配套 Server / AI Gateway 地址;Web 和 CLI 切换地址时清理对应旧凭据,重新登录或退出时清除旧手动 Key,修复聊天 401。「恢复默认设置」保留当前社区及登录状态。
  • 账号信息增加余额、刷新和当前社区充值入口,从充值页返回后自动刷新余额;查询失败显示不可用,避免误报为零余额。
  • 侧栏、Chat 和 AIApps 共享账号状态及请求,自动刷新间隔为 30 秒;登录轮询、手动重试和配置变更即时刷新。

验证:前端构建和 129 项测试、CLI 与后端 server 测试、golangci-lint,以及 17 组浏览器交互检查通过。浏览器检查使用本次构建及 API fixtures,覆盖切窗去重、登录轮询、社区记忆、余额和中英文恢复默认提示。

站点核实结果已写入配置文档。龙数站当前 TLS 不可达,保留已有映射待核实;线上端侧接口返回 404 的情况已改为明确提示接口缺失,仍需网关端部署对应接口。

Move sign-in and account actions into the sidebar, with balance and recharge.
Persist community choices and reset stale cloud credentials on account changes.

Refs #248.
@ganisback
ganisback requested a review from apapi November 13, 2026 07:46

@apapi apapi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

提交 3 条 [P1] finding(未发现 P0)。

本地验证:go build ./...、相关 go test、tsc --noEmit、vitest(122 项)、vite build、改动文件 gofmt 均通过;新默认网关 https://opencsg.com/aigateway/v1/models 线上返回 200,充值页路径存在。另:internal/server 首次全量运行出现过 1 次未复现的失败(随后两次全量通过),建议 CI 关注是否 flaky。

Comment thread docs/guides/configuration.md Resolved
Comment thread web/src/components/SidebarAccount.tsx Resolved
Comment thread web/src/pages/Settings.tsx Resolved
@ganisback
ganisback merged commit 3d9a51b into main Nov 13, 2026
4 checks passed
@ganisback
ganisback deleted the feat/248-account-navigation branch November 13, 2026 12:34
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