Skip to content

v0.5.0

Latest

Choose a tag to compare

@ghcpuman902 ghcpuman902 released this 15 Aug 21:59
· 7 commits to main since this release

Components release

Installable registry source under registry/tfl/. This is not a docs-site tag — see web-v0.6.0 for the web app.

Requires tfl-ts ^2.9.0 (the registry now pins it). Bare tfl-ts resolved 2.6.2 and failed typecheck.

Summary

Cycle Hire, a MapLibre geographic map, colour tokens, and arrivals that follow how TfL shares platforms and track. A consumer install from the registry now typechecks and includes every helper the boards import.

What's new

  • Cycle Hire Docks — map + detail surfaces over normalised dock data
  • tfl-geographic-map — MapLibre default. Pass data, or serve unique-track GeoJSON at /data/geography/{mode}-geometry.json (not inlined in the registry JSON; copy from this repo’s public/data/geography/)
  • tfl-colours tokens
  • platform-chip and bus-number-chip
  • Bus stop disruptions on the bus arrivals board
  • Shared-platform grouping, Circle / H&C / Metropolitan shared-track identity, destination text that keeps currentLocation when TfL sends a placeholder, bound-group compass order, and pagination so every serving line stays on the board

Install

pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/tube-status-board.json
pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/rail-arrivals-board.json
pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/bus-arrivals-board.json
pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/cycle-hire-docks.json
pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/line-strip.json
pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/tfl-roundel.json
pnpm dlx shadcn@latest add https://tfl.manglekuo.com/r/tfl-geographic-map.json

Fixes in this tag

  • Registry payloads include lib/tfl/arrivals-destination-text.ts
  • Bus disruption prep renamed to prepare-bus-stop-disruptions.ts so the shadcn CLI does not collide it with the component of the same basename
  • tfl-geographic-map declares @types/geojson
  • Arrivals pager clamps the page index without an impure setState updater

Google Maps and Mapbox adapters are optional and not part of the default geographic-map install.