Skip to content

feat: add impending deletion banner to workspace page #7634

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

Merged
merged 5 commits into from
May 25, 2023

Conversation

Kira-Pilot
Copy link
Member

Screenshot 2023-05-22 at 3 06 01 PM

resolves #7359

@Kira-Pilot Kira-Pilot requested review from a team, rodrimaia, bpmct and kylecarbs and removed request for a team May 22, 2023 19:39
@Kira-Pilot
Copy link
Member Author

@kylecarbs, @bpmct and I would like to know how you feel about this copy. It will probably change a bit when we add a workspace archival component to this feature, but curious if you have initial thoughts.

@ammario
Copy link
Member

ammario commented May 22, 2023

image This banner should be a lot louder IMO, maybe when days left is <7? Maybe this orphan banner can provide inspiration:

image

The copy looks good to me.

@Kira-Pilot
Copy link
Member Author

Kira-Pilot commented May 24, 2023

Screenshot 2023-05-24 at 12 54 22 PM

@ammario I'm hesitant to introduce a new UI pattern, i.e. a new banner style; however I did add some logic to show our 'warning' banner flavor when workspaces will be deleted in 7 days or less so as to convey more urgency. This banner will also be displayed on the /workspaces page and we'll have additional badges and VS Code notifications.

@Kira-Pilot Kira-Pilot requested a review from BrunoQuaresma May 24, 2023 16:56
!displayImpendingDeletionBanner
) {
return null
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I found it hard to read/understand this "display or not" logic here. I think the names displayImpendingDeletion and displayImpendingDeletionBanner are very similar and I took some time to understand they are different but not sure how to improve 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.

Ah, let me improve that

@BrunoQuaresma
Copy link
Collaborator

One comment about this feature overall, maybe would be nice to add a help popover in the "Impending deletion" status explaining what it means.

@Kira-Pilot Kira-Pilot merged commit 0c66523 into main May 25, 2023
@Kira-Pilot Kira-Pilot deleted the deletion-banner-workspace-page/kira-pilot branch May 25, 2023 17:55
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workspace actions: add impending deletion banner to the workspace page
3 participants