From ab0c4ade7190b72ed6b68d88ec57872af03c415b Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Mon, 24 Aug 2026 10:01:35 +0900 Subject: [PATCH] fix: repair main's broken frontend build frontend/src/App.tsx failed `tsc -b` at main's current head: a dead import (rememberOidcReturnUrl, returnUrlFromLocation -- unused since a prior refactor, the module itself is still used elsewhere) and an unguarded AdminPanel render passing the OIDC accessToken (typed string | undefined) into a prop requiring string. Every PR branched from main inherits this "Frontend lint, test, build" failure regardless of its own diff -- confirmed against PR #547, whose only change is docker-compose.yml. Guards the render on accessToken being present, matching every other accessToken-dependent effect already in this file. Full pnpm build and lint are clean; the one App.test.tsx failure encountered ("comparison strip" test, 5000ms timeout) reproduces identically on unmodified main, so it's a pre-existing, load-sensitive flake, not a regression from this change. --- CHANGELOG.md | 8 ++++++++ frontend/src/App.tsx | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8ed1a099..2ff2fea66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,14 @@ All notable changes to this project are documented here. Format follows - `make smoke` and `make seed` now run through the locked project `uv` environment, so local OIDC and synthetic-data workflows resolve the same pinned dependencies as CI. +- `frontend/src/App.tsx` failed `tsc -b` on this branch: a dead import + (`rememberOidcReturnUrl`, `returnUrlFromLocation` -- unused since a prior + refactor) and an unguarded `AdminPanel` render passing the OIDC + `accessToken` (typed `string | undefined`) into a prop that requires + `string`. Every PR branched from here inherited both failures + regardless of its own diff. Fixed by dropping the dead import and + gating the render on `accessToken` being present, matching every other + `accessToken`-dependent effect in the file. ## [2.12.6] - 2026-08-20 diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6fba0dd41..a34df38f5 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -101,7 +101,6 @@ import { tf, useLocale, } from "./i18n"; -import { rememberOidcReturnUrl, returnUrlFromLocation } from "./oidcReturnUrl"; import "./App.css"; function orchestratorUnavailableMessage(err: unknown, action: string): string { @@ -4620,7 +4619,7 @@ export default function App({ showLabPanels = false }: { showLabPanels?: boolean Enterprise SSO Authentication - {destination === "admin" ? : null} + {destination === "admin" && accessToken ? : null}