Simon-Initiative / oli-torus

Next Generation OLI Authoring and Delivery Platform
https://proton.oli.cmu.edu
MIT License
83 stars 35 forks source link

[FEATURE] [NG23-230] Correctly display time remaining on assignment card #4907

Closed nicocirio closed 3 months ago

nicocirio commented 3 months ago

Link to the ticket

Different time-remaining formats

image

Transition countdown from day-time-remaining to hour-time-remaining format

https://github.com/Simon-Initiative/oli-torus/assets/74839302/0706647a-bdb7-4bcf-9d2f-3852ea05704b

Show time-remaining when there is an active attempt with a time limit (late submission allowed)

https://github.com/Simon-Initiative/oli-torus/assets/74839302/7624ca2c-10de-488a-a5f3-3b6d27191c6f

Show time-remaining when there is an active attempt with late submission disallowed (and no time limit)

https://github.com/Simon-Initiative/oli-torus/assets/74839302/4f886ee5-aef9-4f84-814b-4d92c3ea2f8b

Time remaining when the end date (with late submission disallowed) is before the date considering the time limit

https://github.com/Simon-Initiative/oli-torus/assets/74839302/5893ed63-3b96-4750-ae7a-67861989d08e

Time remaining when the date considering the time limit is before the end date (with late submission disallowed).

https://github.com/Simon-Initiative/oli-torus/assets/74839302/6ae7b6c4-55e7-4116-8d6b-fbc5acf88cd1

This time-remaining logic and formatting were implemented/homologated across components

https://github.com/Simon-Initiative/oli-torus/assets/74839302/d4792d36-ab7d-48aa-ae53-b4c4c6fa00dc