refactor: consolidate tabs — remove standalone Logs and Config tabs
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m18s
CI / docker (push) Successful in 1m5s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 42s

Logs functionality already exists in Runtime tab (AgentHealth/AgentInstance).
Config functionality moved to Deployments tab ConfigSubTab.
Old routes redirect to /runtime and /apps respectively.
Navigation links updated throughout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-08 18:02:29 +02:00
parent b7f215e90c
commit 0a0733def7
6 changed files with 14 additions and 20 deletions

View File

@@ -9,8 +9,6 @@ const BASE_TABS = [
{ label: 'Exchanges', value: 'exchanges' },
{ label: 'Dashboard', value: 'dashboard' },
{ label: 'Runtime', value: 'runtime' },
{ label: 'Logs', value: 'logs' },
{ label: 'Config', value: 'config' },
];
interface ContentTabsProps {

View File

@@ -107,10 +107,10 @@ export function LogTab({ applicationId, exchangeId, processorId }: LogTabProps)
{exchangeId && (
<div className={logStyles.footer}>
<button
onClick={() => navigate(`/logs/${applicationId}?exchangeId=${exchangeId}`)}
onClick={() => navigate(`/runtime/${applicationId}`)}
className={logStyles.openLogsButton}
>
Open in Logs tab {'\u2192'}
Open in Runtime {'\u2192'}
</button>
</div>
)}

View File

@@ -618,9 +618,9 @@ function LayoutContent() {
const appMatch = path.match(/^\/apps\/([^/]+)(?:\/(.+))?$/);
if (appMatch) {
const [, sAppId, sRouteId] = appMatch;
if (scope.tab === 'config') {
// Config tab: always navigate to /config/:appId (route click → same app config)
navigate(`/config/${sAppId}`, { state });
if (scope.tab === 'apps') {
// Deployments tab: navigate to /apps/:appId
navigate(`/apps/${sAppId}`, { state });
} else {
navigate(sRouteId ? `/${scope.tab}/${sAppId}/${sRouteId}` : `/${scope.tab}/${sAppId}`, { state });
}