Skip to content

CO.12: Library Overview

Summary

Counselors browse treatment plan templates, session templates, and activity templates from the restricted library area.

Role

  • Primary: Counselor

Entry Point

  • URL: /library
  • Sidebar: Library

Preconditions

  • User is authenticated.
  • VITE_ENABLE_RESTRICTED_ROUTES allows restricted routes.

Steps

  1. Counselor opens /library.
  2. Frontend loads the selected library tab.
  3. Counselor switches between plans, sessions, and activities.
  4. Counselor searches or filters library items.
  5. Counselor opens an item or starts creating a new one.

Diagram

Edge Cases

  • Restricted route disabled: Route guard blocks access.
  • Public library: Public items may be viewable but not editable by non-admin owners.
  • Empty state: Library shows create actions.

Current Implementation Notes

  • Frontend: frontend/src/app/pages/library/index.tsx, frontend/src/features/library/components/shared

Screenshot Status

  • Not captured.