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

Add intermediate confirmation step in ApiKeySettingsModal #2514

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

CDimonaco
Copy link
Member

Description

Add confirmation modal in ApiKeySettings dialog, to double check if the user wants to generate a new Api key

How was this tested?

Automated/e2e tests

@CDimonaco CDimonaco added enhancement New feature or request javascript Pull requests that update Javascript code env Create an ephimeral environment for the pr branch labels Apr 12, 2024
@CDimonaco CDimonaco requested a review from jagabomb April 12, 2024 09:33
@CDimonaco CDimonaco self-assigned this Apr 12, 2024
@CDimonaco CDimonaco force-pushed the api_key_settings_confirmation_modal branch from 09f6653 to d56d0d4 Compare April 12, 2024 09:33
@CDimonaco CDimonaco marked this pull request as ready for review April 12, 2024 09:59
@CDimonaco CDimonaco requested a review from EMaksy April 12, 2024 09:59
@jagabomb
Copy link
Contributor

@CDimonaco Thanks for this. This works well for me and I see that it retains the state (values of) nicely. 😄 I would like you to add a full stop (.) at the end of the last sentence, "This action cannot be undone". I will double check the warning message in general with @abravosuse.

@jagabomb
Copy link
Contributor

@CDimonaco Can we also change the warning message to say " ...on all the registered hosts." instead of " ...in all the registered hosts." So the full message is this... "Generating a new API Key forces an update of the agent configuration on all the registered hosts. This action cannot be undone."

Copy link
Contributor

@jagabomb jagabomb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

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

Nice!
Loved the transition in storybook

@CDimonaco CDimonaco merged commit 29b4a41 into main Apr 15, 2024
24 checks passed
@CDimonaco CDimonaco deleted the api_key_settings_confirmation_modal branch April 15, 2024 07:36
Copy link
Member

@EMaksy EMaksy left a comment

Choose a reason for hiding this comment

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

Hey man great job lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request env Create an ephimeral environment for the pr branch javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

None yet

4 participants