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

rm-hull / maps / 22325277816
24%

Build:
DEFAULT BRANCH: main
Ran 23 Feb 2026 09:21PM UTC
Jobs 1
Files 87
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

23 Feb 2026 09:19PM UTC coverage: 38.061% (-1.1%) from 39.145%
22325277816

push

github

web-flow
feat: add street-level crime map layer (#1048)

* feat: add street-level crime map layer

Introduces a new overlay layer that fetches and displays street-level
crime data from the UK Police API (`data.police.uk`).

-   Markers are grouped by street and colored based on the highest
    severity incident at that location.
-   Includes a legend and detailed popups featuring incident tables
    showing category, outcome, and context.
-   Uses `useQuery` for efficient caching of API responses based on
    map bounding boxes.

```mermaid
sequenceDiagram
    participant M as StreetLevelCrimeLayer
    participant H as useStreetLevelCrimes
    participant S as fetchStreetLevelCrimes
    participant A as Police API

    M->>H: bounds
    H->>S: bounds, category
    S->>A: GET /crimes-street (poly=...)
    A-->>S: JSON StreetLevelCrime[]
    S-->>H: data
    H-->>M: incidents
    M->>M: group by street & render markers
```

* feat: add month selection to crime map layer

Introduces a month selector in the map legend to filter crime data
by date. This change updates the data fetching hook and API service
to handle the `date` parameter.

Additionally, the crime incident popups now use specialized **Table**
and **List** views depending on the incident count to improve
information density and readability.

```mermaid
sequenceDiagram
    participant U as User
    participant L as Legend (Select)
    participant S as StreetLevelCrimeLayer
    participant H as useStreetLevelCrimes
    participant A as API Service

    U->>L: Select Month
    L->>S: onMonthChange(month)
    S->>H: Update query with new month
    H->>A: fetchStreetLevelCrimes(month, bounds)
    A-->>H: Return crime data
    H-->>S: Update data
    S-->>U: Render updated markers
```

* Update src/config/layer.tsx

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* perf: optimize map bounds caching and UI cleanup

* Stabilize query keys by rounding map c... (continued)

462 of 1146 branches covered (40.31%)

Branch coverage included in aggregate %.

0 of 40 new or added lines in 3 files covered. (0.0%)

445 of 1237 relevant lines covered (35.97%)

4.17 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
0.0
src/hooks/useStreetLevelCrimes.ts
6
0.0
src/services/streetLevelCrimes/index.ts
30
0.0
src/components/map/layers/custom/StreetLevelCrimeLayer.tsx
Jobs
ID Job ID Ran Files Coverage
1 22325277816.1 23 Feb 2026 09:21PM UTC 87
38.06
GitHub Action Run
Source Files on build 22325277816
  • Tree
  • List 87
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22325277816
  • 54eb3c7c on github
  • Prev Build on main (#22325069566)
  • Next Build on main (#22326456845)
  • 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