Closed a-roberts closed 1 month ago
Hey @a-roberts we are looking into working on this but could use a little more info. Is there a more fleshed out design we can follow? It would also be great if you could list 1 or more product teams that could use this.
Notes for Product team to chat about:
This issue is stale because it has been open for 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will be closed in 14 days.
This issue was closed because it has received no activity for 14 days.
What will this achieve?
we'd love to be able to use the NotificationsPanel to group similar errors by, say, title or description.
This could be achieved on the UI through:
which would be provided for each Notification where there are similar problems (or anything else we would want to group).
There are several ways this could be implemented - a simple "doGrouping" type prop (that'd be a boolean) and would look for some known prop (say, the title), and if set, instead of producing new Notification items, we'd have them available via clicking to view more. They could be available via the hidden items now showing as they would without grouping.
Another way would be via a set of enums (e.g. groupOn={foo|bar|baz}) where items could be grouped based on specific props provided to the NotificationsPanel (e.g. title, description, anything else).
And another way would involve a custom grouping function that could be applied for each element found.
How will success be measured?
This question "how will success be measured" is confusing in this case given this is an enhancement request so that we needn't create our own NotificationsPanel-like component, or do grouping via another rudimentary way.
Additional information