-
Notifications
You must be signed in to change notification settings - Fork 919
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
Add a learn more flyout to the collaborators page #9145
Add a learn more flyout to the collaborators page #9145
Conversation
Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Kapian1234 <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9145 +/- ##
==========================================
- Coverage 60.97% 60.97% -0.01%
==========================================
Files 3812 3813 +1
Lines 91353 91369 +16
Branches 14433 14436 +3
==========================================
+ Hits 55703 55711 +8
- Misses 32096 32101 +5
- Partials 3554 3557 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ch-Dashboards into collaborators_learnMore
Signed-off-by: Kapian1234 <[email protected]>
]; | ||
return ( | ||
<EuiFlyout | ||
style={{ maxWidth: 431 }} |
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.
Is it necessary to hard code max width here?
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.
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.
Flyout has size
property, perhaps using s
is good enough?
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.
Thanks! size="s"
looks better.
Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Kapian1234 <[email protected]>
{ | ||
label: i18n.translate('workspace.form.panels.collaborator.learnMore', { | ||
defaultMessage: 'Learn more', | ||
}), | ||
controlType: 'link', | ||
run: handleLearnMoreClick, | ||
} as TopNavControlLinkData, |
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.
Should this be part of description?
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. Thank you for the reminder!
it('should render normally', () => { | ||
const { renderResult } = setup(); | ||
expect(renderResult).toMatchSnapshot(); |
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.
Nit: this is too general
{description} | ||
</EuiText> | ||
<EuiSpacer /> | ||
<EuiLink href={link} target="_blank" style={{ fontWeight: 'normal' }}> |
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.
Do we need inline style here?
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, otherwise it would be bold, which is not expected.
@@ -437,8 +437,10 @@ export class DocLinksService { | |||
advancedSettings: `${OPENSEARCH_DASHBOARDS_VERSIONED_DOCS}management/advanced-settings/`, | |||
}, | |||
workspace: { | |||
// https://opensearch.org/docs/latest/dashboards/workspace/workspace-acl/ | |||
acl: `${OPENSEARCH_DASHBOARDS_VERSIONED_DOCS}workspace/workspace-acl/`, |
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.
Is it safe to delete this entry?
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.
It was a mistake. It should be removed in this pr but I forgot it. So I remove it here.
Signed-off-by: Kapian1234 <[email protected]>
Signed-off-by: Kapian1234 <[email protected]>
* Add a learn more flyout to the collaborators page Signed-off-by: Kapian1234 <[email protected]> * Changeset file for PR #9145 created/updated * Update the link Signed-off-by: Kapian1234 <[email protected]> * Update snapshots Signed-off-by: Kapian1234 <[email protected]> * Modify flyout size Signed-off-by: Kapian1234 <[email protected]> * Update collaborators description Signed-off-by: Kapian1234 <[email protected]> * Move learn_more link into the description Signed-off-by: Kapian1234 <[email protected]> --------- Signed-off-by: Kapian1234 <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit e401613) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#9145) * Add a learn more flyout to the collaborators page Signed-off-by: Kapian1234 <[email protected]> * Changeset file for PR opensearch-project#9145 created/updated * Update the link Signed-off-by: Kapian1234 <[email protected]> * Update snapshots Signed-off-by: Kapian1234 <[email protected]> * Modify flyout size Signed-off-by: Kapian1234 <[email protected]> * Update collaborators description Signed-off-by: Kapian1234 <[email protected]> * Move learn_more link into the description Signed-off-by: Kapian1234 <[email protected]> --------- Signed-off-by: Kapian1234 <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Add a "Learn More" flyout providing additional information to the collaborators page.
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration