fix(sidebar): preserve folder workspace owner identity

This commit is contained in:
Brennan Benson
2026-08-10 16:22:43 -07:00
parent 0c9cbcb678
commit de06dbb4f2
27 changed files with 663 additions and 129 deletions
+10 -1
View File
@@ -165,7 +165,16 @@ describe('project-groups', () => {
})
it('retains a legacy SSH folder owner with one unstamped group', () => {
const legacyGroup = projectGroup({ id: 'legacy', name: 'Legacy', parentPath: '/legacy' })
const legacyGroup = normalizeProjectGroups([
{
id: 'legacy',
name: 'Legacy',
parentPath: '/legacy',
createdFrom: 'migration',
tabOrder: 0
}
])[0]!
expect(legacyGroup.connectionId).toBeUndefined()
const index = buildProjectGroupOwnerIndex([legacyGroup])
const workspace = { projectGroupId: 'legacy', connectionId: 'builder' }