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

kobotoolbox / kpi / 22174642912
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: fix-and-consolidate-submission-version-matching
DEFAULT BRANCH: master
Ran 19 Feb 2026 09:18AM UTC
Jobs 2
Files 881
Run time 2min
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

19 Feb 2026 08:43AM UTC coverage: 82.024% (-0.003%) from 82.027%
22174642912

push

github

web-flow
refactor(reports): change into functional component DEV-1335 (#6721)

### πŸ’­ Notes

Changed component to functional to make it easier to use react-query.

Notable changes:
- `componentDidMount` is now `useEffect` with `[]`
- `componentDidUpdate` is now `useEffect` with
`[state.currentCustomReport, state.groupBy]` and is relying on build in
comparison checks rather than lodash's `isEqual`
- The "reset default report groupBy if it fails" flow that was using
`setState`'s callback is now operating on `useEffect`. I'm not entirely
sure how to test this functionality and what it does…

Reports component is doing some weird "magic" on the API response to
override report styles data - this is confusing and a sign reports code
is old and in need of reworking.

### πŸ‘€ Preview steps

1. ℹ️ Have an account and a project (e.g. Pizza from
[kobo-fixture](https://github.com/kobotoolbox/kobo-fixture)) with
submissions
2. Go to Project β†’ Data β†’ Reports
3. 🟒 Notice that reports still loads correctly (i.e. no UI crash, not
missing data)
4. 🟒 Make sure the following still works:
1. "Create New Report" flow (blue "+" button near the top of the
section)
   2. "Configure Report Style" flow (navy cog button)
   3. "Toggle fullscreen" functionality (top right corner - icon button)
   4. "Override graph style" flow ("…" button in top right of a report)

---------

Co-authored-by: Paulo Amorim <pauloamorimbr@gmail.com>
Co-authored-by: Akuukis <Akuukis@users.noreply.github.com>

7440 of 11473 branches covered (64.85%)

28541 of 34796 relevant lines covered (82.02%)

1.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22174642912.1 19 Feb 2026 09:18AM UTC 879
79.7
2 22174642912.2 19 Feb 2026 09:22AM UTC 881
81.98
Source Files on build 22174642912
  • Tree
  • List 881
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage βˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 88f73391 on github
  • Prev Build on main (#22174342465)
  • Next Build on main (#22175029632)
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