Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/src/lib/api/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
12 changes: 5 additions & 7 deletions frontend/src/lib/routing/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,6 @@ const applicationsRoute = appRouteByPage('applications');

const databasesRoute = appRouteByPage('databases');

const servicesRoute = appRouteByPage('services');

const dockerRoute = appRouteByPage('docker');

const settingsRoute = appRouteByPage('settings');
Expand Down Expand Up @@ -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 },

Expand Down Expand Up @@ -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`,
};
}

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/sources/_SourcesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -167,7 +168,7 @@ export function ConnexionsPage({ permissions }: ConnexionsPageProps) {
<div class="flex items-center gap-2 text-xs text-base-content/70">
<span>Pour l'application :</span>
<a
href={`/application/${req.application_uuid}`}
href={applicationPath(req.application_uuid ?? '')}
class="font-medium hover:text-primary underline"
>
{req.application_name}
Expand Down