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

kobotoolbox / kpi / 27607895937 / 3
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: sso-provisioning
DEFAULT BRANCH: master
Ran 16 Jun 2026 09:32AM UTC
Files 879
Run time 30s
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

16 Jun 2026 09:27AM UTC coverage: 53.545%. Remained the same
27607895937.3

push

github

web-flow
fix(reports): general color override doesn't work for single report with custom type DEV-2223 (#7118)

### đŸ“Ŗ Summary

Fixed report color behavior so chart colors update consistently across
chart types and still inherit global color changes after per-question
chart-type overrides.

### 💭 Notes

This PR resolves a reports styling issue where color updates could
behave inconsistently, especially after setting a single-question graph
type. It also refactors report rendering prep into utility helpers and
adds focused tests so this behavior is easier to maintain and less
likely to regress.

Changes here:
- Refactor row preparation and keep render focused on orchestration
- Add style inheritance and select-label helper utilities
- Fix chart-type-specific dataset color behavior and export props for
testability
- Remove unused report listeners
- Add reusable report test factories
- Add utility tests for style inheritance and label mapping
- Add chart rendering tests for color behavior by chart family

Key implementation details:
- Question-level style overrides are treated as partial and merged over
base/global style, so changing global colors still propagates unless
explicitly overridden.
- Dataset color assignment now respects chart-family needs:
  - line and area use single-color line/point styling
  - pie, donut, and polar use full palettes
  - radar keeps point palette behavior
- Render-time logic in reports is split into utility functions with
comments for maintainability and easier unit coverage.

Tiny AI joy for reviewers:
- We untangled the style spaghetti without losing the sauce.

### 👀 Preview steps

1. â„šī¸ Have an account with permission to edit a deployed project that
has response data.
2. Go to Project → Data → Reports.
3. Open report settings and change global chart colors.
4. Open question settings for one question and change only its chart
type, then save.
5. 🔴 [on main] Observe that this question may stop reflecting later
global color changes... (continued)

5041 of 12137 branches covered (41.53%)

19419 of 36267 relevant lines covered (53.54%)

0.54 hits per line

Source Files on job 27607895937.3
  • 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 27607895937
  • 5ec3b1a0 on github
  • Prev Job for on main (#27607839577.2)
  • Next Job for on main (#27608641316.2)
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