Skip to content

Claude/create gtfs sqljs module 011 c up nn k ltuvz d dz xyz fy rm - #13

Merged
chtitux merged 2 commits into
mainfrom
claude/create-gtfs-sqljs-module-011CUpNnKLtuvzDDzXYZFyRm
Nov 5, 2025
Merged

chtitux merged 2 commits into
mainfrom
claude/create-gtfs-sqljs-module-011CUpNnKLtuvzDDzXYZFyRm

Conversation

@chtitux

@chtitux chtitux commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

No description provided.

- Add comprehensive GTFS-RT documentation to README with examples
- Replace all 'any' types with proper TypeScript types throughout codebase
- Add protobuf type interfaces for RT data structures
- Fix ESLint errors (unused imports)
- Update demo HTML:
  - Change default GTFS URL to Car Jaune feed
  - Add GTFS-RT URL input form
  - Add Fetch RT Data button and auto-refresh toggle button
  - Add sections for displaying active alerts and tracked vehicles
- All tests passing (77/77)
- All lint checks passing
Demo Features Added:
- GTFS URL changed to Car Jaune feed as default
- GTFS-RT URL input form with Car Jaune RT feed as default
- Fetch RT Data button (manual fetch)
- Auto-refresh toggle button (10s interval with active state styling)
- Active alerts display with route badges (colored by route)
- Tracked vehicles count display
- Realtime indicators on trips (RT badge, delay indicators)
- Realtime stop times with delays shown prominently
- Scheduled times grayed out when RT data available
- Using proxy for all GTFS and GTFS-RT requests

Technical Implementation:
- Fetch realtime data via proxy URL
- Auto-refresh with clearInterval management
- Parse TranslatedString for alert headers/descriptions
- Route badge generation with correct colors
- Time conversion helpers (timeToSeconds, secondsToTime)
- Trip and StopTime queries with includeRealtime flag
- Typed interfaces for TripWithRealtime and StopTimeWithRealtime
- Proper SqlJsStatic typing

CSS Additions:
- button-active class with pulse animation
- alert-card, route-badge, vehicle-count-display
- rt-indicator, delay-indicator with color classes
- has-realtime, rt-time, scheduled-time styling
- URL input section styling

Build successful with all TypeScript checks passing
@chtitux
chtitux merged commit 98d4e89 into main Nov 5, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants