-
Notifications
You must be signed in to change notification settings - Fork 105
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
Make bhima's Tree Navigation awesome #44
Comments
The second issue can be addressed by simply changing the navigation change watch method - right now it looks for a direct match on a normalised string ('/' removed etc.) navigation.js:62 This could instead iterate through all paths (index in url.indexOf(unit.path) !== -1; // Supported in all JavaScript versions
url.includes(unit.path); // Beautiful - more recent versions of JavaScript |
Include in "end to end tests":
|
(Important UX fix) Collapse the tree on successful log out to make the
|
This directive ought to be migrated to a self-contained |
This commit migrates the `bhimaNav` directive to a component architecture. The navigation component is now called `bhNavigation` and has been migrated to the `components/` directory. One additional improvement has been implemented from #44. The tree now searches through all paths for a match to the current url on change using a `String.includes()` to search for matches. Credit to @sfount for this suggestion.
This commit migrates the `bhimaNav` directive to a component architecture. The navigation component is now called `bhNavigation` and has been migrated to the `components/` directory. One additional improvement has been implemented from #44. The tree now searches through all paths for a match to the current url on change using a `String.includes()` to search for matches. Credit to @sfount for this suggestion.
This commit migrates the `bhimaNav` directive to a component architecture. The navigation component is now called `bhNavigation` and has been migrated to the `components/` directory. One additional improvement has been implemented from #44. The tree now searches through all paths for a match to the current url on change using a `String.includes()` to search for matches. Credit to @sfount for this suggestion.
This commit migrates the `bhimaNav` directive to a component architecture. The navigation component is now called `bhNavigation` and has been migrated to the `components/` directory. One additional improvement has been implemented from #44. The tree now searches through all paths for a match to the current url on change using a `String.includes()` to search for matches. Credit to @sfount for this suggestion.
This commit refactors the tree to include test hooks (`data-unit-key`) and modifies the icons to have better contrast between folders and files. Bug fix: the navigation remembers the selected module and re-selects it on `$stateChangeSuccess`. Finally, test files have been added for (skipped) protractor tests to ensure that the tree keeps working as expected. Closes #44.
This commit refactors the tree to include test hooks (`data-unit-key`) and modifies the icons to have better contrast between folders and files. Bug fix: the navigation remembers the selected module and re-selects it on `$stateChangeSuccess`. Finally, test files have been added for (skipped) protractor tests to ensure that the tree keeps working as expected. Closes #44.
A huge refactor of the CSS + logic powering bhima's Tree Navigation component just landed (#42). The tree is functional and re-skinned for 2.X standards. This issue is to track new features we might want to add to the navigation either for bhima 2.X or beyond. If a PR lands with any of these features, feel free to link them and tick the checkbox.
The text was updated successfully, but these errors were encountered: