From 7cde1163f230e689bad01a6e6f473bd7110451cc Mon Sep 17 00:00:00 2001 From: Xiangzhe Date: Tue, 25 Aug 2026 20:54:07 -0300 Subject: [PATCH] fix(dashboard): restore expert-mode manual model entry in the combo builder PR #8285 (global model search) replaced the expert-mode "Manual model" block positionally with the new GlobalModelSearchPanel, dropping the only way to type a provider/model pair by hand in expert mode. The supporting state and handlers (manualModelInput, manualModelError, manualModelHasDuplicate, handleAddManualModel) survived as dead code, so neither typecheck nor lint flagged the loss. Re-render the block above the search panel, unchanged from its pre-#8285 form. Regression guard: tests/e2e/combos-flow.spec.ts "expert mode shows a single-page combo form with manual model entry", which had been failing with a 180s timeout on locator.fill for combo-manual-model-input. --- src/app/(dashboard)/dashboard/combos/page.tsx | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/app/(dashboard)/dashboard/combos/page.tsx b/src/app/(dashboard)/dashboard/combos/page.tsx index 04f73d54a0..e32705e990 100644 --- a/src/app/(dashboard)/dashboard/combos/page.tsx +++ b/src/app/(dashboard)/dashboard/combos/page.tsx @@ -3227,6 +3227,51 @@ function ComboFormModal({ isOpen, combo, onClose, onSave, activeProviders, combo )} + {isExpertMode && ( +
+ +
+ { + setManualModelInput(e.target.value); + setManualModelError(""); + }} + onKeyDown={(e) => { + if (e.key === "Enter") { + e.preventDefault(); + handleAddManualModel(); + } + }} + placeholder="provider/model" + data-testid="combo-manual-model-input" + className="flex-1 text-xs py-2 px-2 rounded border border-black/10 dark:border-white/10 bg-white dark:bg-white/5 text-text-main focus:border-primary focus:outline-none font-mono" + /> + +
+ {(manualModelError || manualModelHasDuplicate) && ( +
+ {manualModelError || + getI18nOrFallback( + t, + "builderDuplicateExact", + "This exact provider/model/account step is already in the combo." + )} +
+ )} +
+ )} +