-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORE-2002 VICE Countdown Timers #584
CORE-2002 VICE Countdown Timers #584
Conversation
Adds countdown timers for running VICE analyses in the listing, submission landing, and dashboard. Also refactors fetching the time limit and enabling the extend action, hopefully simplifying some of the logic.
Adding another CardHeader for the countdown timer can hide the actions at the bottom of the card, so replace the "Running" subheader with the countdown timer instead.
Updated the analyses listing, submission landing, and dashboard stories to display the running VICE countdown timer, but only when a time limit is selected in the story controls. Updated the start and end dates in the `info` analysis mock to help the "Running for" duration labels to make more sense.
This will also fix the duration display for analyses stories, since they all share a job history mock, with a Tapis job in the first step.
I would prefer time to be hours:min no need for seconds. If we can say Time Remaining: HH:MM that would be better |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me! I think Nirav had a small request to change the time limit display.
</DERow> | ||
); | ||
})} | ||
analyses.map((analysis, index) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of reducing the nesting depth here. 👍
Display countdown timer as "Time Remaining: HHh:MMm", and only update every minute. Since this is a shorter string, it can now fit in the AnalysisSubheader in place of the running duration and date string in the dashboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Display countdown timer as "Time Remaining: HH:MM", without units.
Thanks for the reviews! 👍 |
This PR will add countdown timers for running VICE analyses in the listing, submission landing, and the dashboard.
Analysis Listing:
Analysis Landing page:
Dashboard Item: