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

Add flush to TopNavControlLinkData #7801

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

AMoo-Miki
Copy link
Collaborator

Description

Add flush to TopNavControlLinkData

Changelog

  • feat: Add flush to TopNavControlLinkData

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: Miki <miki@amazon.com>
@@ -60,6 +60,7 @@ export function TopNavControlItem(props: TopNavControlData) {
{props.description}
{links?.map((linkProps) => (
<>
{' '}
Copy link
Member

Choose a reason for hiding this comment

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

Was this intentional?

Copy link
Collaborator Author

@AMoo-Miki AMoo-Miki Aug 22, 2024

Choose a reason for hiding this comment

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

Thanks for the attention to detail. Yes. When multiple links are added, this ensures that some collapsable space exists between them. It also adds space before the first one.

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.80%. Comparing base (3a41f7b) to head (9542ac1).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7801   +/-   ##
=======================================
  Coverage   63.80%   63.80%           
=======================================
  Files        3656     3656           
  Lines       81210    81210           
  Branches    12950    12950           
=======================================
  Hits        51812    51812           
  Misses      26217    26217           
  Partials     3181     3181           
Flag Coverage Δ
Linux_1 30.07% <ø> (ø)
Linux_2 55.87% <ø> (ø)
Linux_3 40.42% <ø> (ø)
Linux_4 31.28% <ø> (ø)
Windows_1 30.09% <ø> (ø)
Windows_2 55.82% <ø> (ø)
Windows_3 40.42% <ø> (ø)
Windows_4 31.28% <ø> (ø)

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.

@AMoo-Miki AMoo-Miki merged commit a5882ee into opensearch-project:main Aug 22, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 22, 2024
* Add `flush` to `TopNavControlLinkData`

Signed-off-by: Miki <miki@amazon.com>

* Changeset file for PR #7801 created/updated

---------

Signed-off-by: Miki <miki@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit a5882ee)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AMoo-Miki pushed a commit that referenced this pull request Aug 22, 2024
* Add `flush` to `TopNavControlLinkData`



* Changeset file for PR #7801 created/updated

---------



(cherry picked from commit a5882ee)

Signed-off-by: Miki <miki@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>
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.

3 participants