Usability improvements
Closed this issue ยท 7 comments
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: ) - distinguish column headers that are sortable from those that cannot be clicked on and sorted by (
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.
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?
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