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

UI: HDS adoption replace <ConfirmAction> component #21520

Merged

Conversation

hellobontempo
Copy link
Contributor

@hellobontempo hellobontempo commented Jun 30, 2023

Replaces the <ConfirmAction> dropdown with a Button + confirmation modal. In addition, I updated the logic to be more general, instead of explicitly referencing Delete actions, which better aligns with how this component is used

Summary of changes:

  1. removed the @confirmText arg and instead modal buttons are always Confirm and Cancel for consistency
  2. Title default is Are you sure? which is more general than the previous Delete this?
  3. Deleted contextual component confirm/message

new | previous functionality

Screenshot 2023-11-15 at 9 23 52 PM

@hellobontempo hellobontempo added this to the 1.15 milestone Jun 30, 2023
@VioletHynes VioletHynes added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Jul 6, 2023
@hellobontempo hellobontempo marked this pull request as draft July 12, 2023 23:21
@hellobontempo hellobontempo removed this from the 1.15.0-rc1 milestone Sep 11, 2023
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2023-11-15 at 7 03 46 PM

@@ -48,6 +48,18 @@
width: 100%;
}

// TODO HDS polish - temp styling fix for ConfirmAction dropdown buttons
Copy link
Contributor Author

Choose a reason for hiding this comment

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

How the popup menu styling looks - left is new component with this class, right is old component
Screenshot 2023-11-15 at 7 12 32 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2023-11-15 at 7 37 03 PM

@@ -21,14 +21,11 @@

<div class="field is-grouped box is-fullwidth is-bottomless">
<ConfirmAction
@buttonClasses="button is-primary"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2023-11-15 at 7 03 46 PM

@@ -8,13 +8,14 @@
<ul class="menu-list">
<li class="action">
<ConfirmAction
@buttonClasses="link is-destroy"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2023-11-15 at 7 42 35 PM

@@ -8,14 +8,13 @@
<ul class="menu-list">
<li class="action">
<ConfirmAction
@buttonText="Remove"
Copy link
Contributor Author

@hellobontempo hellobontempo Nov 16, 2023

Choose a reason for hiding this comment

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

Screenshot 2023-11-15 at 7 51 40 PM

Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@hashishaw hashishaw left a comment

Choose a reason for hiding this comment

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

Overall looks pretty good! Just a couple minor comments, nothing blocking

ui/app/templates/vault/cluster/access/leases/list.hbs Outdated Show resolved Hide resolved
ui/lib/core/addon/components/confirm-action.hbs Outdated Show resolved Hide resolved
ui/lib/kmip/addon/templates/credentials/index.hbs Outdated Show resolved Hide resolved
ui/tests/integration/components/confirm-action-test.js Outdated Show resolved Hide resolved
@hellobontempo hellobontempo added this to the 1.16.0-rc1 milestone Nov 16, 2023
@hellobontempo hellobontempo enabled auto-merge (squash) November 17, 2023 23:32
@hellobontempo hellobontempo merged commit 4ac07e1 into main Nov 17, 2023
70 checks passed
@hellobontempo hellobontempo deleted the ui/VAULT-17329/replace-confirm-action-dropdown-with-modal branch November 17, 2023 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants