Skip to content

feat: name the account, and let a row show its models - #48

Merged
fylorn merged 1 commit into
devfrom
feat/upstream-row-identity
Sep 19, 2026
Merged

fylorn merged 1 commit into
devfrom
feat/upstream-row-identity

Conversation

@fylorn

@fylorn fylorn commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #46, from looking at the real table: a row could not say which account it was, what plan it was on, or which models it serves.

  • Account and plan. Pins core v0.8.1 (feat: say which account is signed in (v0.8.1) ThinkWatch-Core#46), whose usage call now returns the email. The page asks each ChatGPT upstream once when it opens — one answer carries the email, the plan and the quota, none of which survive a restart otherwise. The email takes the place of the address in the sub-line (it is the same URL for every ChatGPT account, and the 官方端点 badge already says where it goes); the plan sits by the name as a badge.
  • Models. The count is now a button that opens the list, fetched on demand so a page of upstreams does not pull catalogs nobody opens. Out-of-range models are counted, not listed. Hover is a filled block rather than an underline — the pointer sits exactly where an underline would be.

Checked in the isolated preview: the row, the popover (including the out-of-range note), and the account dialog's login box. pnpm typecheck, pnpm test (92), cargo fmt --check, cargo check --all-targets pass.

🤖 Generated with Claude Code

Three things the row would not say.

**Which account.** An upstream's name is whatever the user typed; with two
ChatGPT accounts nothing said which was which. Core v0.8.1 returns the
email with the usage call, and the page asks each account upstream once
when it opens — one answer that carries the email, the plan and the quota,
none of which survive a restart otherwise.

**Which plan.** It sits next to the name as a badge: it is what decides how
big the quota is.

**Which models.** The count answered "how many" and nothing else, and the
list was two clicks deep in the edit dialog. Clicking it now opens the
list, read on demand so a page of upstreams does not fetch catalogs nobody
opens. Models outside the enabled range are counted, not listed — a list
that silently dropped them would read as the whole catalog.

The address is gone from account rows: it is the same URL for every ChatGPT
account, and the 官方端点 badge beside the name already says where it goes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn merged commit f55a702 into dev Sep 19, 2026
2 checks passed
@fylorn
fylorn deleted the feat/upstream-row-identity branch September 19, 2026 10:56
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