feat(versions): display resource type label - #972
liptakpanna wants to merge 2 commits into
Conversation
|
what about one version with the resource type under the version number? |
3b2aeb8 to
f4cd059
Compare
f4cd059 to
274ae28
Compare
|
I think it might be better to just have the icon in the red for restricted? Otherwise it just seems a bit too much |
|
Thank you @liptakpanna this will be very useful! Just my personal opinion, maybe the contrast of the labels is too strong? I think for me at least the version number should be the most prominent element, and right now the "restricted" is bright red so by far the most prominent. I'm not sure what would look best. Also, does it make sense to put a "restricted" label and the resource type labels on record where both of these are the same across all versions? E.g. for the internal/restricted record for EP approval records, these will probably be the same for all versions. |
|
Thanks for all your feedback! In the current approach, I reused the existing labels to avoid confusion about why they might look different elsewhere, hoping that familiarity leads to a better UX. Hiding the labels when all items are identical is a great suggestion, so I created a few prototypes to test it out: Not displaying the resource type if it matches the currently selected version: Not displaying the resource type and access status if it matches the currently selected version: Other record with less diversity: Personally, I feel that having 0 labels in some rows and 2 in others makes it less uniform. Alternatively, hiding labels only when all versions share the same value (rather than just comparing against the current version) would require a complex change upstream (fetching all versions or visible only?, make the calculations, pass the info down from RecordVersionsList to RecordVersionItem). But if anybody has a suggestion for this approach (with avoiding race condition), please let me know :) To summarize the proposed approaches:
|
|
Amazing, thank you for the designs @liptakpanna! Looked at it with @jbenito3 and @sakshamarora1, we think number 7 looks good, i.e. only showing either type of label (access level & resource type) if it differs from the currently selected one. If we do that then I think it looks perfect. Even if it looks less uniform, I think that's good because it makes the differences of that version very visually prominent. If I understand correctly, the vast majority of records on CDS will look like the non-diverse record. So in nearly all cases there will be no labels shown whatsoever which is nice. I think this is enough of a check, we don't need to check that all versions share the same resource type, only showing the ones that differ from the currently selected one should be enough IMO. |
|
we were also wondering if "metadata only" tag is really needed there. |
I was thinking the same.... I would keep it to open or restricted to indicate change on access control, not if a file exists or not... |
|
I would keep it max only to restricted/resource type. I think then we are really overloading the interface |
|
in addition, after seeing the available options, I would just display resource type and "restricted" (if applicable) at all times, regardless if the resource type changed or not... otherwise it starts to look chaotic to me |
0bdc621 to
e79d2c5
Compare
|
thanks everybody! |











needs inveniosoftware/invenio-app-rdm#3581
Closes #944
How it looks:

Alternative look without the labels:
