-
Notifications
You must be signed in to change notification settings - Fork 0
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
Workspace left nav bar #286
Conversation
refactor nav link updater so that the displayed links can be customized, this is majority required by workspace as with workspace, user would be able to config what features(plugins) then want to see for a workspace, this requires to filter out those links that are not configured by the user. Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## workspace-pr-integr #286 +/- ##
=======================================================
- Coverage 66.99% 66.91% -0.08%
=======================================================
Files 3323 3323
Lines 64476 64529 +53
Branches 10390 10398 +8
=======================================================
- Hits 43195 43181 -14
- Misses 18741 18809 +68
+ Partials 2540 2539 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
efc9053
to
ba53768
Compare
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
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.
LGTM, Nice refactor!
return item; | ||
private filterNavLinks(core: CoreStart) { | ||
const currentWorkspace$ = core.workspaces.currentWorkspace$; | ||
let filterLinksByWorkspace: LinksUpdater; |
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.
will this filterLinksByWorkspace
always be undefined, if switch to another workspace and whole page get refreshed?
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.
Yes, it's always undefined
if page get refreshed. But this implementation should handle both refresh and non-refresh cases.
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.
Nice refactor!
* revert unnecessary changes to recently viewed component refactor nav link updater so that the displayed links can be customized, this is majority required by workspace as with workspace, user would be able to config what features(plugins) then want to see for a workspace, this requires to filter out those links that are not configured by the user. Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * fix test snapshot Signed-off-by: Yulong Ruan <ruanyl@amazon.com> * tweak comments Signed-off-by: Yulong Ruan <ruanyl@amazon.com> --------- Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
Description
This PR revert changes to NavLinksService and CollapsibleNav component.
New feature added to NavLinksService: refactor nav link updater so that the displayed links can be customized, this is majority required by workspace as with workspace, user would be able to config what features(plugins) then want to see for a workspace, this requires to filter out those links that are not configured by the user.
Issues Resolved
Screenshot
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration