Changelog
Changelog — 2026-05-19
Daily docs refresh.
Features
- Archive UI and restore APIs for record documents. The record documents tab now supports archiving documents and folders with a restorable archive view. New
@stndrds/reacthooks:useArchiveDocument,useRestoreDocument,useArchivedRecordDriveItems, anduseRestoreFolderSubtree.useSoftDeleteFolderkeeps its existing role and now invalidates the archived-items cache alongside the live drive caches. New REST endpoints:POST /documents/:id/restore(documentsRoutes.restore) andGET /folders/record-drive/:recordId/archived(foldersRoutes.archivedRecordDrive). New exported typeArchivedDriveItemfrom@stndrds/reactand@stndrds/runtime.
Fixes
listRecordDriveChildrenno longer drops documents past PostgREST's 1000-row cap. The folder service used to fetch every document at the requested parent level and filter client-side against the record's edges, so on tenants with thousands of root documents linked docs beyond the cap were silently missing from/folders/record-drive/:recordId/children. The query is inverted now: edges resolve the attached IDs first, then a newdocuments_find_by_ids_with_sub_countPostgres RPC filters those IDs by parent. Apply the new Supabase migration (*_documents_find_by_ids_with_sub_count.sql) before deploying the updated runtime. See the Supabase setup guide.