feat: workspace source-of-truth hard cut

This commit is contained in:
Mohamed Boudra
2026-03-03 23:28:16 +07:00
parent f3796e2ba5
commit cb92f39e73
20 changed files with 1813 additions and 945 deletions
@@ -0,0 +1,9 @@
export function projectDisplayNameFromProjectId(projectId: string): string {
const githubRemotePrefix = "remote:github.com/";
if (projectId.startsWith(githubRemotePrefix)) {
return projectId.slice(githubRemotePrefix.length) || projectId;
}
const segments = projectId.split(/[\\/]/).filter(Boolean);
return segments[segments.length - 1] || projectId;
}