Skip to content

Line Diagram | Guide Links - #3485

Open
lvachon1 wants to merge 4 commits into
mainfrom
lev/line_diagram/guides
Open

Line Diagram | Guide Links#3485
lvachon1 wants to merge 4 commits into
mainfrom
lev/line_diagram/guides

Conversation

@lvachon1

@lvachon1 lvachon1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: 💈 Guide links

Implementation

Created a look-up-table of access and beginner guides.
Created a component that renders the correct guides given a route.

We could update this in the future with vanity URLs for these images, but considering the URLs imply they haven't changed since 2018 I don't think it's a pressing matter.

Screenshots

Commuter Rail Guides

Screenshot 2026-09-09 at 2 31 56 PM

Subway Guides

Screenshot 2026-09-09 at 2 32 44 PM

Bus Guides

Screenshot 2026-09-09 at 2 32 56 PM

Silver Line Guides == Bus Guides

Screenshot 2026-09-09 at 2 34 53 PM

Ferry Guides

Screenshot 2026-09-09 at 2 33 16 PM

How to test

Silver Line 1
71 Bus
Red Line
Fall River/New Bedford CR
Loop Ferry

Confirm that the correct guides show up, have the correct images, and link to the correct pages.

@lvachon1
lvachon1 marked this pull request as ready for review September 9, 2026 19:02
@lvachon1
lvachon1 requested a review from a team as a code owner September 9, 2026 19:02
@lvachon1
lvachon1 requested a review from thecristen September 9, 2026 19:02
@smartling-github-connector smartling-github-connector Bot added the Not Ready for Translation Remove this when the PR is approved to trigger a Smartling translation job label Sep 9, 2026
Comment thread lib/dotcom_web/live/line_diagram_live.ex Outdated
Comment thread lib/dotcom_web/live/line_diagram_live.ex Outdated
…rmant since the page is only mounted once, this filter should only run once instead of every re-render. Added an empty alt tag to the guide link image since we already have perfectly cromulent link text already. This should hide the image from screen readers as redundant content.
@lvachon1
lvachon1 requested a review from thecristen September 10, 2026 15:30
>
⚠️ Watch Your Step ⚠️
</marquee>
<.guides route={@route} guides={@guides} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: You don't need to pass in @route anymore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not Ready for Translation Remove this when the PR is approved to trigger a Smartling translation job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants