Show project icons in status-grouped sidebar rows (#2416)
* feat: show project icons in sidebar status view * test(sidebar): keep status icon regression active The ten-second mock can finish during app startup, removing the Working bucket before the icon assertion. Keep the seeded workspace active for the full scenario. --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
This commit is contained in:
co-authored by
Mohamed Boudra
parent
d9b72e1c76
commit
87ef631ac4
@@ -43,6 +43,19 @@ export function resolveSidebarProjectIconTarget(
|
||||
return null;
|
||||
}
|
||||
|
||||
export interface SidebarProjectIconTarget extends SidebarProjectHostTarget {
|
||||
projectKey: string;
|
||||
}
|
||||
|
||||
export function resolveSidebarProjectIconTargets(
|
||||
projects: readonly SidebarProjectEntry[],
|
||||
): SidebarProjectIconTarget[] {
|
||||
return projects.flatMap((project) => {
|
||||
const target = resolveSidebarProjectIconTarget(project);
|
||||
return target ? [{ projectKey: project.projectKey, ...target }] : [];
|
||||
});
|
||||
}
|
||||
|
||||
export function resolveSidebarProjectLocalPath(
|
||||
project: SidebarProjectEntry,
|
||||
localServerId: string | null,
|
||||
|
||||
Reference in New Issue
Block a user