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

feat(LiveComponents.TripPlannerForm): show grouped itineraries from OTP #2174

Merged
merged 28 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bcbc882
convert eex to heex
anthonyshull Sep 9, 2024
58d8ba0
beginning of outputting trip plan with groups
anthonyshull Sep 9, 2024
1bec731
clean up some
anthonyshull Sep 10, 2024
b475951
always use new output
anthonyshull Sep 10, 2024
2e291cb
revert old trip planner UI
thecristen Sep 19, 2024
0857836
tweak location result styling even more
thecristen Sep 19, 2024
03618e3
fix(ItineraryGroup): module names, update class names
thecristen Sep 19, 2024
4e232e4
upcoming open_trip_planner_client changes
thecristen Sep 25, 2024
f5fa15d
mix deps.clean --unlock --unused
thecristen Sep 26, 2024
c64d922
explicit upgrade
thecristen Sep 26, 2024
3142b8c
some more fixes
thecristen Sep 26, 2024
caf6c1d
last resort
thecristen Sep 26, 2024
f283d21
actually work
thecristen Sep 27, 2024
9070da6
minor parsing fix, improve grouping styling
thecristen Sep 27, 2024
80d231e
another try
thecristen Sep 27, 2024
30095ee
runtime false
thecristen Sep 27, 2024
a08e5f8
not only prod
thecristen Sep 27, 2024
aca259b
remove metro for now
thecristen Sep 27, 2024
218bfd6
try with time changes
thecristen Sep 27, 2024
87a3e49
metro is back!
thecristen Oct 3, 2024
e86f3e4
probably fix the time thing
thecristen Oct 3, 2024
83d068a
follow static file handling best practices
thecristen Oct 3, 2024
66c3d20
show realtime state somehow
thecristen Oct 3, 2024
51292cc
update metro
thecristen Oct 3, 2024
0142092
forgot the fonts
thecristen Oct 3, 2024
4bf230b
include the hooks for good measure
thecristen Oct 3, 2024
4e67166
try not ignoring this
thecristen Oct 3, 2024
4241db8
corrected static paths
thecristen Oct 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ deps
erl_crash.dump
build.sh
deploy.sh
/priv/static/*
!/priv/static/icon-svg/
aws
dotcom-build.zip
bin
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ node_modules
/**/react_renderer/dist

# Since we are building assets from assets,
# we ignore priv/static. You may want to comment
# this depending on your deployment strategy.
/priv/static/*
!/priv/static/icon-svg/
# we ignore certain directories in priv/static.
/priv/static/css
/priv/static/js

# The config/prod.secret.exs file by default contains sensitive
# data and you should not commit it into version control.
Expand Down
6 changes: 2 additions & 4 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// TailwindCSS
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
// MBTA METRO
@import '../../deps/mbta_metro/priv/static/assets/default.css';

Copy link
Contributor

Choose a reason for hiding this comment

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

🥂

////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions assets/js/algolia-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,11 @@ function _sortFeatures(features) {

function _getCommuterRailZone(hit) {
if (hit.zone) {
return [`<span class="c-icon__cr-zone">Zone ${hit.zone}</span>`];
return [`<span class="c-icon__cr-zone text-sm">Zone ${hit.zone}</span>`];
}
if (hit.icon === "station") {
// the north/south station popular result
return [`<span class="c-icon__cr-zone">Zone 1A</span>`];
return [`<span class="c-icon__cr-zone text-sm">Zone 1A</span>`];
}
return [];
}
Expand Down
5 changes: 3 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable */
import { Hooks } from "mbta_metro";
import "../vendor/fixedsticky";
import "../vendor/accessible-date-picker";
import "bootstrap/dist/js/umd/collapse";
Expand Down Expand Up @@ -43,7 +44,7 @@ import pslPageSetup from "./psl-page-setup.js";
import tabbedNav from "./tabbed-nav.js";
import { accordionInit } from "../ts/ui/accordion";
import initializeSentry from "../ts/sentry";
import Hooks from "../ts/phoenix-hooks/index.ts";
import DotcomHooks from "../ts/phoenix-hooks/index.ts";

