-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes "Insufficient collection information when submitting an article" #2070
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CrisGuzmanS : The UI here isn't the best. The hierarchy is cut off and a tooltip is displayed. I think we want one of the other
For instance, I'm seeing this (notice the tooltip in this scenario is hidden partially):
I think we should either use the tooltip or have a complete hierarchy, but not both. The UI looks confusing with both.
So, overall, this works, but I think we need to find a way to get the UI to make more sense. The tooltip gets in the way right now (and is sometimes partially hidden). I'm not sure of a better solution right now though
@tdonohue I have been trying to think of a better way to show the complete hierarchy of the items, but I still don't know how to do it. As you say, if I show the complete hierarchy as it is (horizontally), for large hierarchies, it stops being visible at a certain point, but if I use the tooltip, it will be difficult to know the hierarchy for people using mobile devices. I have thought of placing a button, maybe on the left side of each element, that when clicked, displays the complete hierarchy vertically (like a sort of list), but before I start working on this, I would like to know your point of view about this. |
@CrisGuzmanS : Apologies for my silence on this ticket...it's taken a while to get back to. I wonder if the easiest approach here would be to simply make the New Item select box behave like the Collection dropdown in the Submission UI:
This is my best idea here. I'm worried that attempting to display the entire hierarchy at all times is perhaps too difficult. Some hierarchies may be very deep, and this current PR doesn't work well for a deep hierarchy. Maybe it's better to use the approach of the Submission UI and simply display the immediate parent Community for more context. |
Hi @CrisGuzmanS, |
Hi @tdonohue ✋, before you gave me the reviews of my other activities, I was working on this activity, so I'll be doing this pull request and will be listening for any feedback as I work on the requested reviews.
References
Description
I added the full hierarchy titles for communities when an article is going to be created to prevent choose the wrong collection.
Instructions for Reviewers
List of changes in this PR:
sidebar-search-list-element.component.spec.ts
file, and i added:jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
await new Promise((resolve) => setTimeout(resolve, 1));
i am not pretty sure why adding this line i leave problems with the browser when i am testing.Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.