feat(picker): browse Vault and entity docs in document pickers

↗ view on GitHub · emileriksenkeev · 2026-07-14 · 8a48e84f

The Add Documents modal and the new-tabular-review picker only listed
regular projects (GET /projects excludes is_vault/is_entity), so reviews
couldn't select Vault or entity documents through the UI.

- useDirectoryData: extract a shared fetchDirectoryData() that also
  resolves /projects/vault-info and /projects/entities, loads their
  documents best-effort, and appends them after the regular projects.
  GET /projects itself is unchanged.
- AddNewTRModal: reuse fetchDirectoryData() instead of its own
  duplicate directory fetch.
- backend GET /projects/:projectId: allow org-wide read of vault/entity
  projects (aligns with checkProjectAccess) so non-owners can browse
  their documents.
- backend listAccessibleProjectIds: include vault/entity project ids so
  filterAccessibleDocumentIds and review scoping accept their documents
  for every authenticated user, not just the owner.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Repository emileriksenkeev/sydOS
Author emileriksenkeev <emil@keev.co>
Authored
Parents b61d3d10
Stats 4 files changed , +86 , -42
Part of The Vault - org-wide shared document library

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-8a48e84f.md from inside the repo you want the change in.

⬇ Download capture-commit-8a48e84f.md