-
Notifications
You must be signed in to change notification settings - Fork 920
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
[navigation]fix: optimize the logic to detect current nav group #8189
[navigation]fix: optimize the logic to detect current nav group #8189
Conversation
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8189 +/- ##
=======================================
Coverage 64.03% 64.03%
=======================================
Files 3740 3740
Lines 88580 88589 +9
Branches 13790 13794 +4
=======================================
+ Hits 56720 56726 +6
- Misses 31262 31265 +3
Partials 598 598
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: SuZhou-Joe <suzhou@amazon.com>
@SuZhou-Joe should this be tagged with 2.17.1 now? |
Yes, updated. |
* fix: optimize the logic to detect current nav group Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: optimize code Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * Changeset file for PR #8189 created/updated --------- Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 9a88bf5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… (#8321) * fix: optimize the logic to detect current nav group * feat: optimize code * Changeset file for PR #8189 created/updated --------- (cherry picked from commit 9a88bf5) Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…search-project#8189) (opensearch-project#8321) * fix: optimize the logic to detect current nav group * feat: optimize code * Changeset file for PR opensearch-project#8189 created/updated --------- (cherry picked from commit 9a88bf5) Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
This PR is to fix the bug that:
left+nav.mov
Issues Resolved
Screenshot
1. current nav group will be mapped to global system nav group even if user is in a workspace.
20240913162710198.mp4
2. current nav group will be mapped to a nav group even when user is out of a workspace.
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration