jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Dynamic attributes view redesign

Open gorbunkov opened this issue 2 years ago • 2 comments

Edit attributes from the main dynamic attributes screen

Currently we already display dynamic attributes for the selected category

Screenshot 2023-11-28 at 12 53 38

It seems that we can do the following:

  1. Edit categories using the dialog window. No composition collection with attribute will be inside the category editor
  2. Add buttons for CRUD operations for attributes right above the attributes list. This will avoid us to make an unnecessary click for diving into category editor when we want to do anything with attributes.

Redesign attribute details view

  1. The attribute details view must be open using the navigation mode
  2. We must rethink current tabs. Currently the Visiblity settings are always on a separate tab, although we need it for every attribute. The "Dropdown list" checkbox is on the first tab, but the script for loading options are defined on a separate tab, etc. Probably we may have a single tab with a vertical scroll. Or at least have tabs like General and Andvanced.
Screenshot 2023-11-28 at 12 50 34 Screenshot 2023-11-28 at 12 51 01
  1. Add the "Add all known views" to the table with views where the attribute must be displayed 4 Screenshot 2023-11-28 at 12 51 55

  2. Auto-fill the category name

Currently, we first need to enter some category name and then select an entity. I suppose that for many entities there will be a single category only. Users may be confused what is a category name and what value to enter there. We can switch these two fields, so the user will first select an entity from the list and after selecting the entity the category name will be automatically generated, e.g. "User-category"

Screenshot 2023-11-28 at 12 48 20

gorbunkov avatar Dec 19 '23 07:12 gorbunkov

  1. Required attribute UX improvement

Also for better UX move required field to the right layout (place it before all checkboxes) From this poor layout image Move to the right image image

KartnDev avatar Dec 26 '23 20:12 KartnDev

  1. CategoryDetailView
    1. DataGrid should occupy all available height
    2. Detail buttons should be always visible, even if not enough height. See example in the ResourceRoleDetailView
    3. Required attribute and Type columns too wide, make them auto width.
    4. Double-click doesn't work for Category attribute DataGrid. It seems that Edit action is custom and doesn't have Enter shortcut.
Screenshot 2024-05-03 at 13 27 03 Screenshot 2024-05-03 at 13 27 33
  1. CategoryListView (Dynamic attributes)
    1. Left side misses padding
    2. It's better to replace not responsive Split with two columns layout that becomes one column layout if not enough space. See RoleAssignmentView as an example of CSS Container Queries or Bookstore app as an example of Grid.
    3. Apply changes button requires color difference, e.g. make it success or contrast
Screenshot 2024-05-03 at 13 45 52
  1. CategoryAttributeDetailView
    1. Remove PrintMargin from all CodeEditors
    2. Since the dialog is resizable, every tab should look pretty while resizing. Currently a lot of blank space appears.
Screenshot 2024-05-03 at 13 58 51 Screenshot 2024-05-03 at 14 03 01 Screenshot 2024-05-03 at 14 03 57 Screenshot 2024-05-03 at 14 04 04

glebfox avatar May 03 '24 10:05 glebfox

Tested on java app and tabbed app: Jmix version: 2.6.999-SNAPSHOT Jmix Studio Plugin Version: 2.6.SNAPSHOT7517-251 IntelliJ version: IntelliJ IDEA 2025.1.1.1 (Community Edition) (except point 6-Required attribute UX improvement)

SergeiAksenov2 avatar Jun 03 '25 12:06 SergeiAksenov2