fix(ci): frontend lint to zero errors + dev-deps installable on clean image #149

Merged
chihlasm merged 5 commits from fix/ci-cleanup into main 2026-04-25 07:12:15 +00:00
2 changed files with 13 additions and 11 deletions
Showing only changes of commit 857d73e3d0 - Show all commits

View File

@@ -0,0 +1,11 @@
import { Navigate, useParams } from 'react-router-dom'
/**
* Permanent 301-style redirect from /assistant/:sessionId to /pilot/:sessionId.
* Used by the Phase 1 route-rename; paired with a bare-path redirect to /pilot.
* SPA redirects replace history so the legacy URL does not linger in back-nav.
*/
export function AssistantSessionRedirect() {
const { sessionId } = useParams<{ sessionId: string }>()
return <Navigate to={sessionId ? `/pilot/${sessionId}` : '/pilot'} replace />
}

View File

@@ -1,4 +1,5 @@
import { createBrowserRouter, Navigate, useParams } from 'react-router-dom'
import { createBrowserRouter, Navigate } from 'react-router-dom'
import { AssistantSessionRedirect } from '@/components/routing/AssistantSessionRedirect'
import * as Sentry from '@sentry/react'
import { Suspense } from 'react'
import { AppLayout, ProtectedRoute } from '@/components/layout'
@@ -102,16 +103,6 @@ function page(Component: React.LazyExoticComponent<React.ComponentType>) {
)
}
/**
* Permanent 301-style redirect from /assistant/:sessionId to /pilot/:sessionId.
* Used by the Phase 1 route-rename; paired with a bare-path redirect to /pilot.
* SPA redirects replace history so the legacy URL does not linger in back-nav.
*/
function AssistantSessionRedirect() {
const { sessionId } = useParams<{ sessionId: string }>()
return <Navigate to={sessionId ? `/pilot/${sessionId}` : '/pilot'} replace />
}
export const router = sentryCreateBrowserRouter([
{
path: '/landing',