dify/web/contract
yyh 223b9d89c1
refactor(web): migrate priority change to oRPC contract with useMutation
- Add changePreferredProviderType contract in model-providers.ts
- Register in consoleRouterContract
- Replace raw async changeModelProviderPriority with useMutation
- Use Toast.notify (static API) instead of useToastContext hook
- Pass isPending as isChangingPriority to disable buttons during switch
- Add disabled prop to UsagePrioritySection
- Fix pre-existing test assertions for api-unavailable variant
- Update all specs with isChangingPriority prop and oRPC mock pattern
2026-03-05 09:30:38 +08:00
..
console refactor(web): migrate priority change to oRPC contract with useMutation 2026-03-05 09:30:38 +08:00
base.ts refactor: init orpc contract (#30885) 2026-01-13 23:38:28 +09:00
marketplace.ts refactor: init orpc contract (#30885) 2026-01-13 23:38:28 +09:00
router.ts refactor(web): migrate priority change to oRPC contract with useMutation 2026-03-05 09:30:38 +08:00