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

kobotoolbox / kpi / 22174642912 / 1
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-2067-move-environment-to-v2
DEFAULT BRANCH: master
Ran 19 Feb 2026 09:18AM UTC
Files 879
Run time 19s
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: 79.7%. Remained the same
22174642912.1

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>

7247 of 11532 branches covered (62.84%)

27727 of 34789 relevant lines covered (79.7%)

0.8 hits per line

Source Files on job 22174642912.1
  • Tree
  • List 879
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage βˆ† File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22174642912
  • 88f73391 on github
  • Prev Job for on main (#22174342465.1)
  • Next Job for on main (#22175029632.1)
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