-
-
Notifications
You must be signed in to change notification settings - Fork 189
Improve UI for assigning customers to drivers #314
Comments
I think this is intentional. The functionality would be for if you have a driver and you want to move the customers from another driver to this driver. @jspaine, is this what you intended when you made this? |
Ah, that makes sense: since there's no 'un-assign' button, if we made the card match the dropdown, you couldn't ever switch assignments. Probably can close as not an issue unless @jspaine disagrees! |
Yeah, you can unassign by unchecking customers and clicking 'Assign selected' but it would be really awkward to switch assignments like that. I think it might be better to just unlink the filter from the driver selection. The selected customers change when you select a driver anyway so it's easy enough to see where that drivers customers are. It would make assigning customers much easier, you could just set the filter to unassigned, choose a driver, assign some, choose another driver etc. We can just turn this into an issue for that maybe, if it sounds good? |
That would make sense. One thing I thought (this is probably a separate thing totally) — it's a little bit unexpected to me when you click "Assign Selected" and it unassigns all drivers that you haven't checked. What if we did something where:
Either this, or make a "Remove Button" in each row next to the assigned customers, if that makes sense? I just get a little confused as to whether it's going to add or remove based on the button text. Please let me know if you think might be a good idea, and whether I should close this + create a new issue or just edit this one. I could update this to be "unlink filter from driver cards", & then if you like my idea for Assign/Unassign, I could break that out into a separate issue to add if it's easier. |
I'm not sure, what if you select some customers assigned to the driver and some unassigned customers, what would the button do? How about calling the button Update Assigned Customers (ugh it's too long!) and have it go to a dialog that asks you to confirm and gives more info, eg |
I tried adding more customers and drivers to better approximate real usage of the application and the form was harder to use with the long lists of drivers and customers. It also would be quite slow and became unresponsive at times. So we should address these issues when making changes. I pushed a branch named "more-seed-data" to the repository that you can use to try it with more data. It will use a different database name (fb-dev2) and seed it with new data including 50 drivers and 800 customers. |
Hey @jspaine — good points! My idea was to make it so that the case you mention couldn't happen: where you select some customers assigned to the driver at the same time as you select some unassigned customers. The idea would be that the button only changes if the Dropdown Filter name matches the name on the Driver Card, and you select one or more customers. If the filter doesn't match the driver card, we don't change the button text. This way you can only select drivers that are currently assigned. There'd be two ways to remove a customer from a driver, then:
|
@kenjiO — thanks so much! I've been very busy with work lately but will take a look as soon as I have time. Would you like me to write up a separate issue to track the list performance? |
Ok, it does sound like it might be good! @kenjiO hehe it's... not quite as bad as I expected! Seems the map causes most of the slowness. |
I think it would be good to keep it in this issue to keep this discussion. I'll just edit the issue title. |
@jspaine I would like to work on this. My plan is to write out which workflows make sense before making code changes. I'll post something here and see what you think. I also see that this was referenced in #131. The changes I am imaging should be confined to how customers are added to routes and not interfere with the route state, which I think would be used for printing. Let me know if there are concerns about this. |
Sounds good, let us know if you need anything. 131 is another way for drivers to use their assigned route (by downloading in satnav format instead of loading in google maps) so it has nothing to do with this issue. |
Sorry, some stuff came up and I don't have time to work on this right now. Just commenting in case someone else is interested in taking this on. |
E.g., Click “Kevin Stanton” card, and the
Customers Assigned To:
dropdown changes to “Kevin Stanton”.Not a huge deal, but it's probably a fairly simple fix & valuable from a usability perspective. As is, I could see a user getting confused, since you don't know which driver you're viewing.
The text was updated successfully, but these errors were encountered: