Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UI auto-stop extension #1460

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

Closed
Tracked by #275
greyscaled opened this issue May 14, 2022 · 3 comments Β· Fixed by #1987
Closed
Tracked by #275

UI auto-stop extension #1460

greyscaled opened this issue May 14, 2022 · 3 comments Β· Fixed by #1987
Assignees
Labels
site Area: frontend dashboard
Milestone

Comments

@greyscaled
Copy link
Contributor

greyscaled commented May 14, 2022

User πŸ‘€

As a user that sees in the dashboard that my workspace is shutting down soon, I want some very obvious and immediately available CTA to extend the timer.

Implementation Notes

In the spirit of iteration/agility, we're going to start by adding a button to the workspace schedule banner. This button will extend the workspace deadline by 90 minutes. Later we can add set-able extension times.

The banner that will have the button added to it lives here:

https://main--624de63c6aacee003aa84340.chromatic.com/?path=/story/components-workspaceschedulebanner--example

Next Step

An iterative improvement that can be made after the button is initially added, is configuring values other than 90 minutes.

An even further improvement that can be made further down the road is more of a 'pre-emptive' extension case, whereby we extend well in advance of some CTA because we know we'll be having a long day.

@greyscaled
Copy link
Contributor Author

This is blocked until we have extension experience fleshed out more in CLI/API.

@greyscaled greyscaled added site Area: frontend dashboard needs grooming πŸͺ’ labels May 14, 2022
@greyscaled
Copy link
Contributor Author

Left desc blank on purpose - want to double-check we still want pre-emptive extension for CE. Even if we don't, we still need reactive extension. The difference between the two can be further decomposed.

Currently at the SDK level we just have the ability to PUT the schedules:

coder/coderd/coderd.go

Lines 313 to 315 in 7bb7c6c

r.Route("/autostop", func(r chi.Router) {
r.Put("/", api.putWorkspaceAutostop)
})

@misskniss
Copy link

Please add your planning poker estimate with ZenHub @johnstcn

greyscaled added a commit that referenced this issue Jun 2, 2022
Resolves: #1460

Summary:

An 'Extend' CTA on workspace schedule banner is added so that a user can
extend their workspace lease from the UI.

Details:

* feat: putWorkspaceExtension handler

* refactor: TypesGen dflt import in workspace.ts

* feat: defaultWorkspaceExtension util

Impact:

This completes the UI<-->CLI parity epic in an MVP way. Of course, a
future improvement to make is extending by times other than the default
90 minutes.
greyscaled added a commit that referenced this issue Jun 2, 2022
Resolves: #1460

Summary:

An 'Extend' CTA on workspace schedule banner is added so that a user can
extend their workspace lease from the UI.

Details:

* feat: putWorkspaceExtension handler

* refactor: TypesGen dflt import in workspace.ts

* feat: defaultWorkspaceExtension util

Impact:

This completes the UI<-->CLI parity epic in an MVP way. Of course, a
future improvement to make is extending by times other than the default
90 minutes.
kylecarbs pushed a commit that referenced this issue Jun 10, 2022
Resolves: #1460

Summary:

An 'Extend' CTA on workspace schedule banner is added so that a user can
extend their workspace lease from the UI.

Details:

* feat: putWorkspaceExtension handler

* refactor: TypesGen dflt import in workspace.ts

* feat: defaultWorkspaceExtension util

Impact:

This completes the UI<-->CLI parity epic in an MVP way. Of course, a
future improvement to make is extending by times other than the default
90 minutes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site Area: frontend dashboard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants