refactor: consolidate tabs — remove standalone Logs and Config tabs
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:
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user