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

kobotoolbox / kpi / 27980592878 / 3
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 22 Jun 2026 08:11PM UTC
Files 883
Run time 36s
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: 53.512% (-1.3%) from 54.798%
27980592878.3

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)

5044 of 12172 branches covered (41.44%)

19487 of 36416 relevant lines covered (53.51%)

0.54 hits per line

Source Files on job 27980592878.3
  • Tree
  • List 883
  • Changed 22
  • Source Changed 0
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 27980592878
  • f33279d4 on github
  • Prev Job for on main (#27976417537.4)
  • Next Job for on main (#28035310141.5)
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