Skip to content

Commit b0d5f89

Browse files
Fix: various adjustments (#855)
* seo decription * removed unused styling * text update to 3k feeds * sign in button adjustment * null undefined check fix * button clickability * sticky header and nav fix feeds page
1 parent 814887b commit b0d5f89

File tree

15 files changed

+411
-378
lines changed

15 files changed

+411
-378
lines changed

web-app/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"react/react-in-jsx-scope": "off",
2929
"prettier/prettier": "error",
3030
"@typescript-eslint/ban-tslint-comment": "off",
31-
"react/prop-types": "off"
31+
"react/prop-types": "off",
32+
"eqeqeq": "off"
3233
}
3334
}
3435

web-app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
3232
<meta name="viewport" content="width=device-width, initial-scale=1" />
3333
<meta name="theme-color" content="#000000" />
34-
<meta name="description" content="Mobility Database" />
34+
<meta name="description" content="Access GTFS and GTFS Realtime transit data with over 3,000 feeds from 70+ countries on the web's leading transit data platform." />
3535
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
3636
<!--
3737
manifest.json provides metadata used when your web app is installed on a

web-app/src/app/screens/About.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react';
22
import CssBaseline from '@mui/material/CssBaseline';
33
import Box from '@mui/material/Box';
44
import Container from '@mui/material/Container';
5-
import '../styles/SignUp.css';
65
import { Button, Typography } from '@mui/material';
76
import { OpenInNew } from '@mui/icons-material';
87
import { theme } from '../Theme';

web-app/src/app/screens/Contribute.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react';
22
import CssBaseline from '@mui/material/CssBaseline';
33
import Box from '@mui/material/Box';
44
import Container from '@mui/material/Container';
5-
import '../styles/SignUp.css';
65
import { Typography } from '@mui/material';
76
import { theme } from '../Theme';
87

web-app/src/app/screens/FAQ.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react';
22
import CssBaseline from '@mui/material/CssBaseline';
33
import Box from '@mui/material/Box';
44
import Container from '@mui/material/Container';
5-
import '../styles/SignUp.css';
65
import '../styles/FAQ.css';
76
import { Typography } from '@mui/material';
87
import { WEB_VALIDATOR_LINK } from '../constants/Navigation';

web-app/src/app/screens/Feed/FeedSummary.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export default function FeedSummary({
158158
sx={{ display: 'flex', overflowWrap: 'anywhere' }}
159159
data-testid='producer-url'
160160
>
161-
{feed?.source_info?.producer_url !== undefined && (
161+
{feed?.source_info?.producer_url != undefined && (
162162
<a
163163
href={feed?.source_info?.producer_url}
164164
target='_blank'
@@ -238,7 +238,7 @@ export default function FeedSummary({
238238
)}
239239

240240
{feed?.data_type === 'gtfs' &&
241-
feed?.feed_contact_email !== undefined &&
241+
feed?.feed_contact_email != undefined &&
242242
feed?.feed_contact_email.length > 0 && (
243243
<Box sx={boxElementStyle}>
244244
<Typography
@@ -248,7 +248,7 @@ export default function FeedSummary({
248248
>
249249
{t('feedContactEmail')}
250250
</Typography>
251-
{feed?.feed_contact_email !== undefined &&
251+
{feed?.feed_contact_email != undefined &&
252252
feed?.feed_contact_email.length > 0 && (
253253
<Button
254254
sx={{ textOverflow: 'ellipsis', cursor: 'initial' }}
@@ -276,7 +276,7 @@ export default function FeedSummary({
276276
</Box>
277277
)}
278278

279-
{latestDataset?.validation_report?.features !== undefined && (
279+
{latestDataset?.validation_report?.features != undefined && (
280280
<Box sx={boxElementStyle}>
281281
<Typography
282282
variant='subtitle1'

web-app/src/app/screens/Feed/PreviousDatasets.tsx

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -165,54 +165,45 @@ export default function PreviousDatasets({
165165
{(dataset.validation_report === null ||
166166
dataset.validation_report === undefined) && (
167167
<Button
168+
LinkComponent={'a'}
168169
variant='contained'
169170
sx={{ mx: 2 }}
170171
disableElevation
171172
endIcon={<LaunchOutlined />}
173+
href={WEB_VALIDATOR_LINK}
174+
target='_blank'
175+
rel='noreferrer'
172176
>
173-
<a
174-
href={WEB_VALIDATOR_LINK}
175-
target='_blank'
176-
className='btn-link'
177-
rel='noreferrer'
178-
>
179-
Run Validator Yourself
180-
</a>
177+
Run Validator Yourself
181178
</Button>
182179
)}
183180
{dataset.validation_report != null && (
184181
<>
185182
<Button
183+
LinkComponent={'a'}
186184
variant='contained'
187185
sx={{ mx: 2 }}
188186
disableElevation
189187
endIcon={<LaunchOutlined />}
188+
href={`${dataset?.validation_report?.url_html}`}
189+
target='_blank'
190+
rel='noreferrer'
191+
data-testid='validation-report-html'
190192
>
191-
<a
192-
href={`${dataset?.validation_report?.url_html}`}
193-
target='_blank'
194-
className='btn-link'
195-
rel='noreferrer'
196-
data-testid='validation-report-html'
197-
>
198-
View Report
199-
</a>
193+
View Report
200194
</Button>
201195
<Button
196+
LinkComponent={'a'}
202197
variant='contained'
203198
sx={{ mx: 2, my: { xs: 1, xl: 0 } }}
204199
endIcon={<LaunchOutlined />}
205200
disableElevation
201+
href={`${dataset?.validation_report?.url_json}`}
202+
target='_blank'
203+
rel='noreferrer'
204+
data-testid='validation-report-json'
206205
>
207-
<a
208-
href={`${dataset?.validation_report?.url_json}`}
209-
target='_blank'
210-
className='btn-link'
211-
rel='noreferrer'
212-
data-testid='validation-report-json'
213-
>
214-
JSON Version
215-
</a>
206+
JSON Version
216207
</Button>
217208
</>
218209
)}

web-app/src/app/screens/Feed/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
Skeleton,
1313
} from '@mui/material';
1414
import { ChevronLeft } from '@mui/icons-material';
15-
import '../../styles/SignUp.css';
1615
import '../../styles/FAQ.css';
1716
import { ContentBox } from '../../components/ContentBox';
1817
import { useAppDispatch } from '../../hooks';

0 commit comments

Comments
 (0)