refactor: unify /apps routing with application and route filtering
All checks were successful
Build & Publish / publish (push) Successful in 44s
All checks were successful
Build & Publish / publish (push) Successful in 44s
- Table columns: Status, Route, Application, Started (yyyy-mm-dd hh:mm:ss), Duration, Agent (removed Order ID and Customer) - /apps shows all exchanges, /apps/:id filters by application, /apps/:id/:routeId filters by application and route - Route paths changed from /routes/:id to /apps/:appId/:routeId across sidebar, search, breadcrumbs, metrics, and exchange detail - Added buildRouteToAppMap utility for route→application lookup Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,17 @@ export interface SidebarApp {
|
||||
agents: SidebarAgent[]
|
||||
}
|
||||
|
||||
/** Build a routeId → appId lookup from the sidebar tree */
|
||||
export function buildRouteToAppMap(apps: SidebarApp[] = SIDEBAR_APPS): Map<string, string> {
|
||||
const map = new Map<string, string>()
|
||||
for (const app of apps) {
|
||||
for (const route of app.routes) {
|
||||
map.set(route.id, app.id)
|
||||
}
|
||||
}
|
||||
return map
|
||||
}
|
||||
|
||||
export const SIDEBAR_APPS: SidebarApp[] = [
|
||||
{
|
||||
id: 'order-service',
|
||||
|
||||
Reference in New Issue
Block a user