feat(documents): virtual folders for linked docs; alphabetical by default

↗ view on GitHub · Peter Dombkins · 2026-07-31 · 1f6a6264

Linked documents are one row shared across every project they are linked into,
and folder_id is a single column, so they cannot sit in each project's folder
tree - 31 files landed flat at the root of every group project. DocTable now
groups them under read-only virtual folders named after the source Library
folder, using linked_folder_name from the backend.

The document-row JSX was extracted verbatim from the childDocs.map() body into
renderDocumentRow(doc, depth) so the same row can render inside a virtual
folder. Behaviour unchanged; only the call site moved.

Sorting: both the document sort and the folder sort were gated on
enableHeaderFilters, which only LibraryWorkspace sets, so everything came back
in insertion order. Ungated - folders and documents are ascending alphabetical
by default in the Library and in projects.
Repository pdombkins/rose_lawyer
Author Peter Dombkins <pdombkins@gmail.com>
Authored
Parents deda2df6
Stats 2 files changed , +470 , -367
Part of Central document management: Library ↔ project linking, folders

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-1f6a6264.md from inside the repo you want the change in.

⬇ Download capture-commit-1f6a6264.md