-
Notifications
You must be signed in to change notification settings - Fork 946
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
[Dashboards List Integration] Create button now requires 2 clicks to create dashboard #3621
Comments
Ack |
@kavilla If I understand correctly, the actual concern is whether the changed HTML will break customer-written browser-automation scrips. Dashboard-Create is a low-activity interaction, so making it 2-click when there are integrations is not a super important affect IMO. |
may be we add something like this |
@kgcreative @dagneyb I like @anirudha suggestion. It preserves the "default" create (Dashboard/Dashboard), and offers a drop-arrow for additional options? |
Tagging @KrooshalUX. Let's talk about introducing a "split button" component to OUI for this behavior. Another example is the github "Close with comment" button that's right below the comment box. In the meantime, OUI does have this pattern: https://oui.opensearch.org/1.0/#/navigation/button#split-buttons |
@kgcreative Thanks for tagging me in. A sort of brain-dump which may not be quite directional yet...
I would like to hear more thoughts on where I am going with the discoverability issue, primarily. |
@pjfitzgibbons & @kavilla -- please let us know what makes sense to you guys, and then we can make a final determination |
@kgcreative @KrooshalUX I'll take a couple screenshots next time I get a merge prompt. This might be an option in that it gives the user a clear interaction, and a clear "target" with meaning, and also gives the test-suite an equally clear "target" to perform the click... and the default no-integrations operation can be the single consistent button. Screenshots to come... |
We have begun working on designing the split button component. Definition: A split button is a button with two components: a label and an arrow; clicking on the label selects a default action, and clicking on the arrow opens up a list of other possible actions. (Reference) There are some open questions related to functionality:
More design updates coming soon. |
I discussed with @pjfitzgibbons about some design issues. We both agreed that a dropdown works best than a popover on click of the expanding secondary (split options) button. This is also consistent throughout most split button/dropdown patterns I've observed - Cloudscape, Adobe, Zendesk, Github - and it will allow us to reuse the existing component SuperSelect which we'd like to use for the selection mechanism. We also think that the dropdown can be either left/right aligned and defined as a prop. We can also consider making this dependent on where the button and the dropdown appear in regards to the browser window. ![]() ![]() ![]() Reference: Anatomy
![]() Primary action button width will be determined by the label (and icon and/or combination) consistent with our existing button pattern. Secondary button width should be proportional and use only an icon to denote action of dropdown expansion (in most cases, a down arrow icon but we can allow customizing if necessary.) We can have split buttons for all our button states and types:
![]() As far as things to consider for UX
@kgcreative, @shanilpa for visibility |
Also consider popover attached inside an input element(reference: https://oui.opensearch.org/1.3/#/layout/popover%23popover-attached-to-input-element) - which super select may be using under the hood, in combination with selectable (https://oui.opensearch.org/1.3/#/forms/selectable%23single-selection) |
We are considering Super Select to be able to use the more complex option that allows for title/description parameters, but yes will look at all reusable options currently available. |
@canascar and I discussed popover vs select. Our feeling was that the connect-arrow of popover feels like it interrupts the graphical continuity of a drop-down. If we must consider this as an option, it will add a possilby considerable amount to the code, since the useage of pop-up is different from the plain super-select. Maybe we can plan for this option for a next phase? |
So what i'm calling out is that OuiInputPopover is what super select uses under the hood (https://github.com/opensearch-project/oui/blob/main/src/components/form/super_select/super_select.tsx#L321C15-L321C15) to render the context menu attached to the control. I'm not disagreeing that the visual style of super select is what we want. I'm just sharing that popover has a modality that doesn't render as detached and might allow you for extra flexibility. |
I see now. I'll keep that in mind and list it in the alternatives |
Origin:
#3090
When creating a dashboard with the new integration defaults to making the create button a drop down list. This makes creating a dashboard a 2 click process.
Enhancement
The text was updated successfully, but these errors were encountered: