ab798947d894f463cfa62354e6f25a2af3a8cf7b
Extends the Document folders subsection with:
- Three system roots + per-entity subfolders + lifecycle hooks
(syncEntityFolderName, applyEntityArchivedSuffix,
demoteSystemFolderOnEntityDelete).
- Owner-wins owner resolution in handleDocumentCompleted, adapted
to the actual interests schema (no primary*Id columns; no
companyId on interests).
- Aggregated projection (listFilesAggregatedByEntity +
listInflightWorkflowsAggregatedByEntity) with symmetric reach,
file-FK source of truth, defense-in-depth port_id, ended-
membership filter, signedFromDocumentId reverse-link.
- Hub UI three render modes (root, entity, flat).
- Permission gating + deploy sequence (migration 0051 +
db:backfill:doc-folders).
Smoke project deferred: requires running dev server; specs are
type-checked and committed in Task 18; CI/reviewer to execute.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
98.7%
HTML
1%
CSS
0.1%
Shell
0.1%