Skip to content

FEAT: Knowledge Center > Dept. Admin: Featuring Libraries Department-Wide #719

@chrissantillan

Description

@chrissantillan

User Story

As a Department Admin, I want to feature Libraries for all Residents department-wide, so that important or high-priority content is prominently displayed on the Trending Content page across all facilities.

Description

Currently, the ability to "Feature" Libraries applies universally without any facility-level control. This issue ensures that Department Admins can feature Libraries for all facilities at once, while maintaining a clear, consistent UI that Facility Admins can also see.

Tasks

Backend Updates

  • Modify the database schema to store a "Featured Department-Wide" flag for Libraries (or some suitable alternative that conforms to the codebase).
  • Update API endpoints to:
    • Allow Department Admins to feature/unfeature Libraries across all facilities.
    • Ensure Facility Admins cannot override department-wide Featured Libraries.
    • Ensure Residents see department-wide Featured Libraries regardless of facility.

Department Admin UI Updates

  • Modify the flag-based UI for featuring Libraries:
    • Empty flag icon → Default state (not featured).
    • Yellow filled-in flag → Featured Department-Wide.
    • Grey filled-in flag → Department-Wide Featured Libraries when viewed by Facility Admins (indicating they cannot be un-featured).
  • Ensure the Featured Library list in the Trending Content page displays department-wide Libraries first.

Facility Admin View Updates

  • Facility Admins should see Department-Wide Featured Libraries in their Knowledge Center with a grey filled-in flag, indicating it was featured by a Department Admin.
  • Facility Admins cannot click or modify department-wide Featured Libraries.

Resident View Updates

  • Modify Resident queries to ensure department-wide Featured Libraries are always displayed in Trending Content.
  • Ensure Featured Libraries appear before facility-specific Featured Libraries in the Resident view.

User Flow

For Department Admins

  1. Logs into UnlockEd → Navigates to Knowledge Center Admin Panel.
  2. Finds a Library they want to feature department-wide.
  3. Clicks the flag icon in the upper-right corner of the Library card → Flag turns yellow, indicating it is now Featured Department-Wide.
  4. Residents across all facilities see the Library pinned to the Featured section in the Knowledge Center and Trending Content page.
  5. Facility Admins see the Library with a grey flag, indicating it is department-wide and cannot be un-featured.
  6. If the Department Admin un-features the Library, the flag returns to empty, and it is removed from Featured Content across all facilities.

Acceptance Criteria

  • Department Admins can feature/un-feature Libraries for all facilities.
  • Department-wide Featured Libraries appear first in the Resident Trending Content page.
  • Facility Admins see a grey, disabled flag for Department-Wide Featured Libraries.
  • Facility Admins cannot un-feature or override Department-wide Featured Libraries.
  • UI updates dynamically based on feature selection.
  • API stores and retrieves department-wide Featured Libraries correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature - additionNew feature or request for a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions