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 alert <= 30mins from deadline #1825

Merged
merged 4 commits into from
May 27, 2022

Conversation

greyscaled
Copy link
Contributor

@greyscaled greyscaled commented May 27, 2022

Resolves: #1459

Summary

When a workspace build is <= 30 minutes from auto-scheduled shutdown,
then an alert banner is displayed on the workspace page.

Demo

From Storybook:

shutdown-demo

@greyscaled greyscaled requested a review from a team as a code owner May 27, 2022 06:32
@greyscaled greyscaled self-assigned this May 27, 2022
@greyscaled greyscaled requested a review from johnstcn May 27, 2022 06:32
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

Looking good!

Summary:

When a workspace build is <= 30 minutes from auto-scheduled shutdown,
then an alert banner is displayed on the workspace page.
@greyscaled greyscaled force-pushed the vapurrmaid/gh-1459/auto-stop-notif branch from d46b2d9 to f049ae9 Compare May 27, 2022 14:51
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Code LGTM


export const Language = {
bannerTitle: "Workspace shutdown",
bannerDetail: "Your workspace is scheduled to automatically shut down soon.",
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about making this the title instead? I feel like the title and detail share roughly the same information, and so maybe we can merge them!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm a-ok with that, will do rn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:D e4db833 :D

@greyscaled greyscaled merged commit 8d7499f into main May 27, 2022
@greyscaled greyscaled deleted the vapurrmaid/gh-1459/auto-stop-notif branch May 27, 2022 19:23
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
Summary:

When a workspace build is <= 30 minutes from auto-scheduled shutdown,
then an alert banner is displayed on the workspace page.
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 notification 30 minutes before auto-stop
5 participants