-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[APM] Custom actions: Add flyout for creating and editing custom actions #56365
Comments
Pinging @elastic/apm-ui (Team:apm) |
@cauemarcondes I've updated the description with a new task list and prototype link and screens. Let me know if you have any comments or feedback. |
Create a related issue to track the implementation of the in-context flyout when creating an action from a selected service and transaction detail #57783 |
@formgeist can you tell me what will be the messages for:
If a new filter is added but the value is missing (the user has selected only the field name), are we going to show a message too or just ignore that field? |
@formgeist Where the link |
I've created an issue for the documentation, so we should be able to get a permalink URL we can add https://github.com/elastic/observability-dev/issues/650 |
The placeholder text will be:
The placeholder/empty text will be: Does that help?
What kind of message are you thinking of here? |
@cauemarcondes Did you mean when you've completed the field name, what happens? Can we move the focus on the value field right after? |
Yeah, so I'll show an error message for the max characters, and only make the fields read if they are empty.
I see two scenarios here:
WDYT? |
@formgeist: Summary of what was agreed on Zoom.
For now, we decided to not show any message. |
I think we should be mindful of not adding too much custom validation. If we can get validation from EUI/the platform for free, great! But if we have to handle this I think we should be careful not to spent too much energy on this. On the same note, the text below the label field currently says:
I feel this is a technical limitation that doesn't deserve this much attention. Wouldn't it be better to use that text to help the user understand what the label is used for? And why do we have a limit in the first place? I think dropping this limitation would simplify things a bit. |
I can agree to that this might not be a hard requirement to keep it below 128 chars. We can instead allow for longer, but have the help text state: |
Should we ellipses the label in the actions context menu in that case? |
Yes, definitely truncate with either a EuiTooltip or simple |
Wrt. filter validation: is it bad UX to simply remove a filter if either the field or value is missing when the user clicks save? That would be super simple to do. |
If the user has filled either field or value, there must be some intent, that's why I want to show throw a visual error and allow the user to review. We discussed that if both fields are empty, even if they have added more rows, we would allow them to save. I'm fine with making it more simple, but that was my intention with having a validation if you have filled either field. |
Initial state: any filters are required.
These will be the only validations for the filter section. WDYT @sqren and @formgeist ? |
@cauemarcondes I think this is great for validating your inputs. |
@formgeist what about the message in the toast notification after creating/updating a custom action? |
@cauemarcondes Here are the examples for successful creation, editing, and deletion. |
Summary
As outlined in the design elastic/apm#196 we want to enable users to create custom actions that will appear in the Actions context menus in the UI. Currently available in the Transaction detail view and detail flyouts for Transactions and Spans in the Timeline.
Flyout for creating and editing actions
Links
Figma prototype
Label: Max. 128 characters validation (show error validation message if exceeded)Design
The text was updated successfully, but these errors were encountered: