Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
1a961a3
feat: add feed location directory
Alessandro100 Nov 2, 2026
0d9253a
fix: do not cache missing locations in the directory
Alessandro100 Nov 2, 2026
d90beff
feat: align location pages with the feed detail page style
Alessandro100 Nov 2, 2026
4374d1d
feat: use country names in location URLs and refine directory cards
Alessandro100 Nov 3, 2026
aa7ef32
feat: add loading states and bold counts to location directory cards
Alessandro100 Nov 3, 2026
194f056
feat: list location directory feeds through the search endpoint
Alessandro100 Nov 3, 2026
d707a35
feat: browse locations from the geopolygon hierarchy
Alessandro100 Nov 4, 2026
fe94bc2
chore: regenerate API types for realtime feed locations
Alessandro100 Nov 5, 2026
c52c870
ci: bump cypress-io/github-action to v7
Alessandro100 Nov 5, 2026
5e00f83
chore: regenerate API types for the locations path description
Alessandro100 Nov 5, 2026
d5cc048
feat: build directory pages from the location lookup endpoint
Alessandro100 Nov 6, 2026
096a436
fix: redirect mixed-case location URLs to their lowercase path
Alessandro100 Nov 9, 2026
9ad8e0a
fix: localize directory links and canonical URLs, refresh empty feed …
Alessandro100 Nov 9, 2026
54255f9
fix: never cache out-of-range feed pages of locations without feeds
Alessandro100 Nov 9, 2026
4daa4ed
fix: name the location search box after the level it filters
Alessandro100 Nov 11, 2026
d04d0ce
fix: polish the location directory copy
Alessandro100 Nov 16, 2026
014d306
feat: navigate the location directory with id-based URLs
Alessandro100 Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/preview-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
VERCEL_PROJECT_ID: ${{ env.VERCEL_PROJECT_ID }}

- name: Cypress test
uses: cypress-io/github-action@v6
uses: cypress-io/github-action@v7
with:
start: yarn e2e:setup
command: yarn e2e:run
Expand Down
280 changes: 269 additions & 11 deletions external_types/DatabaseCatalogAPI.yaml

Large diffs are not rendered by default.

46 changes: 44 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@
"metricsAdminOnly": "Metrics - Admin Only",
"languageSelect": "Language select",
"transitFeedsRedirectTitle": "You've been redirected from TransitFeeds",
"transitFeedsRedirectBody": "This page now lives on MobilityDatabase.org, where you'll find the most up-to-date transit data."
"transitFeedsRedirectBody": "This page now lives on MobilityDatabase.org, where you'll find the most up-to-date transit data.",
"locations": "Locations",
"feedsMenu": "Feeds menu"
},
"emailVerification": {
"loadingTitle": "Verifying your email",
Expand Down Expand Up @@ -1254,13 +1256,53 @@
"contactUs": "Contact Us",
"shareFeedback": "Share Feedback",
"privacyPolicy": "Privacy Policy",
"termsAndConditions": "Terms and Conditions"
"termsAndConditions": "Terms and Conditions",
"locations": "Locations"
},
"aria": {
"github": "GitHub",
"slack": "Slack",
"linkedin": "LinkedIn",
"logo": "Mobility Database logo"
}
},
"locations": {
"root": "Locations",
"title": "Feeds by Location",
"rootIntro": "Browse open GTFS Schedule, GTFS Realtime and GBFS feeds by location, from continents down to specific places.",
"nodeIntro": "{total, plural, =0 {No feeds are} one {# feed is} other {# feeds are}} located in {place}.",
"feedCountsAria": "Feed counts by data type",
"shortLabels": {
"gtfs": "GTFS",
"gtfs_rt": "GTFS-RT",
"gbfs": "GBFS"
},
"childrenHeading": {
"continents": "Continents",
"countries": "Countries",
"places": "Places"
},
"childFeedTotal": "{count, plural, one {<b>#</b> feed} other {<b>#</b> feeds}}",
"childrenSearchPlaceholder": {
"continents": "Search continents",
"countries": "Search countries",
"places": "Search places"
},
"childrenSearchAria": "Filter the locations below by name",
"childLoadingAria": "Loading {name}",
"childrenSearchResults": "{count, plural, =0 {No matching locations} one {# matching location} other {# matching locations}}",
"childrenSearchEmpty": "No location matches “{query}”.",
"feedsHeading": "Feeds in {place}",
"allFeedsHeading": "All feeds",
"resultsRange": "Showing {start}–{end} of {total} feeds",
"noFeeds": "No feeds are listed for this location yet.",
"paginationAria": "Feed list pages",
"meta": {
"rootTitle": "Transit Feeds by Location | Mobility Database",
"rootDescription": "Browse open GTFS Schedule, GTFS Realtime and GBFS transit and mobility feeds by location, from continents down to specific places.",
"nodeTitle": "{place} Transit Feeds | Mobility Database",
"nodeTitlePaged": "{place} Transit Feeds, Page {page} | Mobility Database",
"nodeDescription": "Browse {total} open transit and mobility feeds located in {place}: {gtfs} GTFS Schedule, {gtfs_rt} GTFS Realtime and {gbfs} GBFS."
}
}
}
46 changes: 44 additions & 2 deletions messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@
"metricsAdminOnly": "Métriques - Admin uniquement",
"languageSelect": "Sélection de la langue",
"transitFeedsRedirectTitle": "Vous avez été redirigé depuis TransitFeeds",
"transitFeedsRedirectBody": "Cette page se trouve désormais sur MobilityDatabase.org, où vous trouverez les données de transit les plus récentes."
"transitFeedsRedirectBody": "Cette page se trouve désormais sur MobilityDatabase.org, où vous trouverez les données de transit les plus récentes.",
"locations": "Lieux",
"feedsMenu": "Menu des flux"
},
"emailVerification": {
"loadingTitle": "Vérification de votre e-mail",
Expand Down Expand Up @@ -1254,13 +1256,53 @@
"contactUs": "Contactez-nous",
"shareFeedback": "Donner un avis",
"privacyPolicy": "Politique de confidentialité",
"termsAndConditions": "Conditions d'utilisation"
"termsAndConditions": "Conditions d'utilisation",
"locations": "Lieux"
},
"aria": {
"github": "GitHub",
"slack": "Slack",
"linkedin": "LinkedIn",
"logo": "Logo Mobility Database"
}
},
"locations": {
"root": "Lieux",
"title": "Flux par lieu",
"rootIntro": "Parcourez les flux ouverts GTFS Schedule, GTFS Realtime et GBFS par lieu, des continents jusqu’aux villes.",
Comment thread
Alessandro100 marked this conversation as resolved.
Resolved
"nodeIntro": "{total, plural, =0 {Aucun flux n’est situé} one {# flux est situé} other {# flux sont situés}} dans : {place}.",
"feedCountsAria": "Nombre de flux par type de données",
"shortLabels": {
"gtfs": "GTFS",
"gtfs_rt": "GTFS-RT",
"gbfs": "GBFS"
},
"childrenHeading": {
"continents": "Continents",
"countries": "Pays",
"places": "Lieux"
},
"childFeedTotal": "{count, plural, one {<b>#</b> flux} other {<b>#</b> flux}}",
"childrenSearchPlaceholder": {
"continents": "Rechercher un continent",
"countries": "Rechercher un pays",
"places": "Rechercher un lieu"
},
"childrenSearchAria": "Filtrer les lieux ci-dessous par nom",
"childLoadingAria": "Chargement de {name}",
"childrenSearchResults": "{count, plural, =0 {Aucun lieu correspondant} one {# lieu correspondant} other {# lieux correspondants}}",
"childrenSearchEmpty": "Aucun lieu ne correspond à « {query} ».",
"feedsHeading": "Flux dans : {place}",
"allFeedsHeading": "Tous les flux",
"resultsRange": "{start}–{end} sur {total} flux",
"noFeeds": "Aucun flux n’est encore répertorié pour ce lieu.",
"paginationAria": "Pages de la liste des flux",
"meta": {
"rootTitle": "Flux de transport par lieu | Mobility Database",
"rootDescription": "Parcourez les flux ouverts de transport et de mobilité GTFS Schedule, GTFS Realtime et GBFS par lieu, des continents jusqu’aux villes.",
"nodeTitle": "Flux de transport : {place} | Mobility Database",
"nodeTitlePaged": "Flux de transport : {place}, page {page} | Mobility Database",
"nodeDescription": "Parcourez {total} flux ouverts de transport et de mobilité situés dans : {place}. {gtfs} GTFS Schedule, {gtfs_rt} GTFS Realtime et {gbfs} GBFS."
}
}
}
99 changes: 99 additions & 0 deletions src/app/[locale]/locations/[[...location]]/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import { type ReactElement } from 'react';
import { Box, Container, Skeleton } from '@mui/material';
import SectionContainer from '../../../components/SectionContainer';

