Repository navigation
feat(models): test a Hub subscription Source like an API key - #4503
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Open the existing 测试 / Test entry on Model Hub subscription Sources (
kind === 'subscription' && supply_channel === 'hub', excludingprotocol === 'search'and keyless built-ins), paired with the merged backend probe guard (#4497,42395490):SourceDetailPanel.tsx:testablenow includessource.kind === 'subscription'whensupply_channel === 'hub'andprotocol !== '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 forsource.kind === 'subscription'tosettings.models.sourceTest.subscriptionHintinstead of the metered-charge hint (settings.models.sourceTest.hint, unchanged for API-key Sources).settings.models.sourceTest.subscriptionHint):会发一次很短的请求,消耗少量订阅额度。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 existinghub-subscription/hub-subscription-phonedetail 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, desktopSourceTestDialogon a Hub subscription showing the quota hint)models/source-detail/hub-subscription-test-phone(390×760, mobileSourceTestDialogon a Hub subscription showing the quota hint)Hosted design shots (zh & en, light, desktop & 390):
763dbf84): https://github.com/avibe-bot/avibe/actions/runs/46224111481353a9aad): https://github.com/avibe-bot/avibe/actions/runs/46224717014_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.pngValidation
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, includingMH-QUOTA-034asserting立即测试and刷新额度coexist on quota/rate-paused Hub subscriptions)npm run typecheck:designnpm run typecheck:tests(includingsrc/i18n/tsconfig.guard.json)npm run lintnpm run buildsesmyzt8ys7af) on exact head353a9aad5b5c1547c4a653bb389540036508f9fb: No findings.lint).Known-by-Design
测试button.master(42395490), so no merge-order dependency remains.SourceTestDialogkeeps its existing result and failure classification without adding new result codes.