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

side navigation changes for notifications #222

Merged
merged 8 commits into from
Jul 22, 2024

Conversation

riysaxen-amzn
Copy link
Collaborator

@riysaxen-amzn riysaxen-amzn commented Jul 18, 2024

Description

  • This PR adds side navigation changes to notification plugin when feature is enabled

Issues Resolved

After side nav changes, when feature is enabled

Image 7-18-24 at 5 39 PM (1)
Image 7-18-24 at 5 39 PM

When feature is disabled:

Image 7-18-24 at 7 22 AM

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: Riya Saxena <[email protected]>
public/plugin.ts Outdated
if (core.chrome.navGroup.getNavGroupEnabled()) {

// register applications with category and use case information
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
Copy link
Member

@SuZhou-Joe SuZhou-Joe Jul 19, 2024

Choose a reason for hiding this comment

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

Notification features should be only put into settings and setup nav group.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed

Signed-off-by: Riya Saxena <[email protected]>
@riysaxen-amzn riysaxen-amzn requested a review from SuZhou-Joe July 19, 2024 19:08
public/plugin.ts Outdated
},
});

const navLinks = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Shorten this to

const navlinks = ['', '', ''].map(id => ({ id, parent: PLUGIN }))

id: `email_groups`,
title: 'Email recepient groups',
order: 9090,
workspaceAvailability: WorkspaceAvailability.outsideWorkspace,
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is workspaceAvailability? and what are the other options used for? Could this be workspace/no-workspace distinction?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, so plugins under groups of:

settings and setup
Data administration
are supposed not to be accessible inside a workspace, in such case, we added this field to indicate our plugins are only accessible outside the workspace so that users won’t be able to visit the applications inside a workspace.

Signed-off-by: Riya Saxena <[email protected]>
Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.83%. Comparing base (1fc2abe) to head (3da9b1c).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #222      +/-   ##
==========================================
- Coverage   86.70%   84.83%   -1.87%     
==========================================
  Files          52       54       +2     
  Lines        1497     1583      +86     
  Branches      373      414      +41     
==========================================
+ Hits         1298     1343      +45     
- Misses        196      237      +41     
  Partials        3        3              
Flag Coverage Δ
dashboards-notifications 84.83% <ø> (-1.87%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@riysaxen-amzn riysaxen-amzn requested a review from amsiglan July 20, 2024 20:51
public/plugin.ts Outdated Show resolved Hide resolved
Signed-off-by: SuZhou-Joe <[email protected]>
@SuZhou-Joe SuZhou-Joe merged commit 9e6066a into opensearch-project:main Jul 22, 2024
10 of 11 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 22, 2024
* side navigation changes for notifications

Signed-off-by: Riya Saxena <[email protected]>

* fix jest tests

Signed-off-by: Riya Saxena <[email protected]>

* navLinks changes

Signed-off-by: Riya Saxena <[email protected]>

* fixed the issues

Signed-off-by: Riya Saxena <[email protected]>

* fixed the issues

Signed-off-by: Riya Saxena <[email protected]>

* addressed the comments

Signed-off-by: Riya Saxena <[email protected]>

* addressed the comments

Signed-off-by: Riya Saxena <[email protected]>

* Update public/plugin.ts

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: SuZhou-Joe <[email protected]>
(cherry picked from commit 9e6066a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AWSHurneyt pushed a commit that referenced this pull request Jul 22, 2024
* side navigation changes for notifications



* fix jest tests



* navLinks changes



* fixed the issues



* fixed the issues



* addressed the comments



* addressed the comments



* Update public/plugin.ts



---------




(cherry picked from commit 9e6066a)

Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
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: SuZhou-Joe <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 30, 2024
* side navigation changes for notifications

Signed-off-by: Riya Saxena <[email protected]>

* fix jest tests

Signed-off-by: Riya Saxena <[email protected]>

* navLinks changes

Signed-off-by: Riya Saxena <[email protected]>

* fixed the issues

Signed-off-by: Riya Saxena <[email protected]>

* fixed the issues

Signed-off-by: Riya Saxena <[email protected]>

* addressed the comments

Signed-off-by: Riya Saxena <[email protected]>

* addressed the comments

Signed-off-by: Riya Saxena <[email protected]>

* Update public/plugin.ts

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Co-authored-by: SuZhou-Joe <[email protected]>
(cherry picked from commit 9e6066a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
amsiglan pushed a commit that referenced this pull request Jul 30, 2024
* side navigation changes for notifications



* fix jest tests



* navLinks changes



* fixed the issues



* fixed the issues



* addressed the comments



* addressed the comments



* Update public/plugin.ts



---------




(cherry picked from commit 9e6066a)

Signed-off-by: Riya Saxena <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
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: SuZhou-Joe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants