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

fix(TripPlanner.Results): various small things #2307

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

thecristen
Copy link
Collaborator

Summary of changes

Tickets completed as individual commits.

Asana Ticket: Walking pills should have a 1px border radius

Pretty sure he meant 1px border width.

Asana Ticket: Correctly pluralize similar trips

Adds the correct phrasing.

Bonus: I figured out how to display ordinal dates to match the Figma mock.

So now it says "January 6th" instead of "January 6".

Asana Ticket: Clicking anywhere on a result card should open the details view

I decided to leave the relevant Phoenix data attributes on the "Details" button despite the fact they're duplicating the functionality of clicking on the <div>... it felt more "right" to me, makes clicking around in tests easier, Phoenix complains if you try to click a thing which doesn't have those attributes... and it doesn't seem to hurt anything to have the phx-click on both the "Details" link and the overall div.

@thecristen thecristen requested a review from a team as a code owner January 6, 2025 19:56
@thecristen thecristen enabled auto-merge (squash) January 6, 2025 20:17
defp leg_icon(%{routes: [], walk_minutes: _} = assigns) do
~H"""
<span class={[
"flex items-center gap-1 text-sm font-semibold leading-none whitespace-nowrap py-1 px-2 rounded-full border border-solid border-gray-light",
"flex items-center gap-1 text-sm font-semibold leading-none whitespace-nowrap py-1 px-2 rounded-full border-[1px] border-gray-light",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is bugging me, because according to Tailwind's docs, border should do the same thing as border-[1px], but it's not!

@thecristen thecristen merged commit 5051ec0 into main Jan 7, 2025
20 checks passed
@thecristen thecristen deleted the cbj/trip-planner-polish branch January 7, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants