Skip to content
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

Move tenant buttons into dropdown menu #12028

Closed
wants to merge 3 commits into from
Closed

Conversation

hishamco
Copy link
Member

@hishamco hishamco commented Jul 18, 2022

Address a part of #12006

DropDown.Menu.mp4

@hishamco
Copy link
Member Author

Seems there's some changes need to be done in the functional tests

@Skrypt
Copy link
Contributor

Skrypt commented Jul 18, 2022

You will need to add a click trigger on the dropdown menu before the click on the setup button.

@hishamco
Copy link
Member Author

I might look to this test later, but again we need a way to make these tests pass or fail for both OS. What I'm see there's some inconsistency it passes in Windows and fails in Linux

@Skrypt
Copy link
Contributor

Skrypt commented Jul 18, 2022

The functional tests are not executed under Windows that's why.

<a asp-action="Reload" asp-route-id="@entry.Name" class="btn btn-secondary btn-sm reload" data-url-af="UnsafeUrl">@T["Reload"]</a>
<div class="dropdown float-end">
<a id="tenantDropdownMenuButton" class="btn text-secondary" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-ellipsis-v"></i></a>
<ul class="dropdown-menu" aria-labelledby="tenantDropdownMenuButton">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aria-labelledby Ref doesn’t have any text

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't understand

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby

Here it refers to button but button doesn’t have accessible text

@jtkech
Copy link
Member

jtkech commented Jul 18, 2022

Not sure it's a good thing, as it is the buttons are not only action buttons but also states info, so we can see clearly the tenant states and what we can do.

@hishamco
Copy link
Member Author

The states are clearly shown as a badge. The current UI change:

  • Makes a lot of room in each row
  • Makes the UI clean & clear
  • The actions should react based on some state
  • No more colored buttons which are sometime confuses

FYI such menu actions already shown in GitHub & AzureDevOps for better UX. May be the issue we are looking from developer point of you ;)

@Skrypt
Copy link
Contributor

Skrypt commented Jul 19, 2022

Ok, we need to make sure we are consistent here. While I don't dislike entirely the UI change; here we need to take into consideration that the Content Items list uses an "Action" button for these. This is why I recommended using the same UI concept.
I'm sure DevOps uses also single item buttons in some places.

@hishamco
Copy link
Member Author

Actions button

@ns8482e
Copy link
Contributor

ns8482e commented Jul 19, 2022

Actions button

Personally I don’t like devops UI, I like GitHub’s UI better

@hishamco
Copy link
Member Author

GitHub

It quite similar except the action button uses dropdown menu similar to what we have in filters

@Skrypt
Copy link
Contributor

Skrypt commented Jul 19, 2022

The inline action buttons are simply icons here on Github.

@MikeAlhayek
Copy link
Member

@hishamco thanks for putting together this PR. Can you please fix the conflict?

I personally do not like hiding all the buttons for all actions. Very common functions like "Edit" should be visible all the time. I don't want to have to make 2 click to perform a common functions. The idea here is improve the UI not complicating it like devops :). I am also not a big fan of DevOps UI as @ns8482e mentioned.

I think in this UI, we should show "Edit" and "View" buttons, then move the "Reload", "Enable", "Disable", "Features", and "Remove" button should be in the "Actions" button.

@hishamco
Copy link
Member Author

@hishamco thanks for putting together this PR. Can you please fix the conflict?

Sure

personally do not like hiding all the buttons for all actions. Very common functions like "Edit" should be visible all the time

May be but the issue is everyone of us has it's own common functionality ;)

@hishamco
Copy link
Member Author

Let me check this with a UI expert and see what I can come up with

Copy link

This pull request has merge conflicts. Please resolve those before requesting a review.

@Piedone
Copy link
Member

Piedone commented Feb 1, 2024

Putting the buttons under a nondescript three-dot menu is a hard no from me.

@MikeAlhayek
Copy link
Member

... is a hard no for me to. I am okay with "Actions" drop down button if that is an option

@hishamco
Copy link
Member Author

hishamco commented Feb 1, 2024

Putting the buttons under a nondescript three-dot menu is a hard no from me.

It's much better for UI clarity

@Piedone
Copy link
Member

Piedone commented Feb 1, 2024

How does hiding buttons clarify intent?

@hishamco
Copy link
Member Author

hishamco commented Feb 1, 2024

From UI/UX perspective when there are many buttons like what we have, it would be nice to introduce an action menu instead

@Piedone
Copy link
Member

Piedone commented Feb 1, 2024

This is how the current UI looks like if all the possible buttons are displayed, in a common full HD resolution:

image

Ultimately, design is subjective until we do large sample size research for this with focus groups (which would probably be excessive for this) but this doesn't seem to be too many buttons for me. Nor there is any lack of screen real estate that we'd use better. Same if you have 10 tenants on a page.

Did you encounter somebody complaining about this UI?

@hishamco
Copy link
Member Author

hishamco commented Feb 1, 2024

Did you encounter somebody complaining about this UI?

While I saw many web framework applications, & CMSs I never see something like this :) Also the coloring is another story lol

@Piedone
Copy link
Member

Piedone commented Mar 13, 2024

Do you want to bring this up at the meeting or something so we can get a closure? Here we have 2-3 against votes, and other remarks that necessitate changes even if the basic direction is agreed on.

@hishamco
Copy link
Member Author

hishamco commented Mar 13, 2024

Probably yes, also I might demo the Culture Picker in localization part #13354

# Conflicts:
#	src/OrchardCore.Modules/OrchardCore.Tenants/Views/Admin/Index.cshtml
@MikeAlhayek
Copy link
Member

MikeAlhayek commented Mar 14, 2024

@hishamco @Piedone I think we should have 3 buttons are as we do in contents module. The buttons should be View, Edit and Actions (drop down menu). But I do not like the ... button.

This way we can simplify all the buttons we have today and keep them consistent with other pages.

@Piedone
Copy link
Member

Piedone commented Mar 14, 2024

I'm OK with that.

@hishamco
Copy link
Member Author

But I do not like the ... button

Sure everyone will like and dislike some of the UI, but I was using things from UI/UX perspective

Copy link

It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up and remove the "stale" label.

@hishamco
Copy link
Member Author

I will close this while there's not much interest in UI improvements, so I will move this to Orchard Core Contrib (OCC), while I'm already some improvements to the admin UI

@hishamco hishamco closed this May 18, 2024
@hishamco hishamco deleted the hishamco/tenant-dropdown branch May 18, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants