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: show status text during state changes #4056

Merged
merged 1 commit into from Sep 25, 2023
Merged

feat: show status text during state changes #4056

merged 1 commit into from Sep 25, 2023

Conversation

deboer-tim
Copy link
Collaborator

What does this PR do?

When an object is being deleted there is no indication in the UI. Mairin suggested two changes:

  • Change status icon to a spinner. (This will be done separately, and although it shows something is happening, it doesn't tell you what it is)
  • Replacing the age column in the Container/PodList to show Starting/Stopping/ Deleting when one of these state changes is happening, and adding the equivalent message below the action buttons in the corresponding Details page.

Since the same state message will appear in all 4 places, I created a really simple StateChange component. It just shows a simple message when in these states, and if you want to hide something when these messages are shown you can use its slot.

Screenshot/screencast of this PR

Screen.Recording.2023-09-22.at.2.28.43.PM.mov
Screen.Recording.2023-09-22.at.2.29.58.PM.mov

What issues does this PR fix or reference?

Fixes #3529.

How to test this PR?

Use a container or pod that will take a while to start or stop (e.g. Kind container, or deleting a pod on Kube), and watch the age column (or right side of Details).

@deboer-tim deboer-tim requested review from benoitf and a team as code owners September 22, 2023 18:32
@deboer-tim deboer-tim requested review from dgolovin and lstocchi and removed request for a team September 22, 2023 18:32
@deboer-tim deboer-tim force-pushed the state-change branch 2 times, most recently from c68885a to 18ff2a0 Compare September 22, 2023 18:51
@deboer-tim deboer-tim enabled auto-merge (rebase) September 25, 2023 15:00
auto-merge was automatically disabled September 25, 2023 15:24

Rebase failed

deboer-tim added a commit that referenced this pull request Sep 25, 2023
Currently there is no indication in the status icon when something is being deleted.
We're adding text to the age column (#4056), but the design preference is that this
is re-enforced by the status icon changing into a spinner.

This adds the DELETING status, using a correctly sized Spinner component with no
border. Added a test, and some missing tests for other states.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
When an object is being deleted there is no indication in the UI. Mairin suggested
two changes:
- Change status icon to a spinner. (This will be done separately, and although it
  shows _something_ is happening, it doesn't tell you what it is)
- Replacing the age column in the Container/PodList to show Starting/Stopping/
  Deleting when one of these state changes is happening, and adding the equivalent
  message below the action buttons in the corresponding Details page.

Since the same state message will appear in all 4 places, I created a really
simple StateChange component. It just shows a simple message when in these states,
and if you want to hide something when these messages are shown you can use its
slot.

Fixes #3529.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim
Copy link
Collaborator Author

'unresolvable' git conflict in GitHub UI, so rebased locally and force pushed.

@deboer-tim deboer-tim merged commit 5e9a5d3 into main Sep 25, 2023
8 checks passed
@deboer-tim deboer-tim deleted the state-change branch September 25, 2023 20:24
deboer-tim added a commit that referenced this pull request Sep 25, 2023
Currently there is no indication in the status icon when something is being deleted.
We're adding text to the age column (#4056), but the design preference is that this
is re-enforced by the status icon changing into a spinner.

This adds the DELETING status, using a correctly sized Spinner component with no
border. Added a test, and some missing tests for other states.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@podman-desktop-bot podman-desktop-bot added this to the 1.5.0 milestone Sep 25, 2023
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.

Deleting container deployed to sandbox dev context not working properly.
3 participants