mikhael28/paretOS

Enhancement: Change sprint display based on sprint status

Opened this issue · 1 comments

Description

In the Arena section of ParetOS, clicking on any sprint will bring you to a sprint summary page with three tabs: planning, compete, and leaderboard. Currently the default display is the 'compete' tab, regardless of the status of the sprint.

Instead, the default view and what aspects of the sprint are interactable should change based on the status of the sprint.

Before a sprint has started

Default Tab Displayed: Planning
Rather than show a particular day of the sprint, the Compete tab should display a message indicating when the sprint will begin and when the user will be able to start reporting achievements (bonus if this includes a countdown clock!) and display the achievements that the user will be able to aim to complete daily during the sprint. (Just the achievement title and description, no 'submit proof' button.) Similarly, the Leaderboard should include a message indicating that the sprint has not yet started, and to check back after X date (the start of the sprint) to see your performance.

While a sprint is active

Default Tab Displayed: Compete
The default display day in 'Compete' should be the current day of the sprint. The 'day' options in time travel should show only the current day and past days of the sprint. (For example, if we're on day 3 of a sprint, the Time Travel section should only have options to select day 1, 2 or 3 (not 4 or 5)

After a sprint has ended

Default Tab Displayed: Leaderboard
Planning forms should no longer be editable, planning should just display the content (perhaps in the future we can add a 'rate how well you stuck to your plan' field.) Time travel should be visible but the 'submit proof' button should no longer be visible on daily achievements that were not completed (currently it appears but is disabled.) The default display day in 'compete' should be the final day of the sprint. Submitting proof for past days should be available for a specified number of hours after the sprint has officially ended (currently the minute the sprint ends, one is no longer able to submit proof of past achievements.)

Additional Information

This is a fairly substantial list of enhancements (though each one is relatively straightforward) - if you'd like to only tackle a subset, let me know and I can split this into multiple issues!
Screen Shot 2022-04-27 at 10 30 26 AM
Screen Shot 2022-04-27 at 10 31 04 AM

Hey @jayeclark , I'm going to dogfood the Arena this coming week (sprint starting tomorrow, woot) to see what the experience is currently like. I will add to this sprint's tickets/knock them out myself, as I go through the week. The Arena is going to be my passive focus for this week.