lukashornych/evitalab

Usability improvements

Closed this issue ยท 7 comments

novoj commented

This issue was created to track ideas for lab usability improvements:

  • for localized columns, instead of <null>, display <no locale selected> (and mark localized attributes in the column heading with some character - for example the same as selection widget: image)
  • distinguish column headers that are sortable from those that cannot be clicked on and sorted by (image
    sign?!)
  • allow selection of entire groups of column by their type (attribute, associated data, relation etc.)
  • add page size 25 for bigger monitors
  • add JSON / HTML renderer for preview of the column value
  • allow following relations by clicking on the referenced primary key of the entity
    • allow reversed relations following by Ctrl+Click on the referenced primary key, this will either find all entities in currently viewed collection that has reference to that clicked entity, or ideally it would show small menu with all collection that has the clicked reference and find all entities in that target collection

I tried to implement displaying flag emoji for selected locale in the data grid toolbar, but unfortunately (as I suspected) this is not possible, because locales are not country codes (even though, they may contain them, but not always). For example, en doesn't reliably correspond to any single country flag (it may be GB, US, and so on).

I've, at least, now display different icon for when no locale is selected and when any locale is selected.

novoj commented

I found out that it's not possible to access attributes defined on references in a grid view. Would it be possible to add them there?

I know, so far didn't come up with good way to implement it in the UI. Do you have any idea how would they be displayed in the grid?

novoj commented

This is the way how we display it in the example results:

entityPrimaryKey ๐Ÿ”— relatedProducts: category
103988 ๐Ÿ”— 104481: 'alternativeProduct', ๐Ÿ”— 104500: 'alternativeProduct'
104008 ๐Ÿ”— 104708: 'alternativeProduct', ๐Ÿ”— 104718: 'alternativeProduct'
104084 ๐Ÿ”— 104526: 'alternativeProduct', ๐Ÿ”— 104737: 'alternativeProduct'
104171 ๐Ÿ”— 104599: 'alternativeProduct', ๐Ÿ”— 104944: 'alternativeProduct'
104227 ๐Ÿ”— 104481: 'alternativeProduct', ๐Ÿ”— 104526: 'alternativeProduct', ๐Ÿ”— 105093: 'alternativeProduct'
104305 ๐Ÿ”— 104737: 'alternativeProduct', ๐Ÿ”— 105040: 'alternativeProduct'
104368 ๐Ÿ”— 104461: 'alternativeProduct', ๐Ÿ”— 104896: 'alternativeProduct'
104392 ๐Ÿ”— 104500: 'alternativeProduct', ๐Ÿ”— 104718: 'alternativeProduct'
104447 ๐Ÿ”— 103988: 'alternativeProduct', ๐Ÿ”— 104676: 'alternativeProduct', ๐Ÿ”— 105093: 'alternativeProduct'
104452 ๐Ÿ”— 104526: 'alternativeProduct', ๐Ÿ”— 104876: 'alternativeProduct'
104461 ๐Ÿ”— 104305: 'alternativeProduct', ๐Ÿ”— 104761: 'alternativeProduct'
104467 ๐Ÿ”— 104435: 'alternativeProduct', ๐Ÿ”— 104744: 'alternativeProduct', ๐Ÿ”— 104776: 'alternativeProduct'
104481 ๐Ÿ”— 104816: 'alternativeProduct', ๐Ÿ”— 105093: 'alternativeProduct'
104490 ๐Ÿ”— 104567: 'alternativeProduct', ๐Ÿ”— 105022: 'alternativeProduct'
104718 ๐Ÿ”— 104392: 'alternativeProduct', ๐Ÿ”— 104567: 'alternativeProduct', ๐Ÿ”— 104927: 'alternativeProduct'
104725 ๐Ÿ”— 104708: 'alternativeProduct', ๐Ÿ”— 104744: 'alternativeProduct', ๐Ÿ”— 105093: 'alternativeProduct'
104732 ๐Ÿ”— 104508: 'alternativeProduct', ๐Ÿ”— 104705: 'alternativeProduct', ๐Ÿ”— 104851: 'alternativeProduct'
104737 ๐Ÿ”— 103988: 'alternativeProduct', ๐Ÿ”— 104927: 'alternativeProduct', ๐Ÿ”— 105093: 'alternativeProduct'
104744 ๐Ÿ”— 104008: 'alternativeProduct'
104761 ๐Ÿ”— 104526: 'alternativeProduct', ๐Ÿ”— 104843: 'alternativeProduct'
Page 1/146 (Total number of results: 2918)

Oh okay, I can't seem to find it anywhere in examples. Anyway, that could work, however, such wide column would be clipped to defined max width, which would result in showing only the first attributes on the first glance, so Idk if from this POV it would be ideal. There are of course other things to think about (property selector, property detail...) but those are more of implementation details.

The branch feature-8-better-grid-cell-detail-renderer was merged into #48 where we finish it with UI/UX styling.

Closing as all tasks were implemented, the reference attributes are being solved in #52