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:
@@ -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