const CARD_COUNT = 8;
const ROW_COUNT = 8;

/**
* Shown while a location page streams in, e.g. after clicking a child
* location; same layout as page.tsx so nothing jumps when it resolves.
* ref: https://nextjs.org/docs/app/api-reference/file-conventions/loading
*/
export default function Loading(): ReactElement {
return (
<Container
component='main'
maxWidth='xl'
aria-busy='true'
sx={{ width: '100%', m: 'auto', px: 0 }}
>
<SectionContainer maxWidth='xl'>
{/* Back button and breadcrumb */}
<Skeleton
animation='wave'
variant='text'
sx={{ fontSize: '1rem', width: 240 }}
/>
{/* Title and intro */}
<Skeleton
animation='wave'
variant='text'
sx={{ fontSize: '3rem', width: { xs: '80%', sm: 360 }, mt: 1 }}
/>
<Skeleton
animation='wave'
variant='text'
sx={{ fontSize: '1.2rem', width: { xs: '100%', sm: 560 }, mb: 3 }}
/>
{/* Feed count chips */}
<Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 1 }}>
{[150, 140, 100].map((width) => (
<Skeleton
key={width}
animation='wave'
variant='rounded'
width={width}
height={32}
sx={{ borderRadius: 4 }}
/>
))}
</Box>

{/* Child locations */}
<Skeleton
animation='wave'
variant='text'
sx={{ fontSize: '1.5rem', width: 200, mt: { xs: 4, md: 5 }, mb: 2 }}
/>
<Box
sx={{
display: 'grid',
gridTemplateColumns: {
xs: 'minmax(0, 1fr)',
sm: 'repeat(2, minmax(0, 1fr))',
md: 'repeat(3, minmax(0, 1fr))',
lg: 'repeat(4, minmax(0, 1fr))',
},
gap: 2,
}}
>
{Array.from({ length: CARD_COUNT }, (_, index) => (
<Skeleton
key={index}
animation='wave'
variant='rounded'
height={84}
/>
))}
</Box>

{/* Feeds table */}
<Skeleton
animation='wave'
variant='text'
sx={{ fontSize: '1.5rem', width: 260, mt: { xs: 4, md: 5 }, mb: 2 }}
/>
{Array.from({ length: ROW_COUNT }, (_, index) => (
<Skeleton
key={index}
animation='wave'
variant='rectangular'
height={48}
sx={{ mb: 0.5 }}
/>
))}
</SectionContainer>
</Container>
);
}
Loading
Loading