← Back to DAGDA | Support | Source: https://github.com/avibe-bot/avibe/pull/4503
Skip to content

feat(models): test a Hub subscription Source like an API key - #4503

Merged
cyhhao merged 2 commits into
masterfrom
feat/hub-subscription-source-test
Nov 29, 2026
Merged

cyhhao merged 2 commits into
masterfrom
feat/hub-subscription-source-test

Conversation

@cyhhao

@cyhhao cyhhao commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Open the existing 测试 / Test entry on Model Hub subscription Sources (kind === 'subscription' && supply_channel === 'hub', excluding protocol === 'search' and keyless built-ins), paired with the merged backend probe guard (#4497, 42395490):

  • SourceDetailPanel.tsx: testable now includes source.kind === 'subscription' when supply_channel === 'hub' and protocol !== 'search'. Native CLI Sources (supply_channel === 'native_cli') stay unchanged (no 测试 or 立即测试 button). On quota/rate-paused Hub subscriptions, the existing quota-refresh action (刷新额度) stays beside 立即测试.
  • SourceTestDialog.tsx: Dialog behavior, model selection, reconciliation, and existing failure classification stay unchanged. Only the hint line under the title switches for source.kind === 'subscription' to settings.models.sourceTest.subscriptionHint instead of the metered-charge hint (settings.models.sourceTest.hint, unchanged for API-key Sources).
  • New copy (settings.models.sourceTest.subscriptionHint):
    • zh: 会发一次很短的请求,消耗少量订阅额度。
    • en: Sends one short request, which uses a small amount of your subscription quota.

Design Frames

Added shipped dialog frames in ui/design/frames/models/source-detail.design.tsx (ui/design: models/source-detail/hub-subscription-test), alongside the existing hub-subscription / hub-subscription-phone detail frames which now also render 测试:

  • models/source-detail/hub-subscription (720×624, healthy Hub subscription detail with both 重新登录 and 测试)
  • models/source-detail/hub-subscription-phone (390×760, healthy Hub subscription detail at 390 wide — verified visually: 重新登录, 重新拉取, 测试, and ⋯ fit cleanly on one single row with zero label truncation in both zh and en)
  • models/source-detail/hub-subscription-test (1000×600, desktop SourceTestDialog on a Hub subscription showing the quota hint)
  • models/source-detail/hub-subscription-test-phone (390×760, mobile SourceTestDialog on a Hub subscription showing the quota hint)

Hosted design shots (zh & en, light, desktop & 390):

  • Detail + dialog run (763dbf84): https://github.com/avibe-bot/avibe/actions/runs/46224111481
  • Updated zh dialog copy run (353a9aad): https://github.com/avibe-bot/avibe/actions/runs/46224717014
  • Retained PNGs (verified visually; kept permanently in _tmp/frames-for-product/4503/):
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/zh/hub-subscription.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/zh/hub-subscription-phone.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/zh/hub-subscription-test.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/zh/hub-subscription-test-phone.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/en/hub-subscription.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/en/hub-subscription-phone.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/en/hub-subscription-test.light.png
    • /Users/cyh/avibe-project/_tmp/frames-for-product/4503/en/hub-subscription-test-phone.light.png

Validation

  • npx vitest run src/components/settings/models/SourceDetailPanel.test.tsx src/components/settings/models/SourceTestDialog.test.tsx src/components/settings/models/copyAgreement.test.ts (156/156 passed, including MH-QUOTA-034 asserting 立即测试 and 刷新额度 coexist on quota/rate-paused Hub subscriptions)
  • npm run typecheck:design
  • npm run typecheck:tests (including src/i18n/tsconfig.guard.json)
  • npm run lint
  • npm run build
  • Independent Claude Opus 5.5 review (sesmyzt8ys7af) on exact head 353a9aad5b5c1547c4a653bb389540036508f9fb: No findings.
  • Full test suite & CI via GitHub Actions (lint).

Known-by-Design

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T04:25:53.422469Z 353a9aa New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cyhhao
cyhhao merged commit d80378d into master Nov 29, 2026
57 checks passed
@cyhhao
cyhhao deleted the feat/hub-subscription-source-test branch November 29, 2026 04: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.

1 participant