-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: refactor database config across environments * feat: add logging, parallel processing to build_places * chore: move NewPaMessagePage into own directory * feat: add optional list of route_ids to Screen type * chore: move existing rendering logic to own component * feat: opaque routing for PA/ESS message page(s) * feat: render list of orange line stations with pa/ess * feat: basic zone selection (via station) * feat: select all zones for line behavior * feat: generalize list behavior for subway (exc. green) * chore: extract RouteColumn component * feat: minimal support for green line * feat: green line select all checkbox * chore: remove TODO comment, won't do * feat: support silver line * feat: support silver and bus on station select * Added GL station groups. * Added RL station groups. * Added OL station groups. * Station Group column styling. * Column styling for all routes. * Added custom checkboxes. * Fixed some spacing. * Added IDs to checkboxes so label can be clicked to check box. * Fixed title alignment. * Line up containers. * Added sumary bar component. * Added other subway routes. * Use lodash/fp instead of lodash. * Add SL and Bus. * Finished styling of group tags. * Added X button functionality. * Added buttons to SelectStationsPage. * Cleanup and formatting. * Fixed tests. * Added :test to conditional. * Added classNames mapping. * Fixed test config for Ecto. * Removed Longwood. * Replace useEffect and useState with useMemo. * Let pluralize add number to string. * Set label width to width of column. * Fixed scroll behavior. * Added navigation to cancel button. * Remove some hidden overflow. * Custom scrollbar color. * Hide sidebar on SelectStationsPage. * Added some color variables. * Remove bottom padding. * Revert "fix: refactor database config across environments" This reverts commit 090252e. * Use :not instead of selecting each non-GL route. * Added a custom class to icon. * Changed sort function to return list unchanged for unrecognized IDs. * Renamed props. * Renamed variables to match what they represent. * Renamed variables. * Wrapped page in a Modal. --------- Co-authored-by: sloane <[email protected]>
- Loading branch information
1 parent
394552d
commit ce29459
Showing
26 changed files
with
1,233 additions
and
87 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,33 @@ | ||
@import "./new-pa-message-page.scss"; | ||
@import "./select-stations-page.scss"; | ||
@import "./selected-stations-summary.scss"; | ||
|
||
.new-pa-message, | ||
.select-stations-page-modal { | ||
height: 100%; | ||
|
||
.header { | ||
font-size: 40px; | ||
font-weight: 500; | ||
line-height: 48px; | ||
text-align: left; | ||
} | ||
|
||
.cancel-button { | ||
background-color: transparent; | ||
color: $text-link-primary; | ||
border: none; | ||
} | ||
|
||
.submit-button { | ||
background-color: $button-primary; | ||
color: $button-secondary; | ||
} | ||
} | ||
|
||
.select-stations-page-modal { | ||
.modal-content { | ||
color: $text-primary; | ||
background-color: $dark-bg; | ||
} | ||
} |
186 changes: 186 additions & 0 deletions
186
assets/css/dashboard/new-pa-message/select-stations-page.scss
This file contains 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,186 @@ | ||
.select-stations-page { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
overflow-y: hidden; | ||
|
||
.header { | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 24px 40px 0 40px; | ||
|
||
.buttons { | ||
display: flex; | ||
align-items: center; | ||
|
||
.btn { | ||
height: 38px; | ||
} | ||
} | ||
} | ||
|
||
.container-fluid { | ||
display: flex; | ||
margin-top: 40px; | ||
padding: 0; | ||
overflow-x: auto; | ||
overflow-y: hidden; | ||
flex-grow: 0; | ||
scrollbar-color: $theme-secondary $bg-elevation-4; | ||
|
||
.form-check { | ||
display: flex; | ||
padding: 0; | ||
|
||
.form-check-input { | ||
height: 16px; | ||
width: 16px; | ||
margin-left: 0; | ||
margin-right: 8px; | ||
} | ||
|
||
.form-check-label { | ||
flex-grow: 1; | ||
} | ||
} | ||
|
||
.col { | ||
background-color: $cool-gray-20; | ||
border-radius: 0px 0px 8px 8px; | ||
margin-right: 24px; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
&:first-child { | ||
margin-left: 40px; | ||
} | ||
|
||
&:last-child { | ||
margin-right: 40px; | ||
} | ||
|
||
.col-content { | ||
padding: 8px 16px; | ||
} | ||
} | ||
|
||
.title { | ||
padding: 8px 16px; | ||
border-radius: 8px 8px 0px 0px; | ||
width: 100%; | ||
height: 40px; | ||
font-size: 20px; | ||
font-weight: 500; | ||
line-height: 24px; | ||
} | ||
|
||
.station-groups-col { | ||
min-width: 273px; | ||
|
||
.title { | ||
background-color: $cool-gray-40; | ||
} | ||
|
||
.route-groups { | ||
padding: 0 16px; | ||
|
||
&:nth-child(2) { | ||
padding-top: 16px; | ||
} | ||
|
||
&:last-child { | ||
padding-bottom: 16px; | ||
} | ||
|
||
.station-group { | ||
&:not(:last-child) { | ||
margin-bottom: 24px; | ||
} | ||
} | ||
} | ||
|
||
.col-content { | ||
height: 100%; | ||
overflow-y: auto; | ||
padding-left: 0; | ||
} | ||
|
||
.group-title { | ||
color: $text-secondary; | ||
} | ||
|
||
hr { | ||
margin-top: 24px; | ||
margin-bottom: 8px; | ||
} | ||
} | ||
|
||
.route-col { | ||
min-width: 304px; | ||
|
||
&:not(&--green) { | ||
height: fit-content; | ||
max-height: 100%; | ||
|
||
.col-content { | ||
flex-basis: content; | ||
overflow-y: auto; | ||
} | ||
} | ||
|
||
.station-name { | ||
margin-bottom: 6px; | ||
} | ||
|
||
&--green { | ||
.title { | ||
background-color: $mbta-green; | ||
height: fit-content; | ||
} | ||
|
||
.branches-col { | ||
overflow-y: auto; | ||
height: 100%; | ||
|
||
.title { | ||
border-radius: 0; | ||
background-color: $bg-elevation-4; | ||
font-size: 16px; | ||
} | ||
} | ||
} | ||
|
||
&--red, | ||
&--mattapan { | ||
.title { | ||
background-color: $mbta-red; | ||
} | ||
} | ||
|
||
&--orange { | ||
.title { | ||
background-color: $mbta-orange; | ||
} | ||
} | ||
|
||
&--blue { | ||
.title { | ||
background-color: $mbta-blue; | ||
} | ||
} | ||
|
||
&--silver { | ||
.title { | ||
background-color: $mbta-silver; | ||
} | ||
} | ||
|
||
&--bus { | ||
.title { | ||
color: $text-invert; | ||
background-color: $mbta-bus; | ||
} | ||
} | ||
} | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
assets/css/dashboard/new-pa-message/selected-stations-summary.scss
This file contains 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,80 @@ | ||
.selected-stations-summary { | ||
display: flex; | ||
align-items: center; | ||
height: 52px; | ||
border-radius: 8px; | ||
background-color: $cool-gray-30; | ||
margin: 40px 40px 0 40px; | ||
padding: 15px 18px; | ||
font-weight: 500; | ||
font-size: 20px; | ||
line-height: 30px; | ||
|
||
.label { | ||
margin-right: 8px; | ||
} | ||
|
||
span { | ||
color: $text-secondary; | ||
} | ||
|
||
.geo-alt-fill-icon { | ||
margin-right: 7px; | ||
} | ||
|
||
.selected-group-tag { | ||
height: 36px; | ||
padding: 6px 12px; | ||
border: 1px solid $text-secondary; | ||
border-radius: 4px; | ||
font-weight: 500; | ||
font-size: 16px; | ||
line-height: 24px; | ||
margin-right: 4px; | ||
display: flex; | ||
align-items: center; | ||
|
||
&--green { | ||
background-color: $mbta-green; | ||
} | ||
&--red { | ||
background-color: $mbta-red; | ||
} | ||
&--orange { | ||
background-color: $mbta-orange; | ||
} | ||
&--blue { | ||
background-color: $mbta-blue; | ||
} | ||
&--mattapan { | ||
background-color: $mbta-red; | ||
} | ||
&--silver { | ||
background-color: $mbta-silver; | ||
} | ||
&--bus { | ||
background-color: $mbta-bus; | ||
color: $text-invert; | ||
fill: $text-invert; | ||
} | ||
|
||
button { | ||
height: 24px; | ||
width: 16px; | ||
margin-left: 4px; | ||
padding: 0; | ||
background-color: transparent; | ||
border: none; | ||
|
||
&.bus { | ||
svg { | ||
fill: $text-invert; | ||
} | ||
} | ||
|
||
.bi-x { | ||
display: block; | ||
} | ||
} | ||
} | ||
} |
This file contains 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 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 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.