Standards Docs
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/react hooks: useArchiveDocument, useRestoreDocument, useArchivedRecordDriveItems, and useRestoreFolderSubtree. useSoftDeleteFolder keeps its existing role and now invalidates the archived-items cache alongside the live drive caches. New REST endpoints: POST /documents/:id/restore (documentsRoutes.restore) and GET /folders/record-drive/:recordId/archived (foldersRoutes.archivedRecordDrive). New exported type ArchivedDriveItem from @stndrds/react and @stndrds/runtime.

Fixes

  • listRecordDriveChildren no 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 new documents_find_by_ids_with_sub_count Postgres 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.

On this page