From 3520e1efebdfeff13bd342e9dd1ae9def7759ab8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 27 Aug 2026 03:47:01 +0000 Subject: [PATCH] fix: add missing AgentKeyRequest fields and fix services route references - Add application_uuid and application_name optional fields to AgentKeyRequest type - Fix application link in _SourcesPage to use applicationPath() helper instead of wrong /application/ route - Fix routes.ts to use connexionsRoute instead of removed servicesRoute (page 'services' was merged into 'connexions' in PR #12) Resolves Docker build failure (astro check TypeScript errors) in Actions run https://github.com/bobdivx/devforge/actions/runs/33009255574 Co-authored-by: Mathieu JESER --- frontend/src/lib/api/domain.ts | 2 ++ frontend/src/lib/routing/routes.ts | 12 +++++------- frontend/src/pages/sources/_SourcesPage.tsx | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/api/domain.ts b/frontend/src/lib/api/domain.ts index 9eecdcfe6e..7f2b2b54e5 100644 --- a/frontend/src/lib/api/domain.ts +++ b/frontend/src/lib/api/domain.ts @@ -2557,6 +2557,8 @@ export interface AgentKeyRequest { name: string; type?: string; }; + application_uuid?: string | null; + application_name?: string | null; created_at?: string | null; resolved_at?: string | null; } diff --git a/frontend/src/lib/routing/routes.ts b/frontend/src/lib/routing/routes.ts index 7ac58d08d4..c2a955efe8 100644 --- a/frontend/src/lib/routing/routes.ts +++ b/frontend/src/lib/routing/routes.ts @@ -509,8 +509,6 @@ const applicationsRoute = appRouteByPage('applications'); const databasesRoute = appRouteByPage('databases'); -const servicesRoute = appRouteByPage('services'); - const dockerRoute = appRouteByPage('docker'); const settingsRoute = appRouteByPage('settings'); @@ -627,7 +625,7 @@ const dynamicRoutes: Array<{ pattern: RegExp; route: AppRoute }> = [ { pattern: /^\/project\/[^/]+\/environment\/[^/]+\/database\/[^/]+(?:\/.*)?$/, route: databasesRoute }, - { pattern: /^\/project\/[^/]+\/environment\/[^/]+\/service\/[^/]+(?:\/.*)?$/, route: servicesRoute }, + { pattern: /^\/project\/[^/]+\/environment\/[^/]+\/service\/[^/]+(?:\/.*)?$/, route: connexionsRoute }, { pattern: /^\/docker(?:\/.*)?$/, route: dockerRoute }, @@ -800,11 +798,11 @@ export function findRoute(pathname: string): AppRoute { }; } - if (dynamicRoute.route.page === 'services' && normalizedPath.startsWith('/project/')) { + if (dynamicRoute.route.page === 'connexions' && normalizedPath.startsWith('/project/')) { return { - ...servicesRoute, - path: '/services', - label: `${servicesRoute.label} · Détail`, + ...connexionsRoute, + path: '/connexions', + label: `${connexionsRoute.label} · Détail`, }; } diff --git a/frontend/src/pages/sources/_SourcesPage.tsx b/frontend/src/pages/sources/_SourcesPage.tsx index c53902841b..659a1c5f42 100644 --- a/frontend/src/pages/sources/_SourcesPage.tsx +++ b/frontend/src/pages/sources/_SourcesPage.tsx @@ -10,6 +10,7 @@ import { DevForgeMcpTokenCard } from '../../components/sources/DevForgeMcpTokenC import type { BootstrapPermissions } from '../../lib/bootstrap'; import { domainApi, type GithubAppSummary } from '../../lib/domain-api'; import { useApiQuery } from '../../lib/use-api-query'; +import { applicationPath } from '../../lib/routing/routes'; type ConnexionsPageProps = { legacyBaseUrl?: string; @@ -167,7 +168,7 @@ export function ConnexionsPage({ permissions }: ConnexionsPageProps) {
Pour l'application : {req.application_name}