From 33c7c6fccd8a39e76711bea60f3f42855025df15 Mon Sep 17 00:00:00 2001 From: Xiangzhe Date: Sun, 23 Aug 2026 12:10:34 -0300 Subject: [PATCH] fix(dashboard): restore ProviderModelsModal map broken by #11228 (base-red #9985) The squash merge of #11228 applied its endpoint-header hunk inside ProviderModelsModal, replacing the groupModels.map callback's return statement with the page-level guided header JSX. The file no longer parsed (Turbopack: 3 errors at line 2397; release-green reported the same defect as '1 ESLint error'), red-ing every Build App / Docker publish run since 8a42aeebb8. Surgical revert of that single hunk: the file is byte-identical to its pre-#11228 state. The rest of #11228 (health page verdict header, resilience reassurance, i18n keys) parses fine and stays. Validation: prettier parse OK; EndpointPageClient.test.tsx 4/4 (the pre-existing jsdom render suite imports the component, so it is the permanent regression guard); diff vs pre-#11228 empty. Refs #9985 --- .../dashboard/endpoint/EndpointPageClient.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx index f521103287..a670f9cc34 100644 --- a/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx +++ b/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.tsx @@ -2360,19 +2360,7 @@ function ProviderModelsModal({
{groupModels.map((m) => { const copyKey = `modal-${m.id}`; - return ( -
-
-

{t("endpoint.title")}

-

{t("endpoint.subtitle")}

-
- {useDisplayBaseUrl()}/v1 - {t("endpoint.testEndpoint")} -
-
-
- {t("endpoint.advancedProtocols")} -
+ return (