Repository navigation
Add "Quizzes Taken (last 7 days)" 5th tile to dashboard summary row - #165
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add 'Quizzes Taken (in last 7 days)' tile to admin dashboard
Add "Quizzes Taken (last 7 days)" 5th tile to dashboard summary row
Jun 10, 2026
kristofer
approved these changes
Jun 10, 2026
kristofer
marked this pull request as ready for review
June 10, 2026 19:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a 5th summary tile — Quizzes Taken (last 7 days) — to the dashboard, placed in the center of the tile row. All tiles are resized and fonts reduced to accommodate the new layout. For admin users, the count reflects activity across all students.
Backend (
api/quiz.go)quizzes_last_7_daysinGetProgressHandlerby filteringquizAttemptswhereStartTimeis within the past 7 days (inclusive boundary via!Before())/progressJSON responseFrontend (
dashboard.html,dashboard.js)col-md-3× 4 tocolequal-width layout (row-cols-2 row-cols-md-5) to fit 5 tilesh5→h6; data font reducedh2→h3; padding tightened top-2bg-secondarytile inserted at position 3 (middle);dashboard.jsbinds it toquizzes_last_7_daysTests (
api/handlers_test.go)TestGetProgressHandlerQuizzesLast7Days: creates attempts at −3d, −6d, and −10d; assertsquizzes_last_7_days == 2whiletotal_quizzes == 3