As a mismatch reviewer I want to be able to get a random mismatch to review in order to not have to rely looking for specific Item IDs that might or might not have mismatches available.
Problem:
Right now you need to provide a list of Item IDs which then might or might not have mismatches for you to review. We should offer the ability to get a random Item with mismatches from the store.
Screenshots/mockups:
BDD
GIVEN the Mismatch Finder main page
WHEN clicking the "Random mismatches" button
THEN I am redirected to a results page with 15 random Items that each have at least 1 unreviewed mismatch
Acceptance criteria:
- "Random mismatches" button is added to main page of Mismatch Finder
- clicking the "Random mismatches" button loads the results page for 15 random Items with at least 1 unreviewed mismatch
Notes:
- If there are less than 15 Items with unreviewed mismatches in the store then we show all the ones that are available
- If there are no unreviewed mismatches available we show an error message to the reviewer on the results page. The copy is "There are currently no mismatches available for review."
- In the address bar, /random gives a random results, the same as clicking on the Random button.
- /random redirects to the results page with the ids /results?ids=Q2|Q7|Q66
- When no un-reviewed mismatches have been found, the /random endpoint redirects to results?ids=