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

Extend API Switcher to Context Selector #137

Merged
merged 5 commits into from Oct 15, 2018
Merged

Extend API Switcher to Context Selector #137

merged 5 commits into from Oct 15, 2018

Conversation

josemigallas
Copy link
Contributor

What this PR does / why we need it:

Refactors and extends current API switcher into a ContextSelector component. It features a quick link to Audience before the usual API browser and also displays the name of the current context.

screen shot 2018-10-15 at 13 10 18

Which issue(s) this PR fixes

https://issues.jboss.org/browse/THREESCALE-1395

"react": "^16.0.0",
"react-dom": "^16.0.0",
"react": "^16.5.2",
"react-dom": "^16.5.2",
Copy link
Member

Choose a reason for hiding this comment

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

Missing yarn.lock, was this updated with npm? Is it needed for React.Fragments, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No and yes, fixing now

@@ -144,7 +144,7 @@
"css-loader": "^0.28.9",
"empty": "^0.10.1",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-adapter-react-16": "^1.6.0",
Copy link
Member

Choose a reason for hiding this comment

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

same here, update and lock the dependency

case 'monitoring':
return `API: ${currentApi.service.name}`

default:
Copy link
Member

Choose a reason for hiding this comment

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

it could be useful to have default "Dashboard", and write a simple test with some of the options. Also, next iteration applying flow types and define currentApi, since we are relying on it calling 2 methods.

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 about Choose an API as default case?

Copy link
Member

@didierofrivia didierofrivia left a comment

Choose a reason for hiding this comment

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

🥇

@josemigallas josemigallas merged commit a1163a8 into 3scale:vertical-navigation Oct 15, 2018
@josemigallas josemigallas deleted the THREESCALE-1395_extend_api_switcher branch October 15, 2018 14:24
@josemigallas josemigallas restored the THREESCALE-1395_extend_api_switcher branch October 16, 2018 06:28
@josemigallas josemigallas deleted the THREESCALE-1395_extend_api_switcher branch October 16, 2018 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants