-
Notifications
You must be signed in to change notification settings - Fork 0
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
Extract a DestinationSelectorComponent #1727
base: main
Are you sure you want to change the base?
Conversation
ebca193
to
9162919
Compare
6850493
to
3b32b61
Compare
<%= label_for_pickup_destinations_dropdown(current_request.pickup_destinations) %> | ||
Will be delivered to |
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.
Is this (and the test changes) an intentional change from the current behavior? I think the subtle intent is to indicate whether the patron has any choice about the delivery location, and it seems like we've lost that?
This wording has a long and elaborate history. It's possible with SPEC/Rumsey/etc using Aeon, we can revisit the wording.. but I'm a little uncomfortable if we do it in a refactoring PR.
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.
This seemed weird that the status display would display two different labels "Will be delivered to" and "Delivered to" depending on whether or not there was a choice. The function that was used here was intended as a label for a dropdown, but this is not a dropdown.
Do you want to retain this behavior? I can revert this part, but it just seems wrong.
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.
I would err on the side of keeping the current behavior. It was important at the time and I think there's a UX argument to be made about using consistent labels between the form and the email.
If we want to change it, I think it's important to do so transparently and not in a refactoring PR.
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.
See code comment
3b32b61
to
180d2d0
Compare
@cbeer reverted the change on the summary page. |
180d2d0
to
d8dd7dc
Compare
From https://github.com/sul-dlss/sul-requests/pull/1638\#discussion_r1293674040