• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / maps / 25610852088
25%

Build:
DEFAULT BRANCH: main
Ran 09 May 2026 08:20PM UTC
Jobs 1
Files 98
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 May 2026 08:18PM UTC coverage: 25.167% (-0.05%) from 25.219%
25610852088

push

github

web-flow
fix: fudged #1180 pull request (#1202)

* feat: add Next Departures map layer

This commit introduces a new map layer that displays public transport
stops (bus and train) based on the current map viewport.

-   Adds `NextDeparturesLayer` to visualize transport stops using NaPTAN
    data.
-   Implements a custom `useNaPTAN` hook with `react-query` for
efficient
    data fetching and caching.
-   Introduces a dynamic `busStopWithBearing` icon that renders an
    SVG-based arrow indicating the direction of the stop.
-   Provides stop details including name, locality, and bearing within
    map popups.
-   Includes unit tests for icon rotation logic.

```mermaid
sequenceDiagram
    participant M as Map (Leaflet)
    participant L as NextDeparturesLayer
    participant H as useNaPTAN Hook
    participant S as Next Departures Service
    participant A as API

    M->>L: Provides Bounds
    L->>H: Request data for bounds
    H->>S: fetchNaPTAN(bounds)
    S->>A: GET /v1/next-departures/search?bbox=...
    A-->>S: JSON NaPTAN Results
    S-->>H: SearchResponse
    H-->>L: results[]
    L->>M: Render Markers with custom Icons
```

* refactor: move bearing logic to BearingIndicator

This change migrates the bus stop bearing display from a dynamic
`DivIcon` string generator to a reusable React component.

- Created `BearingIndicator` component using `react-leaflet` **Tooltip**
  to render direction arrows.
- Simplified `NextDeparturesLayer` by using the standard `busStop` icon
  wrapped in the new indicator.
- Added CSS to remove default **Tooltip** borders, backgrounds, and
  pointers for a clean SVG-only look.
- Updated unit tests to cover the new component and removed obsolete
  icon generation tests.

* refactor: rename BearingIndicator bearing prop

Renames the `bearing` prop to `direction` to improve clarity and
consistency across the codebase. Removes `bearingAngles` from the
icon suite tests to reflect changes in the exported API.

* fix: pass precision... (continued)

178 of 725 branches covered (24.55%)

Branch coverage included in aggregate %.

2 of 10 new or added lines in 3 files covered. (20.0%)

312 of 1222 relevant lines covered (25.53%)

2.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
0.0
0.0% src/components/map/layers/custom/NextDeparturesLayer.tsx
1
0.0
src/services/nextDepartures/types.ts
Jobs
ID Job ID Ran Files Coverage
1 25610852088.1 09 May 2026 08:20PM UTC 98
25.17
GitHub Action Run
Source Files on build 25610852088
  • Tree
  • List 98
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25610852088
  • 0fccf953 on github
  • Prev Build on main (#25609675429)
  • Next Build on main (#25611134998)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc