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

Add Filter and Sorting for Progress Reports #386

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

lucasxsong
Copy link
Collaborator

@lucasxsong lucasxsong commented Feb 22, 2024

This PR adds sorting and filtering to the progress report. The current iteration supports sorting and filtering on most categories in the table, as well as sorting by grade and school.

One caveat is that filtering by completion status is currently limited to only Completed and Started. This is because the filtering mechanism is built on the scores collection, where non-completed and non-started assignments will have no entry. I tried to implement the filtering mechanism based on the assessments collection, but ran into some road blocks (at least from what I tried) in being unable to query within the nested array assignments. You can see the prototype code here.

Copy link

github-actions bot commented Feb 22, 2024

Visit the preview URL for this PR (updated for commit e668c6c):

https://roar-staging--pr386-enh-progress-filter-7gtgqnmt.web.app

(expires Tue, 12 Mar 2024 23:13:38 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460

Copy link

cypress bot commented Feb 22, 2024

1 flaky test on run #405 ↗︎

0 25 0 0 Flakiness 1

Details:

Tests for PR 386 "Add Filter and Sorting for Progress Reports" from commit "e668...
Project: roar-dashboard-e2e Commit: e668c6c17e
Status: Passed Duration: 19:52 💡
Started: Mar 5, 2024 11:15 PM Ended: Mar 5, 2024 11:35 PM
Flakiness  cypress/e2e/participant/default-tests/playSWR.cy.js • 1 flaky test

View Output

Test Artifacts
Testing playthrough of SWR as a participant > ROAR-Word Playthrough Test Test Replay Screenshots

Review all test suite changes for PR #386 ↗︎

@lucasxsong lucasxsong force-pushed the enh/progress-filter-sort branch 4 times, most recently from 494f1ad to 5e76647 Compare February 28, 2024 00:52
@lucasxsong lucasxsong marked this pull request as ready for review February 28, 2024 17:07
@richford richford changed the title Add Filter and Sorting for Progress Reports WIP: Add Filter and Sorting for Progress Reports Feb 29, 2024
@richford richford marked this pull request as draft February 29, 2024 05:30
@lucasxsong lucasxsong marked this pull request as ready for review March 5, 2024 19:39
@lucasxsong lucasxsong changed the title WIP: Add Filter and Sorting for Progress Reports Add Filter and Sorting for Progress Reports Mar 5, 2024
@lucasxsong lucasxsong force-pushed the enh/progress-filter-sort branch 2 times, most recently from b5632ea to 622da38 Compare March 5, 2024 19:47
Copy link
Collaborator

@kellyel kellyel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!! All suggested changes are removing commented code / console logs. LGTM!

src/pages/ProgressReport.vue Outdated Show resolved Hide resolved
src/pages/ProgressReport.vue Outdated Show resolved Hide resolved
src/pages/ProgressReport.vue Outdated Show resolved Hide resolved
src/pages/ScoreReport.vue Outdated Show resolved Hide resolved
src/pages/ScoreReport.vue Outdated Show resolved Hide resolved
@lucasxsong lucasxsong merged commit 78570e2 into main Mar 5, 2024
13 of 14 checks passed
@lucasxsong lucasxsong deleted the enh/progress-filter-sort branch March 5, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants