From 39065afa0459ee6b46acda3e2a3d28af96f6dff3 Mon Sep 17 00:00:00 2001 From: Preston Mueller Date: Wed, 21 Jun 2023 21:17:56 +0000 Subject: [PATCH] Sentence case everything --- common/constants/dates.ts | 8 ++++---- common/constants/pages.ts | 10 +++++----- modules/dashboard/Today.tsx | 2 +- modules/landing/LineSelectionLanding.tsx | 2 +- modules/navigation/DesktopSideNavBar.tsx | 6 +++--- modules/ridership/RidershipDetails.tsx | 2 +- modules/ridership/RidershipGraph.tsx | 2 +- modules/ridership/RidershipWidget.tsx | 2 +- modules/service/ServiceGraph.tsx | 2 +- modules/slowzones/SlowZonesDetails.tsx | 2 +- modules/slowzones/SlowZonesWidget.tsx | 2 +- modules/slowzones/SystemSlowZonesDetails.tsx | 2 +- modules/speed/SpeedGraph.tsx | 2 +- modules/traveltimes/TravelTimesDetails.tsx | 8 ++++---- modules/tripexplorer/BusTripGraphs.tsx | 6 +++--- modules/tripexplorer/SubwayTripGraphs.tsx | 8 ++++---- 16 files changed, 33 insertions(+), 33 deletions(-) diff --git a/common/constants/dates.ts b/common/constants/dates.ts index c8e68ccbb..86b3e27ca 100644 --- a/common/constants/dates.ts +++ b/common/constants/dates.ts @@ -209,10 +209,10 @@ export const OVERVIEW_OPTIONS: { export type OverviewDatePresetKey = keyof typeof OverviewRangeTypes; export enum OverviewRangeTypes { - 'week' = 'Past Week', - 'month' = 'Past Month', - 'year' = 'Past Year', - 'all' = 'All Time', + 'week' = 'Past week', + 'month' = 'Past month', + 'year' = 'Past year', + 'all' = 'All time', } export const RANGE_DATE_KEYS = Object.fromEntries( diff --git a/common/constants/pages.ts b/common/constants/pages.ts index c21fa7eb6..2b61b8280 100644 --- a/common/constants/pages.ts +++ b/common/constants/pages.ts @@ -83,8 +83,8 @@ export const ALL_PAGES: PageMap = { multiTrips: { key: 'multiTrips', path: '/trips/multi', - name: 'Multi Day Trips', - title: 'Multi Day Trips', + name: 'Multi-day trips', + title: 'Multi-day trips', lines: ['line-red', 'line-blue', 'line-green', 'line-orange', 'line-bus'], icon: faCalendar, dateStoreSection: 'multiTrips', @@ -93,7 +93,7 @@ export const ALL_PAGES: PageMap = { overview: { key: 'overview', path: '/', - name: 'Line Overview', + name: 'Line overview', lines: ['line-red', 'line-blue', 'line-green', 'line-orange'], dateStoreSection: 'overview', icon: faTableColumns, @@ -121,7 +121,7 @@ export const ALL_PAGES: PageMap = { slowzones: { key: 'slowzones', path: '/slowzones', - name: 'Slow Zones', + name: 'Slow zones', lines: ['line-red', 'line-blue', 'line-orange'], icon: faWarning, dateStoreSection: 'line', @@ -131,7 +131,7 @@ export const ALL_PAGES: PageMap = { systemSlowzones: { key: 'systemSlowzones', path: '/slowzones', - name: 'Slow Zones', + name: 'Slow zones', lines: [], icon: faWarning, dateStoreSection: 'system', diff --git a/modules/dashboard/Today.tsx b/modules/dashboard/Today.tsx index 20a5334e2..e04efd674 100644 --- a/modules/dashboard/Today.tsx +++ b/modules/dashboard/Today.tsx @@ -25,7 +25,7 @@ export const Today: React.FC = ({ lineShort }) => { {canShowSlowZonesMap && allSlow.data && speedRestrictions.data && ( - + { return (

Ready to learn more?

-

Select a Line or Bus to get more details.

+

Select a subway line or bus route to get started.

diff --git a/modules/navigation/DesktopSideNavBar.tsx b/modules/navigation/DesktopSideNavBar.tsx index 362f64397..9bab324ed 100644 --- a/modules/navigation/DesktopSideNavBar.tsx +++ b/modules/navigation/DesktopSideNavBar.tsx @@ -26,7 +26,7 @@ export const SideNavBar = () => { About - Join Us + Join us { href="https://github.com/transitmatters/t-performance-dash" className="text-white hover:text-blue-500" > - Source Code + Source code {' '} /{' '} - Attributions + attributions

diff --git a/modules/ridership/RidershipDetails.tsx b/modules/ridership/RidershipDetails.tsx index d61aeb1b6..735ff769b 100644 --- a/modules/ridership/RidershipDetails.tsx +++ b/modules/ridership/RidershipDetails.tsx @@ -33,7 +33,7 @@ export function RidershipDetails() { return ( - + {ridership.data && ridershipDataReady ? ( = ({ }, title: { display: true, - text: 'trips', + text: 'Trips', color: COLORS.design.subtitleGrey, }, }, diff --git a/modules/ridership/RidershipWidget.tsx b/modules/ridership/RidershipWidget.tsx index 2bf2983ec..66e2bc322 100644 --- a/modules/ridership/RidershipWidget.tsx +++ b/modules/ridership/RidershipWidget.tsx @@ -27,7 +27,7 @@ export const RidershipWidget: React.FC = () => { return ( - + {ridership.data && serviceReady ? ( = ({ }, title: { display: true, - text: 'trips', + text: 'Trips', color: COLORS.design.subtitleGrey, }, }, diff --git a/modules/slowzones/SlowZonesDetails.tsx b/modules/slowzones/SlowZonesDetails.tsx index a7e7b725d..56b2aece7 100644 --- a/modules/slowzones/SlowZonesDetails.tsx +++ b/modules/slowzones/SlowZonesDetails.tsx @@ -51,7 +51,7 @@ export function SlowZonesDetails() { } return ( - +
diff --git a/modules/slowzones/SlowZonesWidget.tsx b/modules/slowzones/SlowZonesWidget.tsx index ea77a0877..7e3f8841f 100644 --- a/modules/slowzones/SlowZonesWidget.tsx +++ b/modules/slowzones/SlowZonesWidget.tsx @@ -27,7 +27,7 @@ export const SlowZonesWidget: React.FC = () => { return ( <> - + {totalSlowTimeReady ? ( +
diff --git a/modules/speed/SpeedGraph.tsx b/modules/speed/SpeedGraph.tsx index 8aa76b6e1..c0744dedc 100644 --- a/modules/speed/SpeedGraph.tsx +++ b/modules/speed/SpeedGraph.tsx @@ -103,7 +103,7 @@ export const SpeedGraph: React.FC = ({ }, title: { display: true, - text: 'mph', + text: 'Miles per hour (mph)', color: COLORS.design.subtitleGrey, }, }, diff --git a/modules/traveltimes/TravelTimesDetails.tsx b/modules/traveltimes/TravelTimesDetails.tsx index c7193d3ae..bf25768c1 100644 --- a/modules/traveltimes/TravelTimesDetails.tsx +++ b/modules/traveltimes/TravelTimesDetails.tsx @@ -55,9 +55,9 @@ export function TravelTimesDetails() { const [peakTime, setPeakTime] = React.useState<'weekday' | 'weekend'>('weekday'); return ( - + - + {aggregate ? ( {aggregate && ( - + = ({ {aggregate ? ( <> - + = ({ ) : ( <> - + = ({ diff --git a/modules/tripexplorer/SubwayTripGraphs.tsx b/modules/tripexplorer/SubwayTripGraphs.tsx index 825e4346d..b388f62f8 100644 --- a/modules/tripexplorer/SubwayTripGraphs.tsx +++ b/modules/tripexplorer/SubwayTripGraphs.tsx @@ -48,7 +48,7 @@ export const SubwayTripGraphs: React.FC = ({ {aggregate ? ( <> - + = ({ /> - + = ({ pressFunction={setPeakTime} options={[ ['weekday', 'Weekday'], - ['weekend', 'Weekend/Holiday'], + ['weekend', 'Weekend/holiday'], ]} additionalDivClass="md:w-auto" additionalButtonClass="md:w-fit" @@ -108,7 +108,7 @@ export const SubwayTripGraphs: React.FC = ({ ) : ( <> - +