You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: GTFS-feed import dialog on the data workflows page
The previous Manage Feeds button linked to /admin/integrations/transit-gtfs-local, where the only configurable thing in the integration manifest is a boolean enabled flag — there was nowhere to actually paste a URL. Add an inline import dialog right on the Data Workflows page (URL + optional slug + optional display name) that POSTs to /api/gtfs/feeds and reuses the existing list/refresh wiring. First step toward unifying the MOTIS and Postgres GTFS sources; follow-up will surface MOTIS-fetched feeds in the same table and let the operator promote one into Postgres without re-typing a URL.
Paste the URL of a GTFS .zip. The importer will stream the archive, parse the CSVs,
672
+
and load them into a dedicated `gtfs_<slug>` Postgres schema. Slug is
673
+
auto-derived from the URL filename if you leave it blank.
674
+
</Typography>
675
+
<TextField
676
+
label="GTFS zip URL"
677
+
placeholder="https://example.com/feed.gtfs.zip"
678
+
fullWidth
679
+
size="small"
680
+
value={importUrl}
681
+
onChange={(e)=>setImportUrl(e.target.value)}
682
+
autoFocus
683
+
/>
684
+
<TextField
685
+
label="Slug (optional)"
686
+
placeholder="vbb"
687
+
helperText="Used as the Postgres schema name (gtfs_<slug>) and the gtfs-local provider prefix (g-<slug>:). Lowercase letters, digits, hyphens, underscores."
0 commit comments