diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 436fedcc..68875a83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,11 @@ jobs: - run: npm ci + # next-env.d.ts + .next type stubs are gitignored (Next-managed since + # v16); typegen generates them so tsc sees the same types as a build. + - name: Generate Next.js types + run: npx next typegen + - name: Typecheck run: npx tsc --noEmit diff --git a/.gitignore b/.gitignore index f2096cff..9e790e58 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,9 @@ __azurite_db*__.json node_modules/ .next/ out/ +# Managed by Next.js since v16 (regenerated by next dev/build/typegen; path +# inside flips between .next/types and .next/dev/types) — must not be tracked. +next-env.d.ts build/ dist/ !rules/dist/ diff --git a/src/Web/autopilot-monitor-web/app/dashboard/page.tsx b/src/Web/autopilot-monitor-web/app/dashboard/page.tsx index be27a68c..8cb42912 100644 --- a/src/Web/autopilot-monitor-web/app/dashboard/page.tsx +++ b/src/Web/autopilot-monitor-web/app/dashboard/page.tsx @@ -232,7 +232,7 @@ function HomeContent() { // Auto-load ALL remaining sessions when search is active and local results are insufficient. // Uses a 500ms debounce so rapid typing doesn't trigger unnecessary loads. - const autoLoadTimerRef = useRef>(); + const autoLoadTimerRef = useRef | undefined>(undefined); useEffect(() => { if (autoLoadTimerRef.current) clearTimeout(autoLoadTimerRef.current); diff --git a/src/Web/autopilot-monitor-web/app/layout.tsx b/src/Web/autopilot-monitor-web/app/layout.tsx index 748150c1..c6139019 100644 --- a/src/Web/autopilot-monitor-web/app/layout.tsx +++ b/src/Web/autopilot-monitor-web/app/layout.tsx @@ -113,8 +113,11 @@ export default function RootLayout({ }: Readonly<{ children: React.ReactNode; }>) { + // data-scroll-behavior: Next 16 no longer auto-suppresses CSS smooth-scroll + // during route navigation; without the opt-in, globals.css's + // `scroll-behavior: smooth` would animate every route change to top. return ( - +