-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Commuter rail in Data Dashboard #898
Merged
Merged
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
7acd7c5
Using Gobble data
devinmatte 06fda87
Adding commuter rail data to data dashboard
devinmatte de039bd
Merge remote-tracking branch 'origin/main' into gobble-data
devinmatte a378dc4
Merge branch 'main' into gobble-data
devinmatte f361981
Merge branch 'main' into gobble-data
devinmatte 74ce70a
Treat bus the same as rapid for dates
devinmatte 02cb728
Merge branch 'main' into commuter-rail-in-dd
devinmatte 75c60ab
Better if statement
devinmatte aa40939
Handle date formats with timezones
devinmatte 30ddd1f
Renaming date_utils
devinmatte a122a88
Cleanup imports
devinmatte 6751998
Merge branch 'main' into gobble-data
devinmatte 9532a70
Inject timezone into non-timezone datestamps
devinmatte 5bb67e6
Merge branch 'gobble-data' into commuter-rail-in-dd
devinmatte ee77537
Set minimum commuter rail date
devinmatte 4577978
Adding some initial platform ids
devinmatte d137236
Adding lowell line platform ids
devinmatte 20c5eec
Properly fetching CR stations
devinmatte 3a89a12
Acutally fetching CR data
devinmatte a8ed493
Adding franklin line ids
devinmatte 94b1f5a
Populating stations
devinmatte b23874e
Adding more lines
devinmatte 90443ff
Adding Haverhill stops
devinmatte 43db5e0
Updating min dates
devinmatte 772d10e
Adding more lines and better stop population
devinmatte 8552827
Clean up scripts
devinmatte 5917d97
Allowing commuter rail ridership fetching
devinmatte abb331c
Merge branch 'main' into commuter-rail-in-dd
devinmatte e17b392
Updating line files
devinmatte 4f3f337
Adding more stop ids
devinmatte d223d02
Merge branch 'main' into commuter-rail-in-dd
devinmatte 8de71df
Merge branch 'main' into commuter-rail-in-dd
devinmatte 6a42b6d
Fixing bus typing
devinmatte 078206f
Merge remote-tracking branch 'origin/main' into commuter-rail-in-dd
devinmatte 7e4505f
Remove foxboro for now
devinmatte b69f386
Merge branch 'main' into commuter-rail-in-dd
devinmatte b169555
Merge remote-tracking branch 'origin/main' into commuter-rail-in-dd
devinmatte 8db9c46
Fix widget title import
devinmatte a094889
Merge remote-tracking branch 'origin/main' into commuter-rail-in-dd
devinmatte 3b102e1
Updating CR line files
devinmatte d5913dd
Merge branch 'main' into commuter-rail-in-dd
devinmatte 35c5410
Hide stations we don't have stops for
devinmatte 3101977
Nevermind
devinmatte c27a83e
Populate with newer stops
devinmatte 93b5197
Merge branch 'main' into commuter-rail-in-dd
devinmatte 8b40dc5
Merge branch 'main' into commuter-rail-in-dd
devinmatte 631a5f0
Fixing CR data calls
devinmatte 144a6f2
Merge branch 'main' into commuter-rail-in-dd
devinmatte 6d6da82
Merge branch 'main' into commuter-rail-in-dd
devinmatte f722dde
Merge branch 'main' into commuter-rail-in-dd
devinmatte ef4c548
Merge branch 'main' into commuter-rail-in-dd
devinmatte 8fb44d1
Fixing 120+ minute headways for CR
devinmatte 634b983
Updating commuter rail stations and notices
devinmatte 4810c36
Merge remote-tracking branch 'origin/main' into commuter-rail-in-dd
devinmatte 7ce77b4
Fixing data fetching issues for cr
devinmatte d837b4c
Remove unused
devinmatte 3b34d1b
Merge branch 'main' into commuter-rail-in-dd
devinmatte e281387
Merge branch 'main' into commuter-rail-in-dd
devinmatte 5ed4575
Adding commuter rail ridership to dashboard
devinmatte 0272985
Fixing props
devinmatte 6af58db
Adding commuter rail landing button
devinmatte 0285525
Merge branch 'commuter-rail-ridership' into commuter-rail-in-dd
devinmatte c23d10f
Fixing commuter rail links
devinmatte cabcc80
Fix linting issues
devinmatte 8389487
Merge remote-tracking branch 'origin/main' into commuter-rail-in-dd
devinmatte 8b17144
Adding log retention policy
devinmatte 3742ac3
Oops we'd need to delete the stack
devinmatte 385f905
Okay nevermind
devinmatte 35ed79f
Merge branch 'main' into commuter-rail-in-dd
devinmatte 7f721b5
Merge branch 'main' into commuter-rail-in-dd
devinmatte 0f015a4
Update lines with current data
devinmatte 7dc121d
Add in newburyport line
devinmatte e4da0ef
Beta notice in all commuter rail
devinmatte 484158a
Merge branch 'main' into commuter-rail-in-dd
devinmatte 81ccc94
Merge remote-tracking branch 'origin' into commuter-rail-in-dd
devinmatte da3b53e
Merge branch 'main' into commuter-rail-in-dd
devinmatte ed90f93
Update modules/tripexplorer/CommuterRailTripGraphs.tsx
devinmatte 53961c3
Merge branch 'main' into commuter-rail-in-dd
devinmatte 6509260
Merge branch 'main' into commuter-rail-in-dd
devinmatte 926d9d3
Merge branch 'main' into commuter-rail-in-dd
devinmatte 51df9fb
Clean up date selection and remaining small bugs
devinmatte 67db703
Version bump and improve legend
devinmatte 73b8ad1
Format Y axis
devinmatte 340b542
Update lockfile
devinmatte 5c11f07
Merge branch 'main' into commuter-rail-in-dd
devinmatte 2b0f538
Include commuter rail in description
devinmatte 4419c52
Improve page warnings
devinmatte 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 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
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
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,24 @@ | ||
import React from 'react'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faLocationCrosshairs } from '@fortawesome/free-solid-svg-icons'; | ||
import { useDelimitatedRoute } from '../../utils/router'; | ||
|
||
export const CommuterRailDataNotice: React.FC = () => { | ||
const { line, linePath } = useDelimitatedRoute(); | ||
|
||
if (line === 'line-commuter-rail' || linePath === 'commuter-rail') { | ||
return ( | ||
<div className={'flex items-center'}> | ||
<FontAwesomeIcon icon={faLocationCrosshairs} size={'lg'} /> | ||
<div className={'mx-3 my-2 text-sm italic'}> | ||
<p> | ||
Due to how we collect data for Commuter Rail, we may occasionally miss trips or stops. | ||
This can lead to inaccuracies in headways numbers and gaps in travel time data. Confirm | ||
data you see here with official MBTA sources when possible. | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
return null; | ||
}; |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the difference between these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the issue is that sometimes one of the values may be
undefined
so we need to check bothThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: could we consistently use commuter rail? I feel like
line-commuter-rail
makes it sound like a GTFS route, which could be confusing since commuter rail has many GTFS routesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although I guess it's fine since we currently have bus as
line-bus
lolThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is probably something we should clean up someday