-
Notifications
You must be signed in to change notification settings - Fork 159
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
Separated navigation #3013
Separated navigation #3013
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
I have a small issue when displaying some title for the current extension. Currently, it is displayed only in case of extension having only one nav item when it replaces the menu button. But when we have the menu button there it doesn't look nice. I'm thinking if this might be solved with having the sidebar always visible as was once already discussed. Then this issue would be solved. I'm just a bit scared of how it would look like when switching between extension with menu and without. Suddenly appearing sidebar might not be so nice in the end as well. Anyway, seems to me like a problem for a separate issue. |
e415e91
to
ac0f188
Compare
50a2ad0
to
099420d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine so far, see comments
I guess not easy to add acceptance tests ? Regarding the trouble with the sidebar button: in what scenario would the button/sidebar flicker ? Is it when switching between an app that has a sidebar to one that doesn't ? |
099420d
to
74d7cf4
Compare
We'd need to load some other extension with routes to test the app switcher. And TBH I didn't want to implement acceptance tests for this part because I think this should be covered with unit tests. As soon as they're set up in Phoenix they can be implemented. I raised an issue for it here #3020 |
Exactly. Basically scenario when an extension has only one nav item. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting the currentExtensionName
from an app that is only defined in applications
(see config.json.sample) doesn't work. When I click on the app, the menu with burger icon stays and the js console throws an error. See comment for details.
74d7cf4
to
0c7f747
Compare
…o app switcher Added translation Changed methods name and removed arguments Extended toggle name
0c7f747
to
c775001
Compare
@kulmann Changes implemented or addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Description
In the sidebar is now only extension-specific navigation and into the apps switcher are automatically injected extensions which have at least one nav item. In the case that extension has only one nav item, the menu button is replaced by the name of the extension.
Related Issue
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: