This fixed issue #601
This PR has the following things:
[x] Implementation of Queue History which lists down the added and the removed tokens using the design file given in the issue as a reference.
[x] Shows the last two changes and opens up a dropdown on clicking show more and shows last six changes with option to navigate to next or previous changes in a set of 6.
Here are the changes that I made:
Note:
Made use of the extraReducers to get the removed and added tokens list by making a backend call to GET /queue/<queue-id>
As attached in the image below, in the removed tokens, I am not getting the removed token timestamp and thus the tracking of the removed token is not time precise, though it works without any issue if the page is not refreshed as I am maintaining a queueHistory which contains the added and removed tokens sorted according to the time in the local state of the component.
This fixed issue #601 This PR has the following things:
Here are the changes that I made:
Note:
extraReducers
to get the removed and added tokens list by making a backend call toGET /queue/<queue-id>
queueHistory
which contains the added and removed tokens sorted according to the time in the local state of the component.