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

[Dashboard Navigation] Add external link icon #174407

Merged

Conversation

Heenawter
Copy link
Contributor

@Heenawter Heenawter commented Jan 5, 2024

Closes #165771

Summary

This PR adds the external prop to links in the Link panel in the following cases:

  1. A dashboard link has the "Open in new tab" setting set to true
  2. All URLs, regardless of if the "Open in new tab" setting is set to true or false

This external prop renders the popout icon beside the links, like so:

linksExternalProp

Checklist

For maintainers

@Heenawter Heenawter added release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. backport:skip This commit does not require backporting Project:Dashboard Navigation Related to the Dashboard Navigation Project labels Jan 5, 2024
@Heenawter Heenawter self-assigned this Jan 5, 2024
@Heenawter
Copy link
Contributor Author

/ci

@Heenawter Heenawter force-pushed the links-add-external-icon_2024-01-05 branch from a184adf to 6c57e33 Compare January 6, 2024 00:04
@Heenawter
Copy link
Contributor Author

/ci

@Heenawter Heenawter marked this pull request as ready for review January 8, 2024 16:33
@Heenawter Heenawter requested a review from a team as a code owner January 8, 2024 16:33
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
links 34.0KB 34.1KB +82.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @Heenawter

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Nice test additions with RTL! Code review only, LGTM!

@Heenawter Heenawter merged commit 928a35d into elastic:main Jan 8, 2024
19 checks passed
@Heenawter Heenawter deleted the links-add-external-icon_2024-01-05 branch January 8, 2024 17:55
delanni pushed a commit to delanni/kibana that referenced this pull request Jan 11, 2024
Closes elastic#165771

## Summary

This PR adds the `external` prop to links in the Link panel in the
following cases:
1. A dashboard link has the "Open in new tab" setting set to `true`
2. All URLs, regardless of if the "Open in new tab" setting is set to
`true` or `false`

This `external` prop renders the popout icon beside the links, like so:


![linksExternalProp](https://github.com/elastic/kibana/assets/8698078/3bc1ea05-fffd-455a-a4e3-81456bb6b024)



### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort Project:Dashboard Navigation Related to the Dashboard Navigation Project release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard navigation] Show icon on external links and Dashboard links that open in a new tab
5 participants