The Documents library (Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/documents) is the central repository for all organisation documents, providing search, category and status filtering, bulk actions, and document upload.
Overview
No permission gate is present on the/documents route itself — access control is handled at the document level. The page provides a search input, category filter (policy, procedure, form template, training material, report, legal, marketing, other), status filter, and a sort order selector via DocumentSortOptions. View mode can be toggled between grid and list. Documents are fetched via useDocumentSearch with debounced search. Each document card links to /documents/:id. Bulk actions are available via DocumentBulkActionToolbar when documents are checked. Uploading a document opens DocumentUploadDialog. Deleting a document triggers an AlertDialog confirmation before calling useDocumentMutation.
Who it’s for
No explicit permission gate on this route.Before you start
- Ensure your organisation has documents uploaded, or upload your first document using the Upload button.
Steps
Open Documents
Navigate to
/documents. The library loads with all documents accessible to your account.Filter by category or status
Use the Category and Status selectors to narrow results. Combine filters with search.
Key concepts
Document categories
Document categories
Categories include
policy, procedure, form_template, training_material, report, legal, marketing, and other. These are sourced from the Supabase document_category enum.Document sort and search
Document sort and search
useDocumentSearch accepts SortField and SortDirection parameters from DocumentSortOptions, in addition to search query and filter criteria.Related
Platform Foundation
Platform Foundation overview.
Governance & parity
Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/platform.tsx
- src/platform/documents/DocumentLibrary.tsx
- src/platform/documents/useDocumentSearch.ts