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

Dashboard V4 #787

Merged
merged 327 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
a63447b
V4/sidebar updates (#384)
PatrickCleary Mar 16, 2023
1a4971c
V4/rename bus line (#386)
PatrickCleary Mar 16, 2023
c12ab03
Remove Custom Queries
PatrickCleary Mar 16, 2023
8af9d86
Revert "Remove Custom Queries"
PatrickCleary Mar 16, 2023
7bddf7a
Remove Custom Queries (#388)
PatrickCleary Mar 20, 2023
977ebb4
Bus Fix (#389)
PatrickCleary Mar 23, 2023
acbec78
[v4] Removing v3 code (#396)
devinmatte Mar 25, 2023
0f15606
Fix faulty alert logic (#397)
PatrickCleary Mar 25, 2023
e37cefb
[v4] Adding a basic station selector to travel times (#376)
devinmatte Mar 25, 2023
82100c0
[v4] Adding better pickers on desktop and mobile (#402)
devinmatte Mar 26, 2023
cc38e8e
Updating packages for March 2023 (#400)
devinmatte Mar 26, 2023
2b11f02
Aggregate data for Headways and Dwells (#405)
devinmatte Mar 27, 2023
d034437
Cleaning up the Bus (#409)
devinmatte Mar 28, 2023
fec6fb5
Adding OSS licenses page (#407)
devinmatte Mar 28, 2023
cbaa948
Fixing default import error
devinmatte Mar 28, 2023
13ab2f6
V4/date selector (#410)
PatrickCleary Mar 29, 2023
034b9dd
V4/data page tab nav (#412)
PatrickCleary Mar 30, 2023
084ef92
Add simple titles and fix agg chart titles (#415)
PatrickCleary Mar 30, 2023
6f0ad5e
Add line health date range (not functional) (#416)
PatrickCleary Mar 31, 2023
541de28
V4/trip explorer (#429)
PatrickCleary Apr 2, 2023
1143b37
server changes to add speed API (#399)
PatrickCleary Apr 2, 2023
00288f3
Extract widget delta into separate component (#435)
PatrickCleary Apr 4, 2023
5bbc43c
V4/sz dates (#413)
PatrickCleary Apr 4, 2023
a3a8c06
Better enforcing eslint (#440)
devinmatte Apr 5, 2023
d877e5f
eslint ignore directory from deploy.sh
PatrickCleary Apr 5, 2023
83e3731
V4/speed graph (#434)
PatrickCleary Apr 5, 2023
f0264c8
Adding storybook and bezier packages (#441)
devinmatte Apr 5, 2023
22c812f
Cleaning up errors slightly (#443)
devinmatte Apr 5, 2023
086f98f
Adding new presets for datepicker (#446)
devinmatte Apr 5, 2023
18eec9c
V4/speed metric (#390)
PatrickCleary Apr 5, 2023
56b8bea
Fixing Trains vs Buses on graphs (#450)
devinmatte Apr 6, 2023
4ba3435
Adding download buttons, and cleaning up (#448)
devinmatte Apr 6, 2023
54b7ea8
Handling issues with 114/116/117 (#449)
devinmatte Apr 6, 2023
d070596
V4/new pages (#453)
PatrickCleary Apr 6, 2023
ef0464e
Remove some codeowners for v4 (#455)
PatrickCleary Apr 6, 2023
9784b89
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte Apr 6, 2023
cc8edf4
Fix segments view to show 'ongoing' SZs (#457)
PatrickCleary Apr 6, 2023
9df98c2
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte Apr 7, 2023
384d6cc
Slow Zones map visualization (#437)
idreyn Apr 7, 2023
9069034
Fix bug with SZ line segments tooltip (#463)
PatrickCleary Apr 7, 2023
a520670
To better enforce the code style and modern ES2020 (#462)
devinmatte Apr 7, 2023
771fe64
No unused props eslint rule (#464)
devinmatte Apr 7, 2023
0c00495
Adding a notice for terminus stations (#461)
devinmatte Apr 7, 2023
994794a
Quick follow-up for Slow Zones map label styling (#466)
idreyn Apr 7, 2023
b9bb4e9
Fixing up eslint warnings, and cleanup (#465)
devinmatte Apr 7, 2023
9fc288d
V4/speed changes (#454)
PatrickCleary Apr 10, 2023
1d73ec1
API Cleanup and Ridership fixes (#469)
devinmatte Apr 11, 2023
111516f
remove separate pages for single/range (#474)
PatrickCleary Apr 11, 2023
04ece74
V4/datepicker change (#473)
PatrickCleary Apr 11, 2023
806d956
Read stations from url params part 1 (#431)
devinmatte Apr 12, 2023
b219a83
Better opacity scaling for SZ map segments (#467)
idreyn Apr 12, 2023
f2edac4
V4/nav rework (#458)
PatrickCleary Apr 12, 2023
2db794c
two small bugs (#477)
PatrickCleary Apr 12, 2023
988f4d1
Small bug (#478)
PatrickCleary Apr 12, 2023
4117480
V4/various fixes (#479)
PatrickCleary Apr 12, 2023
196d753
V4/context dashboard (#480)
PatrickCleary Apr 13, 2023
46316e9
Fix Bus trip explorer page (#482)
PatrickCleary Apr 13, 2023
07d17e6
V4/mobile and ridership cleanup (#485)
PatrickCleary Apr 13, 2023
073e2fd
Add widget data box style to trip explorer (#484)
PatrickCleary Apr 13, 2023
fa56839
Update ridership April 3
devinmatte Apr 14, 2023
313a8db
[v4] Notice on Speed when shuttling (#491)
devinmatte Apr 14, 2023
3ac349c
Add date preset context and logic (#472)
PatrickCleary Apr 16, 2023
b27cdca
Station can sometimes be undefined (#492)
devinmatte Apr 16, 2023
0ffd97d
Updating python deps for April 2023 (#470)
devinmatte Apr 16, 2023
3bd8de4
Update slow zone widgets and update for `view` (#500)
PatrickCleary Apr 19, 2023
427d137
V4/station selector style (#468)
PatrickCleary Apr 20, 2023
caf8382
V4/trip style (#509)
PatrickCleary Apr 22, 2023
e23541f
Parsing config params from v3 links (#493)
devinmatte Apr 27, 2023
e724b35
Updating to allow Python 3.10 (#502)
devinmatte Apr 28, 2023
f3168f3
Fixing deployments (#515)
devinmatte Apr 28, 2023
ccfdb3e
Shortened station names (#513)
PatrickCleary Apr 28, 2023
e320c82
Add speed details page (#505)
PatrickCleary Apr 28, 2023
7ce6899
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte Apr 29, 2023
ff33d7a
Fixing README merge conflicts
devinmatte Apr 29, 2023
8893406
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte Apr 29, 2023
1b42648
Storybook Upgrade (#488)
devinmatte Apr 30, 2023
6c01a18
Adding message when no data (#521)
devinmatte Apr 30, 2023
5d311d2
Clearing extra code
devinmatte Apr 30, 2023
6aed51d
Wire up Datadog Tracing (#522)
devinmatte Apr 30, 2023
c6982d5
Using string instead of boolean
devinmatte Apr 30, 2023
ca1deac
Export without hashes
devinmatte May 1, 2023
65b6da2
Fixing order
devinmatte May 1, 2023
b4b3dd4
Set DD_LAMBDA_HANDLER to app.app
devinmatte May 1, 2023
1df2f7f
Adding datadog layer
devinmatte May 1, 2023
a49c9f9
V4/szs nb sb (#511)
PatrickCleary May 1, 2023
9b2e3ec
Moving scripts under server
devinmatte May 1, 2023
768785a
Station Selector UX change (#525)
PatrickCleary May 1, 2023
9b24640
full screen mobile nav and more (#526)
PatrickCleary May 1, 2023
29dcb89
Swapping from RL keys to line-red (#459)
devinmatte May 1, 2023
0b8e4fb
Prefer named exports (#529)
devinmatte May 2, 2023
3abc373
SZT speed restrictions take 2 (#531)
idreyn May 2, 2023
169dc71
V4/trips loading (#514)
PatrickCleary May 2, 2023
bc8e8ef
V4/header and controls (#527)
PatrickCleary May 2, 2023
ccc0c0f
Adding favicon, meta and titles (#535)
devinmatte May 3, 2023
70a2830
API routes for service levels and ridership (#538)
idreyn May 3, 2023
9a1cf5a
fix: Add new DynamoDB resources to policy file
idreyn May 3, 2023
88a97b7
V4/null speed values (#536)
PatrickCleary May 4, 2023
50b52cb
Ensuring we use the right equal comparison (#540)
devinmatte May 4, 2023
3cb9121
Setting selected datepicker color to match line (#541)
devinmatte May 4, 2023
12a476b
V4/service page (#508)
PatrickCleary May 5, 2023
8b6314e
better scroll visual for alerts (#551)
PatrickCleary May 8, 2023
ba75672
Shuttling speed widget bug (#550)
PatrickCleary May 8, 2023
ee6e56d
Change button colors (#552)
PatrickCleary May 8, 2023
6bea216
Watermarking charts (#433)
devinmatte May 9, 2023
f194bca
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte May 9, 2023
93a936a
V4/close nav (#553)
PatrickCleary May 9, 2023
ca17a8d
V4/chart annotations (#549)
PatrickCleary May 9, 2023
8d52130
Travel Times by Hour Chart (#557)
devinmatte May 10, 2023
1861ba7
bug fix (#559)
PatrickCleary May 10, 2023
4e6524f
convert to Next Links, add shallow routing (#565)
PatrickCleary May 13, 2023
7ef605a
V4/side nav fix (#556)
PatrickCleary May 15, 2023
6e2b71f
Updating packages and cleaning up (#574)
devinmatte May 15, 2023
25319d7
add basic system sz tab (#572)
skaplan-dev May 16, 2023
19b2118
Fix chart flicker (#583)
PatrickCleary May 17, 2023
2cccd3a
Add dates to date placeholder (#585)
PatrickCleary May 19, 2023
af5292d
Shrink Legend (#579)
PatrickCleary May 19, 2023
48260fa
Fix bug with delta widgets (#582)
PatrickCleary May 20, 2023
0270551
Delivered Service (#586)
PatrickCleary May 20, 2023
32b5198
V4/titles (#576)
PatrickCleary May 22, 2023
5f3d40d
Shorter Date and small style changes (#592)
PatrickCleary May 31, 2023
b849ba8
Use ChartDivs (#591)
PatrickCleary May 31, 2023
daff246
Cleaning up footer and sidebar (#594)
devinmatte Jun 2, 2023
f0a9892
Adding basic goatcounter (#563)
devinmatte Jun 2, 2023
2085ab8
Data Widget Carousel (#584)
PatrickCleary Jun 2, 2023
5176ba8
Dwells Aggregate Widget (#593)
PatrickCleary Jun 2, 2023
2fd9125
Ridership graphs (#590)
PatrickCleary Jun 2, 2023
ef4a69b
Add Layouts (#589)
PatrickCleary Jun 3, 2023
fde41f9
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte Jun 3, 2023
a1226a7
V4/service widget update (#596)
PatrickCleary Jun 3, 2023
d7779fb
Removing unused icons (#613)
devinmatte Jun 3, 2023
a6c007c
move system nav item to first (#616)
skaplan-dev Jun 4, 2023
0c29a70
Adding link to trips page for slowzone segment (#612)
devinmatte Jun 4, 2023
813dcdd
V4/single day widget update (#599)
PatrickCleary Jun 4, 2023
3d3f804
V4/speed widget update (#597)
PatrickCleary Jun 4, 2023
fbf46b4
V4/sz widget update (#598)
PatrickCleary Jun 5, 2023
027dc9a
bus (#620)
PatrickCleary Jun 5, 2023
b889a55
V4/single dwell widget update (#622)
PatrickCleary Jun 5, 2023
f16c180
V4/headway single day widget update (#600)
PatrickCleary Jun 5, 2023
974a06c
Maybe fixing bug where link doesn't open with params (#623)
devinmatte Jun 5, 2023
e3451ad
Updating chalice for py3.10
devinmatte Jun 5, 2023
e318e93
Updating datadog layer
devinmatte Jun 5, 2023
47ad839
Migrate all icons to attrutible (#624)
devinmatte Jun 6, 2023
2de74d7
V4/no data notice (#621)
PatrickCleary Jun 6, 2023
dbb03f2
Basic system slowzones page (#595)
devinmatte Jun 6, 2023
608c39c
V4/ridership widget update (#631)
PatrickCleary Jun 6, 2023
30b2a76
Package updates June 2023
devinmatte Jun 6, 2023
441f60b
Removing unused type check
devinmatte Jun 7, 2023
ab5698e
Fixing typescript types
devinmatte Jun 7, 2023
2f4e2c3
V4/landing page (#632)
PatrickCleary Jun 7, 2023
bf7b94d
V4/landing page speed graph (#635)
PatrickCleary Jun 8, 2023
abfb293
Updating logo (#638)
devinmatte Jun 8, 2023
9410925
Remove Trip widgets code (#644)
PatrickCleary Jun 9, 2023
cac1a18
remove today page (#642)
PatrickCleary Jun 9, 2023
a37a1f1
V4/landing page service graph (#636)
PatrickCleary Jun 9, 2023
b8fdb32
Rename dashboardConfig -> dateStore (#645)
PatrickCleary Jun 9, 2023
5dc5b06
Fix system tab controls and title bug on mobile (#654)
PatrickCleary Jun 11, 2023
c7ea2ad
ever-so-slightly improved 404 (#652)
PatrickCleary Jun 12, 2023
a21634b
update 404 pages in code (#657)
PatrickCleary Jun 12, 2023
f5bb223
V4/landing page ridership graph (#637)
PatrickCleary Jun 12, 2023
872416a
V4/header link (#653)
PatrickCleary Jun 12, 2023
c129f84
Fix 404 bugs (#659)
PatrickCleary Jun 12, 2023
f85d383
Lottie Hero Animation (#658)
PatrickCleary Jun 12, 2023
2787379
V4/landing graph style (#640)
PatrickCleary Jun 12, 2023
031e3a6
Update hero animation (#663)
PatrickCleary Jun 13, 2023
2985dc3
Split trips into two top-level tabs. (#650)
PatrickCleary Jun 13, 2023
e711b5d
Fixing chartjs imports (#664)
devinmatte Jun 13, 2023
9c85324
Warn on unused exports (#669)
devinmatte Jun 14, 2023
08bef33
Station store (#643)
PatrickCleary Jun 14, 2023
90fa388
Ridership updates (#668)
PatrickCleary Jun 14, 2023
069c27e
auto fill dates (#662)
PatrickCleary Jun 14, 2023
89c9300
shrink line selection (#672)
PatrickCleary Jun 15, 2023
c7c2bdb
Updating to Python 3.10 (#676)
devinmatte Jun 15, 2023
6395a0a
new sidebar buttons (#671)
PatrickCleary Jun 15, 2023
e6418dc
Register globally once chart js (#677)
devinmatte Jun 15, 2023
7a38559
Date Presets for the system page (#670)
PatrickCleary Jun 15, 2023
cd11901
yesterday's data before 6AM for single day (#675)
JNuss71 Jun 15, 2023
99e304b
Cleaning up unused exports and files (#678)
devinmatte Jun 15, 2023
0ab6729
V4/various fixes 2 (#673)
PatrickCleary Jun 16, 2023
11665cc
Day of data notice (#679)
devinmatte Jun 16, 2023
c36fa27
V4/landing copy (#661)
PatrickCleary Jun 16, 2023
0e381fd
Using replace instead of push to fix back nav (#685)
devinmatte Jun 19, 2023
0848c2e
V4/svg header bug (#689)
PatrickCleary Jun 22, 2023
11ad7d1
Add date on widget for single day trips (#699)
skaplan-dev Jun 24, 2023
9d5d0b5
Sentence case text (#692)
mathcolo Jun 24, 2023
b224954
[v4] hide secrets in healthcheck output (#698)
mathcolo Jun 24, 2023
f7edb86
Forgot a few case adjustments (#703)
mathcolo Jun 25, 2023
f90914f
fix point colors and consolidate radii (#701)
PatrickCleary Jun 25, 2023
fe1786a
bug/overview-date-overflow (#700)
PatrickCleary Jun 25, 2023
881d9bb
small changes to landing chart (#696)
PatrickCleary Jun 25, 2023
d1b94ca
fit hero animation into viewport (#704)
PatrickCleary Jun 27, 2023
4589d6a
Fix service tooltip (#707)
PatrickCleary Jun 27, 2023
dbee098
Change time widget unit format (#708)
PatrickCleary Jun 27, 2023
0f2d796
Updating time labels to be consistent across the app (#711)
devinmatte Jul 6, 2023
2ad718b
Adding aria label to next stat button (#719)
devinmatte Jul 7, 2023
b796737
Reroute v3 urls in static build (#688)
devinmatte Jul 7, 2023
812b1ce
Add bus date presets (#720)
devinmatte Jul 7, 2023
c604513
Fixing accessibility issues according to lighthouse (#721)
devinmatte Jul 7, 2023
242c575
Fix averages with 0s (#725)
devinmatte Jul 7, 2023
6733fc3
Fixing total slow time tooltip label (#723)
devinmatte Jul 7, 2023
ec13f27
add system wide slowzone segments (#730)
skaplan-dev Jul 9, 2023
1a5f170
fix ridership chart config (#732)
skaplan-dev Jul 9, 2023
3e2bd4a
feat: add travel time copy (#731)
skaplan-dev Jul 10, 2023
27ee572
Gl speed pt 1 (#733)
PatrickCleary Jul 10, 2023
0d5a7d1
Landing page breakpoint for smaller screens (#735)
devinmatte Jul 10, 2023
0a99e2c
Add Green Line Speeds to dashboard. (#734)
PatrickCleary Jul 10, 2023
1ddb7e6
Fixes back navigation to account for date changes (#724)
devinmatte Jul 10, 2023
1186311
Remove old unused speed code (#736)
PatrickCleary Jul 10, 2023
1050242
Merge remote-tracking branch 'origin/main' into dashboard-v4
devinmatte Jul 11, 2023
f0b370a
Updating deps issue
devinmatte Jul 11, 2023
3d27d65
shrink station selector items (#710)
PatrickCleary Jul 11, 2023
d90d4cb
Explicitly add _blank and noreferrer
devinmatte Jul 12, 2023
5d687fd
Slow Zones Update (#737)
austinhouck Jul 12, 2023
a80fbe6
Fix bug with selecting from stations. (#740)
PatrickCleary Jul 12, 2023
1b9c4aa
Adding historical alerts (#682)
devinmatte Jul 12, 2023
ca7e7f8
tripCounts -> ScheduledServiceDaily (#743)
PatrickCleary Jul 12, 2023
4e277bc
bug fix (#747)
PatrickCleary Jul 12, 2023
4b6b185
Deploy to bucket
devinmatte Jul 12, 2023
68be587
bug (#745)
PatrickCleary Jul 12, 2023
a311736
fix (#752)
PatrickCleary Jul 12, 2023
1258033
Pull speed restrictions data from DynamoDB (#714)
idreyn Jul 12, 2023
3a9eaa4
Shrink station selector on mobile (#753)
PatrickCleary Jul 13, 2023
1e895c4
Prevent double calls when date loads (#756)
devinmatte Jul 13, 2023
25df8f8
add histogram back (#749)
PatrickCleary Jul 13, 2023
58e5228
Adding trailing slashes for redirects (#757)
devinmatte Jul 14, 2023
d33afb9
Fixing routing for api route (#758)
devinmatte Jul 14, 2023
026a789
fix: Add SpeedRestrictions table permissions to policy.json
idreyn Jul 14, 2023
7e17b15
Add bus ridership baselines (#762)
PatrickCleary Jul 14, 2023
2bad463
rename speed chart (#760)
PatrickCleary Jul 14, 2023
ae2c82b
new favicon (#754)
PatrickCleary Jul 14, 2023
54ccb64
Clean up a bunch of code and eslint warnings (#765)
devinmatte Jul 15, 2023
c39d6c6
Prepare deploy script for beta/prod deploy (#766)
devinmatte Jul 15, 2023
0fb57ee
Remove v3 relic of 404s not actually being real (#770)
mathcolo Jul 15, 2023
f59acc3
Hit static landing page data (#768)
PatrickCleary Jul 15, 2023
799fba0
Fix download button color (#771)
devinmatte Jul 15, 2023
2ec8e8a
Route lambda through datadog so we get traces (#772)
devinmatte Jul 16, 2023
c6df803
fix: SZ segment labels render properly in Safari (#774)
idreyn Jul 16, 2023
e2f9c84
remove unused pages (#775)
PatrickCleary Jul 16, 2023
9b8db55
V4/remove grid (#748)
PatrickCleary Jul 16, 2023
7b832ee
V4/widget improvements (#769)
PatrickCleary Jul 16, 2023
048a77e
baseline -> Peak (#776)
PatrickCleary Jul 16, 2023
71bb933
Add v3/v4 file trick to make it OK that V3 paths don't have trailing …
mathcolo Jul 16, 2023
f2c90ae
Change landing page title to Home (#780)
mathcolo Jul 16, 2023
e42e30a
fix: Better SZ tooltip positioning (#782)
idreyn Jul 17, 2023
1cab7fa
Update CODEOWNERS for launch
devinmatte Jul 17, 2023
76c651f
Update CODEOWNERS with more details
devinmatte Jul 17, 2023
870095f
favicon (#779)
PatrickCleary Jul 17, 2023
d31d61b
Updating OSS licenses (#783)
devinmatte Jul 17, 2023
5d05a3c
Deploy v4 to prod (#784)
devinmatte Jul 17, 2023
f51f7ef
bg (#785)
PatrickCleary Jul 17, 2023
d5b7491
update: Landing page copy and viz tweaks (#786)
idreyn Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Only needed for storybook
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
63 changes: 54 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ module.exports = {
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'next/core-web-vitals',
'prettier',
'plugin:storybook/recommended',
],
globals: {
Atomics: 'readonly',
Expand All @@ -21,26 +24,68 @@ module.exports = {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
ecmaVersion: 2021,
sourceType: 'module',
},
plugins: ['react', 'react-hooks', '@typescript-eslint', 'import', 'prettier'],
plugins: ['react', 'react-hooks', '@typescript-eslint', 'import', 'unused-imports', 'prettier'],
rules: {
'prettier/prettier': 'off', // TODO: Change to Warn
'react/prop-types': 'off', // TODO: Turn on or move to TS
'react/jsx-no-target-blank': 0,
'import/named': 'warn',
'import/no-unresolved': 'warn',
'import/no-self-import': 'error',
'import/no-default-export': 'warn',
'import/order': 'error',
'import/no-unused-modules': ['warn', { unusedExports: true }],
'prettier/prettier': 'error',
'react/prop-types': 'warn',
'react/jsx-no-target-blank': 'warn',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/react-in-jsx-scope': 'off',
'no-console': 'off',
'react/react-in-jsx-scope': 'warn',
'react/no-unused-prop-types': 'warn',
'unused-imports/no-unused-imports': 'error',
'no-console': 'error',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'import/no-default-export': 'warn',
'@typescript-eslint/no-explicit-any': 'off', // TODO: Turn on when TS migration done
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
disallowTypeAnnotations: false,
},
],
'prefer-destructuring': [
'warn',
{
array: false,
object: true,
},
],
eqeqeq: ['error', 'smart'],
},
settings: {
react: {
version: 'detect',
},
},
overrides: [
{
files: ['**/*.stories.tsx', 'pages/**/*.tsx', 'middleware.ts'],
rules: {
'import/no-default-export': 'off',
'import/no-unused-modules': ['off', { unusedExports: false }],
},
},
// Temporarily don't enforce some rules on types and constants
{
files: ['common/styles/*.ts', 'common/constants/**/*.ts', 'common/types/**/*.ts'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'error',
'import/no-unused-modules': ['off', { unusedExports: false }],
},
},
],
ignorePatterns: ['node_modules/**/*', 'build/**/*', 'out/**/*'],
};
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[flake8]
ignore = E501,E731
ignore = E501,E731,W503
exclude =
.chalice
.venv
11 changes: 7 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
* @austinjpaul @mathcolo @friendchris @skaplan-dev @devinmatte @PatrickCleary
/.github/ @austinjpaul @mathcolo @friendchris @skaplan-dev @devinmatte @PatrickCleary @nathan-weinberg
.flake8 @austinjpaul @mathcolo @friendchris @skaplan-dev @devinmatte @PatrickCleary @nathan-weinberg
deploy.sh @austinjpaul @mathcolo @friendchris @skaplan-dev @devinmatte @PatrickCleary @nathan-weinberg
* @mathcolo @idreyn @skaplan-dev @devinmatte @PatrickCleary
.github @mathcolo @nathan-weinberg
.flake8 @mathcolo @nathan-weinberg
deploy.sh @mathcolo @nathan-weinberg
server @austinjpaul @idreyn
server/frontend-cfn.json @mathcolo @nathan-weinberg
server/.chalice @mathcolo @nathan-weinberg
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
ignore:
# Ignore patch version bumps
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16']
python-version: ['3.9', '3.10']
node-version: ['18', '20']
python-version: ['3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -24,11 +24,20 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Set up CI Cache
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Check if package-lock.json is up to date
run: |
npx --yes [email protected]
- name: Fully build frontend code
run: |
curl -sSL https://install.python-poetry.org | python3 -
npm ci
npm run build
npm run build-v4
17 changes: 15 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: deploy

on:
workflow_dispatch:
push:
branches:
- main
- dashboard-v4

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16']
python-version: ['3.9']
node-version: ['18']
python-version: ['3.10']
env:
AWS_PROFILE: transitmatters
AWS_DEFAULT_REGION: us-east-1
Expand All @@ -20,6 +22,8 @@ jobs:
TM_FRONTEND_CERT_ARN: ${{ secrets.TM_FRONTEND_CERT_ARN }}
TM_LABS_WILDCARD_CERT_ARN: ${{ secrets.TM_LABS_WILDCARD_CERT_ARN }}
MBTA_V2_API_KEY: ${{ secrets.MBTA_V2_API_KEY }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}

steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -31,6 +35,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Set up CI Cache
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Check if package-lock.json is up to date
run: |
npx --yes [email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16']
python-version: ['3.9']
node-version: ['18']
python-version: ['3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -37,8 +37,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16']
python-version: ['3.9', '3.10']
node-version: ['18']
python-version: ['3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
17 changes: 16 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cfn/
public/static/
Pipfile
Pipfile.lock
attribution.txt

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

Expand Down Expand Up @@ -37,6 +38,20 @@ yarn-debug.log*
yarn-error.log*

.idea
.vscode
*~
*.pyc


# next.js
/.next/
/out/

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# storybook
storybook-static
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
legacy-peer-deps=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
9 changes: 5 additions & 4 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
trailingComma: "es5",
tabWidth: 2,
singleQuote: true,
printWidth: 100,
trailingComma: 'es5',
tabWidth: 2,
singleQuote: true,
printWidth: 100,
plugins: [require('prettier-plugin-tailwindcss')],
};
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.11
18 changes: 18 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
stories: [
'../@(common|modules|pages|src)/**/*.stories.mdx',
'../@(common|modules|pages|src)/**/*.stories.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
docs: {
autodocs: true,
},
};
11 changes: 11 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import '../styles/globals.css';

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.enable": true,
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.formatOnSave": true,
"python.analysis.typeCheckingMode": "off",
"python.formatting.provider": "black"
}
Loading