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
Collections: put one collection under another and rename a collection from the sidebar #4280
Collections can nest in core: a sub-collection is a member_of its parent collection. The sidebar's Collections list shows only top-level collections. Nothing in the app says that nesting is possible, and the only ways to do it are the "Add existing" picker in the collection view or the CLI. A user who wants "Company Policies" under "DeutNet" has no obvious way to do it. They also can't rename a collection from the sidebar.
What happens now
The sidebar shows "Company Policies" and "DeutNet" side by side. There is no way to drag or move one under the other.
"Add existing" may not list collections as candidates. This needs checking.
There is no rename action on a sidebar collection row.
The CLI covers both: nodespace node update <id> --collection "DeutNet" to nest, and nodespace node update <id> --content "New name" to rename.
Expected
Nest from the sidebar. Drag a collection onto another, or use a "Move to collection…" action on its row, to make it a child. The child then shows under its parent, which expands to reveal it.
Un-nest. The same menu offers "Remove from DeutNet", and a collection can stay under several parents (collections form a graph, not a tree).
Rename. A row menu action or double-click edits the collection name inline.
Cycle guard. Putting DeutNet under Company Policies when Company Policies is already under DeutNet is refused with a clear message.
Sync. On a synced workspace the move is refused with a message when the person lacks rights on the target collection, instead of silently failing.
Acceptance
A collection can be nested and un-nested from the sidebar without the CLI.
Rename works from the sidebar and the new name syncs.
Tests for nest, un-nest, rename and the cycle refusal.
Notes
Core supports nesting already: packages/core/src/db/sqlite_store/mod.rs (a root collection may nest in another) and the sub-collection read paths. The work is in navigation-sidebar.svelte and the collections store.
A collection must be a root node itself. Creating a collection directly under a note is refused by design.
PR #4281 is open. Premises checked against main: nesting and the cycle refusal exist in core; the backend commands for move, un-nest and rename already existed (no Rust change needed); the sidebar already showed three levels of nesting but offered no way to change it. Details are in the PR body.
Done in #4281 (ec7b855). The sidebar now nests, un-nests and renames collections: drag a collection onto another, or menu > Move to collection... (a dialog that lists only valid targets); menu > Remove from (one entry per parent: collections form a graph); rename by double-click or from the menu (Enter saves, Escape or leaving the field abandons it; a duplicate name or a stale version is refused with a clear message and the list reloads so a retry works); a cycle is refused with a message naming both collections (core already refuses it at the store); a refused move shows the backend's own reason (no Sync wording in core); the list nests to any depth (it stopped at three) and a collection is listed under every parent that is not an ancestor of another of its parents. The list is an accessible tree (levels, open state, selection, arrow keys, Home and End, focus kept after rename, move and removal). Reviewed independently twice. Not visually verified: the real drag in the webview (drag image, cursor, auto-scroll), the light and dark look, and a real screen reader. Known, deliberate or low: expansion is per collection, not per path (opening a collection under two parents opens it in both); blur abandons a rename; the depth cap of 24 does not bound width (a chain of diamonds would unfold to 2^depth rows); Tab visits every row's buttons (no roving tab stop). The documentation of the sidebar collections list needs a line saying that collections can be moved, un-nested and renamed there, and that any depth of nesting is shown.
Activity
mstomar125 commentedon Nov 16, 2026
Picking this up: first verifying the issue's premises against main, then the sidebar change.
mstomar125 commentedon Nov 16, 2026
PR #4281 is open. Premises checked against main: nesting and the cycle refusal exist in core; the backend commands for move, un-nest and rename already existed (no Rust change needed); the sidebar already showed three levels of nesting but offered no way to change it. Details are in the PR body.
mstomar125 commentedon Nov 16, 2026
Done in #4281 (ec7b855). The sidebar now nests, un-nests and renames collections: drag a collection onto another, or menu > Move to collection... (a dialog that lists only valid targets); menu > Remove from (one entry per parent: collections form a graph); rename by double-click or from the menu (Enter saves, Escape or leaving the field abandons it; a duplicate name or a stale version is refused with a clear message and the list reloads so a retry works); a cycle is refused with a message naming both collections (core already refuses it at the store); a refused move shows the backend's own reason (no Sync wording in core); the list nests to any depth (it stopped at three) and a collection is listed under every parent that is not an ancestor of another of its parents. The list is an accessible tree (levels, open state, selection, arrow keys, Home and End, focus kept after rename, move and removal). Reviewed independently twice. Not visually verified: the real drag in the webview (drag image, cursor, auto-scroll), the light and dark look, and a real screen reader. Known, deliberate or low: expansion is per collection, not per path (opening a collection under two parents opens it in both); blur abandons a rename; the depth cap of 24 does not bound width (a chain of diamonds would unfold to 2^depth rows); Tab visits every row's buttons (no roving tab stop). The documentation of the sidebar collections list needs a line saying that collections can be moved, un-nested and renamed there, and that any depth of nesting is shown.