fix: use composite ID for routes in command palette search data
Routes with the same name across different applications (e.g., "route1" in both QUARKUS-APP and BACKEND-APP) were deduplicated because they shared the same id (routeId). Use appId/routeId as the id so all routes appear in cmd-k results. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ function buildSearchData(
|
||||
|
||||
for (const route of (app.routes || [])) {
|
||||
results.push({
|
||||
id: route.routeId,
|
||||
id: `${app.appId}/${route.routeId}`,
|
||||
category: 'route',
|
||||
title: route.routeId,
|
||||
badges: [{ label: app.appId }],
|
||||
|
||||
Reference in New Issue
Block a user