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

[Fleet] Show lock icon + tooltip next to hosted agent policy names #97377

Merged

Conversation

jfsiii
Copy link
Contributor

@jfsiii jfsiii commented Apr 16, 2021

Summary

From design ticket https://github.com/elastic/observability-design/issues/32

any ... place we display a link to the hosted agent policy, show an icon with hover tooltip:

This PR closes 1B + 1C from #91906 & two other places which followed the same pattern.

Factored out some repeated code at each call site into a <AgentPolicySummaryLine /> component

Screenshots

Agent Policy List View

Screen Shot 2021-04-16 at 1 01 55 PM

Agent List View

Screen Shot 2021-04-16 at 12 38 40 PM

Packaged Policy List View

Screen Shot 2021-04-16 at 10 23 49 AM

Agent Policy Detail View

Screen Shot 2021-04-16 at 12 21 42 PM

Checklist

Delete any items that are not applicable to this PR.

@jfsiii jfsiii requested a review from a team as a code owner April 16, 2021 17:15
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 16, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@jfsiii jfsiii self-assigned this Apr 16, 2021
@jfsiii jfsiii added auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v8.0.0 labels Apr 16, 2021
@jfsiii jfsiii requested a review from hbharding April 16, 2021 17:15
@jfsiii jfsiii changed the title [Fleet] Use <AgentPolicySummaryLine /> for consistent name+icon lockup [Fleet] Show lock icon + tooltip next to hosted agent policy names Apr 16, 2021
@jfsiii
Copy link
Contributor Author

jfsiii commented Apr 18, 2021

@elasticmachine merge upstream

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

LGTM. I checked the policy list and integrations overview page locally and icon + tooltip show up as expected. I tested it with the fleet-server package but didn't have a fleet-server enrolled currently, that is why I didn't check the other two screens. But can't see a reason why it would not work.

@@ -8323,7 +8323,6 @@
"xpack.fleet.agentList.policyColumnTitle": "代理策略",
"xpack.fleet.agentList.policyFilterText": "代理策略",
"xpack.fleet.agentList.reassignActionText": "分配到新策略",
"xpack.fleet.agentList.revisionNumber": "修订版 {revNumber}",
Copy link
Contributor

Choose a reason for hiding this comment

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

Not fully sure how this works. But it seems the revisionNumber is still available in the new code?

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 787.8KB 786.1KB -1.7KB

History

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

cc @jfsiii

@jfsiii
Copy link
Contributor Author

jfsiii commented Apr 19, 2021

Thanks for the 👀 and 🚀 , @ruflin. I'm going to merge this and we can open bug tickets if we find something missing/wrong

@jfsiii jfsiii merged commit 2f4e9db into elastic:master Apr 19, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Apr 19, 2021
…ic#97377)

## Summary

From design ticket elastic/observability-design#32
> any ... place we display a link to the hosted agent policy, show an icon with hover tooltip:

This PR closes 1B + 1C from elastic#91906 & two other places which followed the same pattern.

Factored out some repeated code at each call site into a `<AgentPolicySummaryLine />` component


<details><summary>Screenshots</summary>
<h3>Agent Policy List View</h3>
<img width="1103" alt="Screen Shot 2021-04-16 at 1 01 55 PM" src="https://user-images.githubusercontent.com/57655/115059112-18a99180-9eb4-11eb-9035-36a8e9db1f9d.png">

<h3>Agent List View</h3>
<img width="1185" alt="Screen Shot 2021-04-16 at 12 38 40 PM" src="https://user-images.githubusercontent.com/57655/115058885-bea8cc00-9eb3-11eb-8529-6f185fcac7d2.png">


<h3>Packaged Policy List View</h3>
<img width="1251" alt="Screen Shot 2021-04-16 at 10 23 49 AM" src="https://user-images.githubusercontent.com/57655/115058880-be103580-9eb3-11eb-8060-c501663af556.png">

<h3>Agent Policy Detail View</h3>
<img width="1145" alt="Screen Shot 2021-04-16 at 12 21 42 PM" src="https://user-images.githubusercontent.com/57655/115058883-bea8cc00-9eb3-11eb-9970-462ff4600fa4.png">



</details>

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Apr 19, 2021
… (#97441)

## Summary

From design ticket elastic/observability-design#32
> any ... place we display a link to the hosted agent policy, show an icon with hover tooltip:

This PR closes 1B + 1C from #91906 & two other places which followed the same pattern.

Factored out some repeated code at each call site into a `<AgentPolicySummaryLine />` component


<details><summary>Screenshots</summary>
<h3>Agent Policy List View</h3>
<img width="1103" alt="Screen Shot 2021-04-16 at 1 01 55 PM" src="https://user-images.githubusercontent.com/57655/115059112-18a99180-9eb4-11eb-9035-36a8e9db1f9d.png">

<h3>Agent List View</h3>
<img width="1185" alt="Screen Shot 2021-04-16 at 12 38 40 PM" src="https://user-images.githubusercontent.com/57655/115058885-bea8cc00-9eb3-11eb-8529-6f185fcac7d2.png">


<h3>Packaged Policy List View</h3>
<img width="1251" alt="Screen Shot 2021-04-16 at 10 23 49 AM" src="https://user-images.githubusercontent.com/57655/115058880-be103580-9eb3-11eb-8060-c501663af556.png">

<h3>Agent Policy Detail View</h3>
<img width="1145" alt="Screen Shot 2021-04-16 at 12 21 42 PM" src="https://user-images.githubusercontent.com/57655/115058883-bea8cc00-9eb3-11eb-9970-462ff4600fa4.png">



</details>

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: John Schulz <john.schulz@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants