Skip to main content

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.

The Article screen is accessible at /lo/knowledge/articles/:articleId and renders a single knowledge base article with sanitized HTML content, a table of contents, version history, and metadata.

Overview

The KnowledgeArticlePage fetches the article via useKnowledgeArticle(articleId, orgId) and increments the view count via incrementViewCount.mutate({ id, organizationId }) in a useEffect on mount. The breadcrumb is set to article.title. The page displays the article title, ArticleTypeBadge, category path, author, creation date, and view count. An ArticleTableOfContents renders a navigation sidebar. The article body is rendered using sanitizeHtml on the stored HTML content. An ArticleVersionHistory panel shows the edit history. An Edit button (visible to authorized users) navigates to /lo/knowledge/articles/:articleId/edit.

Who it’s for

Requires LO_PERMISSIONS.DASHBOARD_VIEW (lo.dashboard.view) via the shared LOViewGuard. Editing requires lo.knowledge.create (or a separate edit permission — confirm with SME).

Before you start

  • The article identified by :articleId must exist in the active organization.
  • lo.dashboard.view permission required.

Steps

1

Open an article

Navigate to /lo/knowledge/articles/:articleId or select an article card from the Knowledge Portal.
2

Navigate with table of contents

Use the ArticleTableOfContents sidebar to jump to specific sections.
3

Read the article

The article body is rendered from stored HTML, sanitized via sanitizeHtml.
4

Review version history

The ArticleVersionHistory panel shows previous versions of the article.
5

Edit the article

Select the Edit button to navigate to /lo/knowledge/articles/:articleId/edit.

Key concepts

  • sanitizeHtml: applied to article content before rendering to prevent XSS.
  • incrementViewCount: called on page mount to track article views.
  • ArticleTypeBadge: displays the article type (process, best_practice, training, faq, policy, general).

Leadership

Leadership core 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.
  • src/routes/lo.tsx
  • src/cores/lo/pages/KnowledgeArticlePage.tsx
  • src/cores/lo/hooks/useKnowledgeArticles.ts