You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spaces: named groups for organizing projects in the sidebar #159
Named, icon-based Spaces with drag-and-drop project assignment, persisted ordering and keyboard shortcuts; unassigned projects live in a "Void" group (changelog 0.6.0).
Solenta today
A flat project list in the sidebar; grep finds no project-grouping concept anywhere in src/ or electron/.
Why it matters
Solenta's target user runs many threads across client work, product and experiments; once the project count passes about five, a grouping layer becomes the difference between scanning and hunting.
Deliberately minimal shape — a Space is id + name only. No icons, no colours, no manual ordering of spaces or of projects within a space (project order stays activity-derived, per the existing sidebarGroups.ts "activity NEVER reorders the list" rule). A project belongs to at most one space via optional spaceId. Unassigned projects fall into a trailing section, and with zero spaces the sidebar is byte-identical to today — no regression for users who never make one.
Shipped in three parts:
Shared contract (dbb9a7b) — SpaceInfo, ProjectInfo.spaceId, ProjectUpdateInput.spaceId, and a spaces CRUD surface on CoderApi (spaces:list/add/update/remove), implemented by the web wire client, the browser dev mock and the test fake.
Electron main — spaces array in the store (array order = display order) + spaceId normalised in migrateProject, services, IPC handlers, preload. Removing a space unassigns its projects and never deletes them.
Renderer — buildSidebarSections() layered over buildSidebarGroups(), collapsible space headers reusing the existing localStorage collapse idiom, inline "+" input to create, rename/delete affordances matching the per-project ones, native HTML5 drag-and-drop of a project header onto a space header, and a Space <select> in the Edit Project modal as the keyboard-accessible path.
Deferred (say the word and they get added): space icons — a name holds an emoji fine; manual reordering of spaces and of projects within a space; per-space keyboard shortcuts — ⌘1-9 and ⌘J/K are already taken by thread navigation.
Done — both halves built and merged onto coder/spaces-named-groups-for-organizing-proje-471613
Electron main (8301052) — spaces: [] in the store (array order = display order), spaceId normalised in migrateProject to an absent key rather than null, listSpaces/addSpace/updateSpace/removeSpace services, four IPC handlers, preload. removeSpace unassigns its projects instead of touching them; updateProject rejects an unknown spaceId rather than storing a dangling reference.
Renderer (51d56f3) — buildSidebarSections() layered over the untouched buildSidebarGroups(), collapsible space headers on the existing localStorage collapse idiom, inline + create, rename/delete matching the per-project pencil/x, native HTML5 drag-assign on a dedicated application/x-solenta-project dataTransfer type (so it can never be confused with the composer's file drop), and a Space <select> in the Edit Project modal as the keyboard-accessible path. A dangling spaceId falls into Unassigned rather than vanishing. Collapsing a space also removes its threads from the ⌘1-9 / ⌘J/K order.
Verification
Suite
Result
tsc --noEmit
clean
test:renderer
740/740 pass (11 new space tests)
test:electron
856 pass, 11 fail — identical failure set to base 44e6d57, confirmed by running the base in a scratch worktree (orch-server port binding + a reconnect-backoff assertion)
test:core
38/38 pass
test:memory
85/88 — memory-server/ is untouched by this change (empty diff), pre-existing
Also checked mechanically: every styles.* referenced in Sidebar.tsx exists in the CSS module (a missing one renders silently unstyled and no jsdom test would catch it).
Not visually smoke-tested in the running app — npm run dev shares the real coder-store.json with the daily driver, so I did not launch a second writer against it.
Left open until the worktree branch is merged to main.
Activity
currentbits commentedon Aug 17, 2026
Plan (orchestrated build)
Deliberately minimal shape — a Space is id + name only. No icons, no colours, no manual ordering of spaces or of projects within a space (project order stays activity-derived, per the existing
sidebarGroups.ts"activity NEVER reorders the list" rule). A project belongs to at most one space via optionalspaceId. Unassigned projects fall into a trailing section, and with zero spaces the sidebar is byte-identical to today — no regression for users who never make one.Shipped in three parts:
dbb9a7b) —SpaceInfo,ProjectInfo.spaceId,ProjectUpdateInput.spaceId, and aspacesCRUD surface onCoderApi(spaces:list/add/update/remove), implemented by the web wire client, the browser dev mock and the test fake.spacesarray in the store (array order = display order) +spaceIdnormalised inmigrateProject, services, IPC handlers, preload. Removing a space unassigns its projects and never deletes them.buildSidebarSections()layered overbuildSidebarGroups(), collapsible space headers reusing the existing localStorage collapse idiom, inline "+" input to create, rename/delete affordances matching the per-project ones, native HTML5 drag-and-drop of a project header onto a space header, and a Space<select>in the Edit Project modal as the keyboard-accessible path.Deferred (say the word and they get added): space icons — a name holds an emoji fine; manual reordering of spaces and of projects within a space; per-space keyboard shortcuts — ⌘1-9 and ⌘J/K are already taken by thread navigation.
currentbits commentedon Aug 17, 2026
Done — both halves built and merged onto
coder/spaces-named-groups-for-organizing-proje-471613Electron main (
8301052) —spaces: []in the store (array order = display order),spaceIdnormalised inmigrateProjectto an absent key rather than null,listSpaces/addSpace/updateSpace/removeSpaceservices, four IPC handlers, preload.removeSpaceunassigns its projects instead of touching them;updateProjectrejects an unknownspaceIdrather than storing a dangling reference.Renderer (
51d56f3) —buildSidebarSections()layered over the untouchedbuildSidebarGroups(), collapsible space headers on the existing localStorage collapse idiom, inline+create, rename/delete matching the per-project pencil/x, native HTML5 drag-assign on a dedicatedapplication/x-solenta-projectdataTransfer type (so it can never be confused with the composer's file drop), and a Space<select>in the Edit Project modal as the keyboard-accessible path. A danglingspaceIdfalls into Unassigned rather than vanishing. Collapsing a space also removes its threads from the ⌘1-9 / ⌘J/K order.Verification
tsc --noEmittest:renderertest:electron44e6d57, confirmed by running the base in a scratch worktree (orch-server port binding + a reconnect-backoff assertion)test:coretest:memorymemory-server/is untouched by this change (empty diff), pre-existingAlso checked mechanically: every
styles.*referenced inSidebar.tsxexists in the CSS module (a missing one renders silently unstyled and no jsdom test would catch it).Not visually smoke-tested in the running app —
npm run devshares the realcoder-store.jsonwith the daily driver, so I did not launch a second writer against it.Left open until the worktree branch is merged to
main.