-
Notifications
You must be signed in to change notification settings - Fork 915
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
Support red dot icons on buttons with call backs #3046
Comments
Proposed solution:
For testing purposes:
This work will later have a dependency on #2893 |
@lezzago thanks for opening this issue. I like the approach you've proposed of adding the boolean flag to the embeddable to indicate a notification. How do you plan on setting this flag since the embeddable is essentially rendered by the visualization plugin. Also I see a second indicator in the context menu, does this issue not cover that scenario? |
@ashwin-pc the idea is that as the |
Thanks for the context, that makes sense. Can we call it something simpler though? Since these are API changes I want to make sure that we get the names right since they will be annoying to walk back on. |
@lezzago Have you already looked at these? I haven't traced their usage yet, but from the names it sure sounds like what we're trying to do here: OpenSearch-Dashboards/src/plugins/embeddable/public/lib/triggers/triggers.ts Lines 82 to 94 in 8732b1c
and OpenSearch-Dashboards/src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx Lines 128 to 158 in 8732b1c
|
We also already have rendering logic for OpenSearch-Dashboards/src/plugins/embeddable/public/lib/panel/panel_header/panel_header.tsx Lines 75 to 112 in 8732b1c
|
I'd like to try to re-frame this in more general terms. It seems like the goal here is to have some sort of visual indication (badge) on the panel that indicates (new? unread?) events that are linked to that embeddable. So it seems like we'd be building a new event notification and management interface. At a global level, it would decorate the context menu icon with a notification dot, and add a new UI action to view these events. But there are still a number of unanswered questions:
I guess my perspective here is that any event notification system we want to add to dashboard panels should be a standalone pluggable system, not a bunch of isolated UI elements that must be individually toggled and specified. |
Closing this issue, as it's no longer required for the updated UX guidelines, and we don't have clear enough user stories to justify adding this feature yet. @lezzago feel free to reopen if I missed something here. |
Is your feature request related to a problem? Please describe.
On the Dashboard page with multiple visualizations, we want the 3 dot button to show a red icon if there action to take based on some call back the button contains. Based on #2880, we want to show the red icon when there are active alerts from the alerting plugin.
Describe the solution you'd like
I would like the ability to register call backs or associate call backs from the external plugins (in this case Alerting plugin) to the buttons and icons, so they know to call the alerting plugin registered callback function to know if it should display a red dot or not.
The text was updated successfully, but these errors were encountered: