Skip to content
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

Merged
merged 7 commits into from
Aug 15, 2024

Conversation

psarando
Copy link
Member

@psarando psarando commented Aug 10, 2024

This PR will add countdown timers for running VICE analyses in the listing, submission landing, and the dashboard.


Analysis Listing:
Analysis Listing Countdown Timer


Analysis Landing page:
Analysis Landing Countdown Timer


Dashboard Item:
Analysis Dashboard Item Countdown Timer

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.
@psarando psarando added the enhancement New feature or request label Aug 10, 2024
@niravmerchant
Copy link

I would prefer time to be hours:min no need for seconds. If we can say Time Remaining: HH:MM that would be better

Copy link
Member

@slr71 slr71 left a 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) => (
Copy link
Member

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.
Copy link
Member

@slr71 slr71 left a 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.
@psarando
Copy link
Member Author

Here are the screenshots for the original countdown format for comparison:


Analysis Listing:
Analysis Listing Countdown Timer


Analysis Landing page:
Analysis Landing Countdown Timer


Dashboard Item:
Analysis Dashboard Item Countdown Timer


Here are the screenshots for the previous countdown format for comparison:


Analysis Listing:
Analysis Listing Countdown Timer


Analysis Landing page:
Analysis Landing Countdown Timer


Dashboard Item:
Analysis Dashboard Item Countdown Timer

@psarando
Copy link
Member Author

Thanks for the reviews! 👍

@psarando psarando merged commit 5e65af0 into cyverse-de:main Aug 15, 2024
6 checks passed
@psarando psarando deleted the CORE-2002-vice-countdown-timers branch August 15, 2024 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants