Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
8 tasks
chrissantillan opened this issue Feb 1, 2025 · 0 comments
Open
8 tasks
Labels
feature - addition New feature or request for a new feature

Comments

@chrissantillan
Copy link
Collaborator

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.
@chrissantillan chrissantillan added the feature - addition New feature or request for a new feature label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature - addition New feature or request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant