Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Aug 15, 2023

@jcoyne jcoyne marked this pull request as ready for review August 15, 2023 19:15
@jcoyne jcoyne force-pushed the destination-component branch 5 times, most recently from ebca193 to 9162919 Compare August 16, 2023 18:20
@jcoyne jcoyne force-pushed the destination-component branch 4 times, most recently from 6850493 to 3b32b61 Compare August 16, 2023 19:26
<%= label_for_pickup_destinations_dropdown(current_request.pickup_destinations) %>
Will be delivered to
Copy link
Member

@cbeer cbeer Aug 16, 2023

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

cbeer
cbeer previously requested changes Aug 16, 2023
Copy link
Member

@cbeer cbeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See code comment

@jcoyne jcoyne force-pushed the destination-component branch from 3b32b61 to 180d2d0 Compare August 16, 2023 20:31
@jcoyne
Copy link
Contributor Author

jcoyne commented Aug 16, 2023

@cbeer reverted the change on the summary page.

@jcoyne jcoyne force-pushed the destination-component branch from 180d2d0 to d8dd7dc Compare August 16, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

2 participants