chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
798 stars 480 forks source link

[C2] Improve handling of action bar icons/buttons #5415

Open ywarnier opened 5 months ago

ywarnier commented 5 months ago

In Chamilo 1, we have something called the "action bar", which is an horizontal bar on top of a tool homepage (usually on top of a list of elements in that tool), that allows you to take actions that are not specific to one element but relatively generic: create new item, upload new item, delete all items, view items in a different type of list, create a category for the item, etc.

You can see that in this examples for the documents tool:

Capture d’écran du 2024-04-23 09-22-24

In Chamilo 2, the action bar is less present, and it has been rebuilt, but there are some places where it has become a bit inconsistent, and we want consistency. For example, in the messages tool,

Capture d’écran du 2024-04-23 09-24-14

The icons on the top right side:

The buttons that appear slightly below (Inbox, Unread, Sent) should appear with the icons on the top right side, with 'Unread' being a button, and 'Inbox' and 'Sent' just being icons of some sort (maybe even tabs, and in this case they should appear aligned to the left), because they are links to another view, not actions.

daniboygg commented 5 months ago

For the top right side, this is how it will look, is it right?

image

The buttons that appear slightly below (Inbox, Unread, Sent) should appear with the icons on the top right side, with 'Unread' being a button, and 'Inbox' and 'Sent' just being icons of some sort (maybe even tabs, and in this case they should appear aligned to the left), because they are links to another view, not actions.

I don't understand why Unread has to be a button. The behavior now is that Unread only show messages that are unread, as far as I understand is a filter like Inbox and Sent.

The element in the icons on top right is a toggle that allows to mark the selected messages as read or unread (a submenu is shown to select which action)

image