Replies: 10 comments 8 replies
-
I have learned later that much of the html used by ActiveAdmin is created in the arbre gem: https://activeadmin.info/12-arbre-components.html One of the trivial things that can be easily done is to define the column widths. I'm unsure if this would be always the best solution, but it is nice to know that we have it at hand. https://activeadmin.info/12-arbre-components.html#custom-column-widths |
Beta Was this translation helpful? Give feedback.
-
During the last months we have experimenting with different options here at UAB. Our current proposal is this one:
As long as those links are consistent, we think that it is quite practical. Moreover, there is more space left to important information. I'm attaching a couple of screen captures. Institutions list, with the current layout: Institutions list, our proposal: Users list, with the current layout: Users list, our proposal: If you agree with this proposal I'm willing to work on the many lists and provide patches to adapt them, starting with minimal patches. We thing that some of them would benefit with a different field list, but I understand that that would be another proposal (our institution screenshot has some changes that would not be part our minimal patches. |
Beta Was this translation helpful? Give feedback.
-
Thanks @fjorba for bringing this up again (in #1612) as I missed this the first time around. The screenshots help. Your points are well taken, and I appreciate your perspective with fresh eyes. You raise a good point regarding the Delete button. I think I generally only delete from the View mode, so I would agree with removing it from the list, but my other coworkers need to take a look because they have different workflows. I'll bring this up at the next staff meeting (unless they comment here), but this might take a couple weeks due to vacations. I agree that linking to "Name" makes the most sense to view something, and in terms of workflow, it works for me (I usually want to click on something because of the name). Editing through the ID also makes sense, but we have many users who only occasionally log into Muscat, and if they didn't see a clear Edit link then I'm afraid they would be completely lost. I have my doubts that we can adopt this for Muscat, but I would like more feedback from others. Would icons for View and Edit help save some space? In terms of instruction and helping our majority occasional users, having a single column for both actions helps. Regarding your other proposals: I think shorter column headings would be appropriate in some cases. |
Beta Was this translation helpful? Give feedback.
-
I'm glad, @jenniferward , that you see reasonable our policy about Delete and Show buttons. Regarding the Edit one, it is a matter of getting used to. For those that use Muscat only occasionally, probably their workflow would be first inspect and then edit, and so, clicking on the name or title, that is, the full view, and then the edit button. You can "sell" the link to the id as an edit action as a shortcut for those that have to do this action very often, like yourself. Anyway, probably a "hint" or floating text (html "title" attribute) would help in both cases. I'll try to contribute it in the next few hours (done in 84896f1). Now we'd prefer not to create icons, because one of the problems would be the same: they are far away from the object you'd like to see or edit. We think that the link should be as close as possible to it. I've sent the reorganization of the users table first, because it probably used for less people and not so often so you can test it in your test server to check it out, without disturbing Muscat normal use, and then improve whatever could be refined before sending the other ones. |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, I'm 👎 for removing |
Beta Was this translation helpful? Give feedback.
-
I too think edit and view should have explicit links, maybe we can have an icon which is smaller? |
Beta Was this translation helpful? Give feedback.
-
Removing the View link and replacing with a link in the title or name is no mystery at all. This is how the web works, and it is well established. I concede that the linking the id to the edit action may be a little bit magical, but with the last 84896f1 patch, now there is information in the link, ex: Moreover, in our team, many people just click on the full record and after they click on the Edit link at the right. When I tell them that they have a shortcut, they often prefer to edit it after seeing the full record. |
Beta Was this translation helpful? Give feedback.
-
I personally find it quite confusing and arbitrary. How should a new user discover this funcionality? |
Beta Was this translation helpful? Give feedback.
-
So, trying to make some consensus out of this discussion, let's take the controversial magic Edit link in the id column out of the equation for the time being. I'd like to know if there is an agreement about two of the other standard ActiveAdmin action links:
If we can get rid of those columns, we gain some space that can be used by other information. Thanks. |
Beta Was this translation helpful? Give feedback.
-
We discussed your proposals, @fjorba, in our staff meeting today (just the Editorial Center) and a couple of my coworkers indeed use the Delete link directly from the table views, so we have to keep it and the column. We are still open to testing out icons, however. Essentially we already have them available from the View page: pencil, trash can, eye. |
Beta Was this translation helpful? Give feedback.
-
There are plenty of lists of records (personal, institutional, places, sources, etc.), in Muscat, created via the ActiveAdmin Rails gem. Some of them would benefit to have more information (columns), but sometimes there is not much space left.
We can discuss different options, from the easiest to the more complex. I'm not specialist on front end user interfaces, my knowledge of CSS and Javascript is precarious, and I'm aware that we have to work on ActiveAdmin constraints, so take my proposals as ideas, as the concrete implementations may be different.
1. Shorten long column headers
Some tables suffer the fact that its headers are too wide, or at least much wider than the values.
One clear example is the life dates in the personal names list. As there is no obvious information in the translation yaml files, in some languages the translation is specially long, for example:
Another example are those with values or counters, where a title like "Secondary literature" is excessive for the values it helds. Currently it is seen in the /admin/places list.
My proposal here would be add a
_max_XX
to those translation strings, when they are column headers, to help the translators to know how long the text should be. For example, as most of the times this value would be 9 (ex:1841-1922
), I would propose to changefilter_life_dates
tofilter_life_dates_max_9
. Of course, this is not a hard limit, and the best solution will depend on the language and the translator (in the Catalan case, we discussed internally at UAB and I proposed just 'Dates' because I knew that it will be used for this column, and the context would complete the meaning). And of course there are cases where the values are longer than 9, but html and the browsers will take care of this; the issue is that if we, as translators, can influence on the header, let's do it.Being consistent with the
_max_
convention would make those strings easy to spot.This proposal may cause the creation of new translation strings if some of them are used both for column headers and in other places, but I don't exepect to be too many (for example,
filter_life_dates
is used only as colum header), and the cost would be worthwhile.2. Change the 'show' link on the right with a link of the main field
Each of the columns without a link has the potential to be a link and replace one of the right. One obvious is the
show
in the right column. Of the columns on the left, I think that the main one (the 'name' field) can be used for this purpose. In this video there is a concrete example using ActiveAdmin:https://youtu.be/_XUdbOFrDRQ?t=561
3. Replace the 'edit' and 'delete' colums with icons
There are well known icons for edit (like a pencil) or delete (like a trash can), even with colors (like orange and red) than can be used for this purpose. They can be smaller than the current texts.
4. Truncate long values
The visualization of excessively long values can be truncated (and maybe adding the
...
elipsis), and the full value could be shown moving the mouse over the value (using the classic html title attribute, or triggering an onMouseOver).5. Choose the date format more useful for each case
Some times the full date and time is not needed, and maybe with with the date is enough (the table showing older version records has the weekday; it may be useful sometimes, but having it always there occupies precious space).
6. Hide the sidebar when not needed, or move it
Having the sidebar on the right also occupies space. Googling around, I've found a couple of interesting ideas, always linked to ActiveAdmin:
Beta Was this translation helpful? Give feedback.
All reactions