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

feat(ui): add countdown to cronWorkflowList Closes #4636 #4641

Merged
merged 3 commits into from Dec 7, 2020

Conversation

tczhao
Copy link
Member

@tczhao tczhao commented Dec 3, 2020

Signed-off-by: Tianchu Zhao evantczhao@gmail.com

Checklist:

Closes #4636

image

Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments


const duration = moment.duration(moment(date).diff(now)).asSeconds();

return <>{formatDuration(duration)}</>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't quite understand the comment,
would you mind providing me more detail

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a component called that I think does this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's <Moment duration={now} date={date} />.
I thought we want to keep the formatting the same, thus using formatDuration

@tczhao tczhao force-pushed the master branch 2 times, most recently from c6a0464 to 9097e17 Compare December 4, 2020 02:33
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
…kage to 1.0.0

react-moment@1.0.0 fixed duration formatting bug, headzoo/react-moment#114

Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
@alexec alexec merged commit 76bcaec into argoproj:master Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI cron workflow countdown column
3 participants