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

fix: add modal confirms when transferring in compare #3985

Merged

Conversation

topliceanurazvan
Copy link
Member

Fixes

  • Show a confirm when trying to transfer a resource in the compare & sync
  • Show back the extract buttons inside the inspection ( diff )

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Modal.confirm({
title: `Are you sure you want to ${transferTo === 'cluster' ? 'deploy to cluster' : 'extract to local'}?`,
onOk() {
dispatch(transferResource({ids: [id], direction}));
Copy link
Member

Choose a reason for hiding this comment

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

telemetry here? include the transferTo and number of resources if possible?

Modal.confirm({
title: `Are you sure you want to ${buttonLabel.toLowerCase()}?`,
onOk() {
dispatch(transferResource({ids, direction}));
Copy link
Member

Choose a reason for hiding this comment

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

as above..

@topliceanurazvan
Copy link
Member Author

We already have telemetry in place for this, it's inside the compare slice, under transferResource.fulfilled

image

@olensmar
Copy link
Member

ok thanks - I think we should strive to do telemetry as close to the user action as possible (and not in slices) so we can see where users are performing actions - but we don't have to change this now - just keep in mind for future telemetry!

@topliceanurazvan topliceanurazvan merged commit 3fbbf4e into main May 24, 2023
2 checks passed
@topliceanurazvan topliceanurazvan deleted the razvantopliceanu/fix/replace-action-popup-confirm branch May 24, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing tooltip and confirm action in compare dialog
2 participants