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

Adds empty list CTA and confirm delete button to Api Keys Page #13471 #13608

Merged
merged 12 commits into from
Oct 31, 2018

Conversation

mondras
Copy link
Contributor

@mondras mondras commented Oct 11, 2018

Fixes #13471

Wasn't sure if a new route org/apikeys/new with its controller was needed.
Also had to add an onClick prop to EmptyListCTA to show the hidden form.

Thanks Grafana team! We use your tool on a daily basis, it was time to give some back.

Screenshots of how it looks:

Empty CTA page:
screen shot 2018-10-10 at 5 23 54 pm

Adding keys on CTA page:
screen shot 2018-10-10 at 5 24 12 pm

Confirm deletion:
screen shot 2018-10-10 at 5 24 23 pm

@CLAassistant
Copy link

CLAassistant commented Oct 11, 2018

CLA assistant check
All committers have signed the CLA.

@marefr
Copy link
Member

marefr commented Oct 11, 2018

@mondras thanks for your contribution. Please sign the Contributor License Agreement (CLA). If you've tried to sign, but still didn't work you've probably used a different email address in git commits than you have specified in Github. You should be able to add that other email to Github and then you should be able to sign the CLA.

Copy link
Contributor

@jschill jschill left a comment

Choose a reason for hiding this comment

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

Nice work @mondras. Thank you!

@torkelo
Copy link
Member

torkelo commented Oct 11, 2018

Please sign CLA

@@ -7,6 +7,7 @@ const model = {
buttonIcon: 'ga css class',
buttonLink: 'http://url/to/destination',
buttonTitle: 'Click me',
onClick: 'handler',
Copy link
Contributor

@peterholmberg peterholmberg Oct 11, 2018

Choose a reason for hiding this comment

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

What's the reason for p[assing a string into the onClick prop? Wouldn't it make more sense to use jest.fn()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will update it.

@marefr
Copy link
Member

marefr commented Oct 15, 2018

@mondras thanks for your contribution. Please sign the Contributor License Agreement (CLA). If you've tried to sign, but still didn't work you've probably used a different email address in git commits than you have specified in Github. You should be able to add that other email to Github and then you should be able to sign the CLA.

@torkelo
Copy link
Member

torkelo commented Oct 22, 2018

@mondras can you sign the CLA so we can merge this?

@mondras
Copy link
Contributor Author

mondras commented Oct 26, 2018

Done, sorry about the delay. Also updated tests based on @peterholmberg 's input.

@torkelo torkelo merged commit 35688b2 into grafana:master Oct 31, 2018
@ying-jeanne ying-jeanne added the pr/external This PR is from external contributor label Apr 29, 2021
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.

UX: Add empty list CTA and confirm delete button to Api Keys page
7 participants