// Establish Phoenix Socket and LiveView configuration.
import { Socket } from "phoenix";
Expand All @@ -55,7 +56,7 @@ let csrfToken = document

let liveSocket = new LiveSocket("/live", Socket, {
params: { _csrf_token: csrfToken },
hooks: Hooks
hooks: { ...Hooks, ...DotcomHooks }
});

// connect if there are any LiveViews on the page
Expand Down
31 changes: 21 additions & 10 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"leaflet": "^1.4.0",
"leaflet-rotatedmarker": "^0.2.0",
"lodash": "^4.17.21",
"mbta_metro": "^0.0.13",
"mbta_metro": "^0.0.18",
"mobile-detect": "^1.4.5",
"phoenix": "file:../deps/phoenix",
"phoenix_html": "file:../deps/phoenix_html",
Expand Down
Binary file removed assets/static/fonts/Inter-Black.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-BlackItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-BoldItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-ExtraBold.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-ExtraBoldItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-ExtraLight.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-ExtraLightItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-Italic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-Light.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-LightItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-MediumItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-SemiBold.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-SemiBoldItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-Thin.woff2
Binary file not shown.
Binary file removed assets/static/fonts/Inter-ThinItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Black.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-BlackItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Bold.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-BoldItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-ExtraBold.woff2
Binary file not shown.
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-ExtraLight.woff2
Binary file not shown.
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Italic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Light.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-LightItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Medium.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-MediumItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Regular.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-SemiBold.woff2
Binary file not shown.
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-Thin.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterDisplay-ThinItalic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterVariable-Italic.woff2
Binary file not shown.
Binary file removed assets/static/fonts/InterVariable.woff2
Binary file not shown.
1 change: 0 additions & 1 deletion assets/static/google778e4cfd8ca77f44.html

This file was deleted.

1 change: 0 additions & 1 deletion assets/static/loaderio-392aa6a67825336b70393c6be61d56ce

This file was deleted.

1 change: 0 additions & 1 deletion assets/static/loaderio-b4c35b9431db61b4421fcf03e17c3818

This file was deleted.

1 change: 0 additions & 1 deletion assets/static_page/apple-touch-icon.png

This file was deleted.

1 change: 0 additions & 1 deletion assets/static_page/error-bus.gif

This file was deleted.

1 change: 0 additions & 1 deletion assets/static_page/favicon.ico

This file was deleted.

155 changes: 0 additions & 155 deletions assets/static_page/maintenance.html

This file was deleted.

1 change: 0 additions & 1 deletion assets/static_page/mbta-logo-t-favicon.png

This file was deleted.

9 changes: 4 additions & 5 deletions assets/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// See the Tailwind configuration guide for advanced usage
// https://tailwindcss.com/docs/configuration

const plugin = require("tailwindcss/plugin");

const {
colors,
content,
fontFamily,
plugins,
safelist
} = require("mbta_metro");
const plugin = require("tailwindcss/plugin");

module.exports = {
important: true,
corePlugins: {
preflight: false
},
Expand All @@ -22,9 +22,9 @@ module.exports = {
"./ts/**/*.ts",
"./ts/**/*.tsx",
"../lib/dotcom_web.ex",
"../lib/dotcom_web/**/*.*ex",
"../deps/mbta_metro/lib/mbta_metro/**/*.ex" // remove after updating Elixir lib
"../lib/dotcom_web/**/*.*ex"
],
safelist: [...safelist],
theme: {
extend: {
colors: {
Expand All @@ -35,7 +35,6 @@ module.exports = {
...fontFamily
}
},
safelist: [...safelist],
plugins: [
...plugins,
require("@tailwindcss/forms"),
Expand Down
Loading
Loading