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

Another solution for missing API keys #1247

Merged
merged 12 commits into from
Jul 1, 2016

Conversation

jykae
Copy link
Contributor

@jykae jykae commented Jun 30, 2016

Closes #1216

Proposed changes

  • add Meteor method for creating API Umbrella user & API key
  • modify user profile page
  • add i18n strings

@jykae jykae added the WIP label Jun 30, 2016
@jykae jykae added this to the Sprint 25 milestone Jun 30, 2016
@jykae
Copy link
Contributor Author

jykae commented Jun 30, 2016

Based on discussion after today's daily:
This new solution does not change "setup wizard flow", but only proposes method for getting API key if missing.

On profile page I propose separate section for each proxy, as we are going towards multiproxy support, currently only API Umbrella section.

@@ -16,6 +16,9 @@
"signUp": "Sign Up",
"apiCatalogue": "API Catalogue",
"profile": "Profile",
"profile_usernameIsTaken": "Username is already taken",
"profile_UmbrellaHeader": "API Umbrella",
Copy link
Contributor

@brylie brylie Jul 1, 2016

Choose a reason for hiding this comment

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

Camel case starts with lowercase in most other keys. Change for consistency.

profile_umbrellaHeader

@jykae
Copy link
Contributor Author

jykae commented Jul 1, 2016

@brylie Requested fixes done. Could you help with the clipboard, thanks.

@brylie
Copy link
Contributor

brylie commented Jul 1, 2016

When clicking 'Finish', the settings wizard has a noticeable delay, e.g. 2-3 seconds. Has the form submit hook logic changed? Perhaps route the user before doing API Umbrella related steps.

@brylie
Copy link
Contributor

brylie commented Jul 1, 2016

When clicking "Get API Key for Umbrella" there is a significant delay with no indication that anything is happening. Lets add a spinner or some other indicator, e.g. grey out the button, so that the user does not grow impatient or become confused.

@jykae
Copy link
Contributor Author

jykae commented Jul 1, 2016

Haven't touched it, could be another thing

@brylie
Copy link
Contributor

brylie commented Jul 1, 2016

Since we are working with the Profile component, it is a good opportunity to move it to the root level. This is what we have done with the catalogue, bookmarks, ratings, and API Backends. I.e. we are incrementally refactoring our project to have components at the root level.

@brylie
Copy link
Contributor

brylie commented Jul 1, 2016

Please pull changes before making any other changes. I refactored the code by moving the profile code to a 'users' component.

"profile_apiKey_copyButtonText": "Copy API key",
"profile_apiKey_copySuccessful": "API key copied to clipboard.",
"profile_usernameIsTaken": "Username is already taken",
"profile_umbrellaHeader": "API Umbrella",
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably make this text more generic. E.g. API Key(s). This is similar to how we don't use the word "Swagger" when referring to API Docs.

@jykae
Copy link
Contributor Author

jykae commented Jul 1, 2016

@brylie we are done.

@jykae jykae merged commit 1442efe into develop Jul 1, 2016
@jykae jykae removed the in progress label Jul 1, 2016
@jykae jykae deleted the bugfix/empty-api-key-anothersolution branch July 1, 2016 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants