-
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
[Security Solution][Detections] Table UI: consistent "See all" buttons #117029
Comments
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Scope of work:
As 2 first look like pretty much straightforward, there is some input needed for the third point. @yiyangliu9286, could you please let us know what do you think and what could be the best way to go.
Attaching a screen to give a sense how popover works right now |
@vitaliidm Thanks for summarizing it. Here are my general thoughts: TL;DR: for these types of UI/UX enhancements, I feel like we should try to solve these separately by considering the actual persona and workflows that our users are landing to these different tables (1. Tags for Rules management table 2. Rules assigned to for the Exceptions table) and determine what are the best practise we would like to improve for user experience. Here are my thoughts / exploration works for how to treat the interactions for the long & multiple tags in Rules management table (attaching Figma file for full design exploration).
However, if we go with this version of design for tags, there are a few UX limitations & problems:
V2. Tags shown as part of rules column (Same behaviour as Stack Rules) <- I am more leaning towards this version (looping in @jethr0null for product considerations for this direction going forward) I feel like this is what I would suggest the design direction to go and here are some benefits w. this view:
|
@vitaliidm As for Exceptions table, I think what you suggested here for |
@yiyangliu9286, thanks for sharing the observations. So, for rules table I will wait your further input, how we can proceed there. Regarding exceptions table - so, the idea is to replace
So, the idea just to change button label if my understanding is correct. Please, let me know if it's something you would like to proceed - or maybe we need some UI mockup for it |
Re: rule tags in the Management table: @yiyangliu9286 I think the idea of being consistent with the Stack Management UI is good 👍 It looks nice and it will save some space in the table 🙂 Re: exceptions:
Maybe something like that:
or
|
Thanks for confirming with the rule tags in the Management table. @vitaliidm Michelle has also agreed with this proposal so I think we are good and aligned with the proposed design for Tags and we can move forward to implement this change. :) Regarding to @banderror's proposal for exceptions, I totally agree with the proposal and think is a good direction to go for, @vitaliidm here is the mock for the Exceptions table (Figma file is here): |
Just a note @vitaliidm, after chatted with @jethr0null, we have agreed that for |
I have a couple questions regarding proposed UX for exceptions table:
This how it would look like with proposed change
JS use is required, because to use text truncation, parent's(to text string) element must have fixed width. In our case we have 2 elements(rule names), which do not have fixed width. So it has to be computed, to be able to achieve functionality as in mocks. After discussion with @elastic/security-detections-response-rules team, we agreed that it doesn't make sense to use JS for styling if we can avoid it. That would help not to overcomplicate codebase and keep it maintainable. So I propose to slightly amend the way we truncate it, but still to keep it in one line. But without the need for JS use instead. 1. Display always only one rule nameSo, instead of displaying 2 rules and render the rest in popover - we always display only one. 2. Put rule names into equals grid/flex cellsWe always display 2 rule names, but they both get truncated. 3. Add fading to truncated lineWe still can display 2 rule names, but we also apply fading out, to the right, where word is truncated. I personally think, the first option could be the best approach to implement. @yiyangliu9286 , can you please let know what do you think, and which solution is preferable? Thank you |
@vitaliidm Thanks for reviewing the design and posted those questions.
|
Related to: #103782, #115948 (review)
Summary
We have "See all" buttons in two of our tables, which show the whole content of a cell in a popover. The purpose is the same, but there's a difference in how they look like in these tables:
Rule Management table:
Exceptions table:
Let's make them look consistently in both tables, and implement this using a common component.
Design
Figma file link
Acceptance Criteria
The text was updated successfully, but these errors were encountered: