Repository navigation
Line Page | Set up a feature flagged "Schedules & Maps (new)" tab and page #3456
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5954dce
Added feature flag to show a new tab for the new line diagram page.
lvachon1 54ef896
Added a new tab under the new feature flag
lvachon1 1317ca8
Created new blank live view for the new line diagram page.
lvachon1 e83c7b3
Added the new live view to the router
lvachon1 22981ce
Don't mind me just making placeholder text silly
lvachon1 31adbdc
Updated tab title to align with ticket
lvachon1 bedb541
Clarified placeholder language
lvachon1 396ce4f
Localization
lvachon1 e64ab5e
Updated flag check to be more resiliant to unexpected assigns
lvachon1 752678b
Removed dbg for lint
lvachon1 4b5804f
Removed defailt "Red" line param for now since it'll be hard to get h…
lvachon1 1a2e586
Merge branch 'main' into lev/line_diagram/flag_and_tab
lvachon1 14c9567
Conflict cleanup
lvachon1 2049d78
Smartling translations are completed for PR#3456 from lev/line_diagra…
smartling-github-connector[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| defmodule DotcomWeb.LineDiagramLive do | ||
| @moduledoc """ | ||
| The primary view for looking up stops, maps, and schedules for a particular line | ||
| """ | ||
|
|
||
| use DotcomWeb, :live_view | ||
| @route_patterns_repo Application.compile_env!(:dotcom, :repo_modules)[:route_patterns] | ||
|
|
||
| def mount(params, _session, socket) do | ||
| route_id = params |> Map.get("route_id") | ||
| direction_id = params |> Map.get("direction_id", "1") | ||
| route_patterns = @route_patterns_repo.by_route_id(route_id) | ||
|
|
||
| {:ok, | ||
| socket | ||
| |> assign(:direction_id, direction_id) | ||
| |> assign(:route_patterns, route_patterns) | ||
| |> assign(:route_id, route_id)} | ||
| end | ||
|
|
||
| def render(assigns) do | ||
| ~H""" | ||
| <marquee style="font-size:2cm" scrollamount="16" scrolldelay="60"> | ||
| 🚧 Under Construction 🚧 | ||
| </marquee> | ||
| """ | ||
| end | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.