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

kobotoolbox / kpi / 27980592878
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2349-blacklist-lookups
DEFAULT BRANCH: master
Ran 22 Jun 2026 08:11PM UTC
Jobs 10
Files 887
Run time 3min
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

22 Jun 2026 08:06PM UTC coverage: 81.606%. Remained the same
27980592878

push

github

web-flow
fix(map): include start-geopoint in Project → Data → Map UI DEV-2240 (#7136)

### 📣 Summary

Map now shows submissions that only have `start-geopoint` data. Before
this, the map stayed empty if your project collected locations via
`start-geopoint` but didn't have any geopoint questions.

### 💭 Notes

Changes here:

**`constants.ts`**
- Added `MAP_DISPLAYABLE_GEOPOINT_TYPES` array that includes both
`'geopoint'` and `'start-geopoint'` question types
- Added `isMapDisplayableGeopointType()` type guard function to check if
a question type can be shown on the map
- This gives us a single place to define which question types the map
should recognize (easier to maintain if we add more geo types later,
like `'background-geopoint'`)

**`utils.ts`**
- Updated `findFirstGeopoint()` to use the new type guard instead of
only checking for `'geopoint'`
- Now finds either regular geopoint questions or start-geopoint

**`components/map/index.tsx`** (the main map component)
- Constructor now uses `isMapDisplayableGeopointType()` to check if the
project has any map-compatible questions
- This fixes the "no geopoint responses" message showing up when
start-geopoint data actually exists

**components/map/FormMapWrapper.stories.tsx:**
- New Storybook stories with play tests that verify:
  - Map renders for forms with only start-geopoint
  - Map Settings shows both geopoint and start-geopoint when both exist

**.storybook/preview-head.html**
- Mock `window.t()` before modules load (fixes "t is not defined" errors
when components use t() at module scope), as `preview.tsx` `t()`
definition wasn't working

**`components/map/MapSettings.tsx`** (the map settings dialog)
- Updated to include start-geopoint questions in the question selector
dropdown
- Without this, users couldn't manually switch to start-geopoint even if
it had data

**storybookUtils.tsx**
- New `withMinHeightWrapper()` decorator for stories that need vertical
space (maps, menus, modals)
- Updated `Menu.stories.... (continued)

9064 of 12305 branches covered (73.66%)

29791 of 36506 relevant lines covered (81.61%)

5.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27980592878.1 22 Jun 2026 08:11PM UTC 883
44.9
2 27980592878.2 22 Jun 2026 08:11PM UTC 883
50.15
3 27980592878.3 22 Jun 2026 08:11PM UTC 883
53.51
4 27980592878.4 22 Jun 2026 08:12PM UTC 885
46.29
5 27980592878.5 22 Jun 2026 08:12PM UTC 885
51.52
6 27980592878.6 22 Jun 2026 08:13PM UTC 885
54.8
7 27980592878.7 22 Jun 2026 08:13PM UTC 883
59.55
8 27980592878.8 22 Jun 2026 08:14PM UTC 887
68.93
9 27980592878.9 22 Jun 2026 08:14PM UTC 885
66.59
10 27980592878.10 22 Jun 2026 08:16PM UTC 885
60.73
Source Files on build 27980592878
  • Tree
  • List 887
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f33279d4 on github
  • Prev Build on main (#27976417537)
  • Next Build on main (#28035310141)
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