Skip to content

Spaces: named groups for organizing projects in the sidebar #159

Closed

Description

@currentbits

What Synara does

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.

Activity

  1. added
    enhancement
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    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 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.

  3. added
    plan:done
    and removed
    plan:doing
    on Aug 17, 2026
  4. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions