fix: starred routes not showing — starKey prefix mismatch
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m11s
CI / docker (push) Successful in 1m1s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 53s

collectStarredItems used 'app:' prefix for route keys but
buildAppTreeNodes uses 'route:' prefix. Routes were starred
but never matched in the starred section.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-02 22:36:28 +02:00
parent 5880abdd93
commit d819f88ae4

View File

@@ -167,7 +167,7 @@ function collectStarredItems(apps: SidebarApp[], starredIds: Set<string>): Starr
items.push({ starKey: `app:${app.id}`, label: app.name, icon: makeStatusDot(app.health), path: `/apps/${app.id}` });
}
for (const route of app.routes) {
const key = `app:${app.id}/${route.id}`;
const key = `route:${app.id}/${route.id}`;
if (starredIds.has(key)) {
items.push({ starKey: key, label: route.name, path: `/apps/${app.id}/${route.id}`, parentApp: app.name });
}