A 'Recently Viewed Submissions' (or interacted with) filter using localstorage.
Add a toggle filter in the staff task list.
Added another field in StaffTaskListComponent: tasksInCache: Task[] and also added a useCache: boolean to the filter.
TODO
add recently interacted with
add a way to clear the cache (localstorage)
sort by time viewed / interacted with
improve the visuals of the button
prevent duplicate from being stored in localstorage (stores multiple but the filters work so that it only shows one)
seems to break deleting comments? might also affect other features...
Fixes # (issue)
Type of change
Please delete options that are not relevant.
[ ] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update
How Has This Been Tested?
Not yet, still drafted.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Testing Ideas:
Simulate using localstorage.
Test when localstorage is empty.
Test with duplicate submissions
Test when working correctly
Testing Checklist:
[ ] Tested in latest Chrome
[ ] Tested in latest Safari
[ ] Tested in latest Firefox
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have requested a review from @macite and @jakerenzella on the Pull Request
Description
A 'Recently Viewed Submissions' (or interacted with) filter using localstorage. Add a toggle filter in the staff task list. Added another field in
StaffTaskListComponent
:tasksInCache: Task[]
and also added auseCache: boolean
to the filter.TODO
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Not yet, still drafted. Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration Testing Ideas:
Testing Checklist:
Checklist: