-
Notifications
You must be signed in to change notification settings - Fork 81
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
Missing "remove connection" from resource #261
Comments
I'm looking at the site, and there is actually a way to disconnect resources from the project, locations, parties, or relationships. It's not intuitive, though. When you select the "Add from library" option in an entity page, the resources whose checkbox is already checked are the ones already connected to the entity. So to disconnect the resource or connect others, just check or uncheck the desired checkboxes, then click "Save". We should probably review and redesign the UI around connecting and disconnecting resources with their entities. One possible design I can think of is the following:
What do you all think? |
This would be a problem. Right now, a resource can be connected to the project, every location, every party, and every relationship. What does "Remove connection" mean on the resource page? Does this mean remove the resource from everything it is connected to? |
Good point and hard to follow on the wireframes. It would be removing the connection from the entity that you opened the resource on so we could change the text to say "Disconnect from this location" or "Disconnect from this project", depending on where you came from. Does that make it clearer? I also think this would be easier to follow if we implemented the resource detail modal so then you get more of the context without all the options the user probably isn't looking for. |
This is currently not possible. There is only one view for resource details. Not matter where you're coming from (location, party, relationship) you will always end up on that same view without knowing where the user came from. The only idea to solve this is to create separate views for each location resource detail, party resource detail, relationship resource detail and project resource detail. So for the detail views, we would need to maintain four views and four templates. I'm not convinced that a feature as tiny as this is worth going that way. |
@oliverroick So we are going to be able to add the "remove connection" action, correct? Just not customize the message? I just want to make sure I understand. |
So I'm going to move this off of this sprint and then we can review again for the next release. |
Here's my proposed enhancements for resolving this issue:
I'd like to get feedback on these proposed enhancements. |
I've finished coding item № 6.i. above and here is how they look like: As mentioned in № 4, the project resources list page shows all resources in the project, not just the ones attached to the project itself. For superusers, archived resources are also shown as seen below. For non-superusers, archived resources aren't shown. Resources that are attached to projects have a "Detach" button that lets the user detach this resource from the project, but retains the resource in the library. The resources tab of locations show the following table. Each resource has a "Detach" button that lets the user detach this resource from the location. As always, feedback is very much welcome! |
@seav looks good to me. Thinking maybe we should use a button that says "archived" instead of deleted. What do you think? |
@seav - good stuff! just a couple of comments:
I would love to review it once developed to review the interaction. Is this in a branch? |
@wonderchook: given the suggestion that the UI should treat archived resources as if they are deleted, then I think it would be best to consistently use "delete"/"deleted"/"undelete" terms in the UI.
|
@seav - wow, you've done a lot of work on this one - looks good! Nothing major but I've made some ui changes in the branch #261-addon. Use at your own discretion :) For small resources table within a location:
Here's a question I'm still thinking about: are we making the detach button a bigger option than it should be? Would it be a more common request to download the resource than to detach it? Should we give the detach action less prominence? What do you think? Maybe we mark this one for testing in the future. For resources table:
Resource detail page:
Resource index (used for party, etc.):
|
@clash, some replies:
One possibility is to remove the detach buttons here and only provide the detaching function on the resource detail page. Another option just to reduce the visual prominence is to replace the buttons with checkboxes and have a "Detach selected" button after the table to complement the Attach button. (We can also combine this with a selectable option to detach or delete (archive) the selected resources.
Well, we do already have #502 that was filed by you and targeted by Kate for the next Sprint. I think we can leave this out for now and discuss again during the next Sprint. But at least the current table which shows the library, instead of just project-level resources as before, provides a better base on which to build the filtering, don't you think? As for the other changes, I'm incorporating them as they are all sensible decisions. I am just having a bit of a trouble wiring up the "Restore" button on the project resources page as this requires a polymorphic confirmation modal. I'll try to finish things up so you can further review this. |
@seav -
I like having these discussions so I can bounce ui ideas around. These changes really improve the resource area's usability - thanks! |
#261 # Conflicts: # cadasta/core/static/css/main.css # cadasta/core/static/css/resources.scss # cadasta/templates/resources/project_detail.html # cadasta/templates/resources/table.html # cadasta/templates/resources/table_sm.html
Currently resources have archive/unarchive links. We can rename archive to "delete" but unarchive should be removed or hidden to only sys admins. We are missing the "remove connection" link that removes the link to the party/relationship/location/project but keeps it in the resource library.
The text was updated successfully, but these errors were encountered: