Skip to content
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

Resident Dashboard > Display Top N Libraries for Facility #492

Closed
3 tasks
jtucholski opened this issue Nov 8, 2024 · 1 comment · Fixed by #532
Closed
3 tasks

Resident Dashboard > Display Top N Libraries for Facility #492

jtucholski opened this issue Nov 8, 2024 · 1 comment · Fixed by #532
Assignees
Labels
enhancement Updates to an existing feature. frontend internal team

Comments

@jtucholski
Copy link
Contributor

User Story:

As a Resident, I want to see the top 5 libraries viewed at my facility, so that I can see what others around me are often reading.

Description:

This task involves creating a dashboard component that renders the top 5 open content libraries tracked by users at the facility level.

Depending on what [Track library activity](https://www.notion.so/Track-library-activity-13701ac3401f806ab585fbb4a46ef84f?pvs=21) captures, this would be determined by which libraries receive the most page requests. Users would be able to filter based on time.

Tasks:

  • Implement API endpoint (i.e., GET /api/facility/{id}/library-activity) to retrieve library activity data.
  • Implement database query to retrieve library activity by user with filters (7 days, 30 days, 90 days, 6 months, 12 months). Limit to top 5 libraries.
  • Build React component to display top libraries.
    • Consider what to display when there aren’t 5 libraries to display.
    • The visual spacing of the component should be the same whether there is 1 library or 5 libraries.

User Flow:

User logs in or visits Dashboard

  • The user sees a "Top Libraries in your facility" component on their dashboard, displaying the top 5 most visited libraries for the user’s facility.
    • Libraries are listed in descending order based on the number of page visits.
    • The default sorting period is 7 days.
    • Each library entry includes a thumbnail and the library's name.

Acceptance Criteria:

  • Residents can view the top 5 most visited libraries based on the number of page requests.
  • Time filters include: past 7 days, 30 days, 90 days, 6 months, and 12 months.
  • The default time filter is 7 days.
  • The dashboard updates insights based on the selected time frame.
  • Libraries in the list that have are no longer “visible” should have the label Disabled next to it and be greyed out.
@jtucholski
Copy link
Contributor Author

Depends on #490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Updates to an existing feature. frontend internal team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants