-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Added modal to manage agent policies of an integration policy #186987
[Fleet] Added modal to manage agent policies of an integration policy #186987
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
/ci |
/ci |
Hi @juliaElastic, as we discussed, we can remove the badge with the plus icon when displaying a single Agent policy, since we expect that the majority of customers will go back to the Integration wizard to edit their settings. |
/ci |
Pinging @elastic/fleet (Team:Fleet) |
I'm testing locally and I have two small observations about this modal:
Screen.Recording.2024-07-02.at.10.04.26.mov
|
import { isPackageLimited } from '../../../../../../../../../common/services'; | ||
import { useGetAgentPolicies, useGetOutputs, useGetPackagePolicies } from '../../../../../../hooks'; | ||
|
||
export function useAgentPoliciesOptions(packageInfo?: PackageInfo) { |
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 for extracting this function!
<EuiText> | ||
<FormattedMessage | ||
id="xpack.fleet.manageAgentPolicies.confirmModalDescription" | ||
defaultMessage="Agent policies which share this integration" |
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.
maybe it would sound better Agent policies sharing this integration
?
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.
good idea, updated
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.
Tested with the new changes, LGTM 🚢
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Closes #182112
Added modal to manage agent policies.
To verify:
+
button in the agent policies columnManage agent policies
in the popoverMade a change to the table column display to show a
+
button even if there is only one policy. Previously the popover could only be accessed if there are at least 2 agent policies.Also restored the agent policy link, lock icon and revision display (instead of a badge) if there are multiple agent policies.
@simosilvestri Let me know if you have any UX recommendation as it differs slightly from the prototype.
EDIT: after discussing with Simona, removed the + button in case of a single agent policy assigned to the integration policy.
Disabling
Manage agent policies
button if the current user doesn't have at least write integration policies and write agent policies privilege.This is how it looks with read privileges:
Checklist