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

kobotoolbox / kpi / 27607895937
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-deps-2b1d353b35
DEFAULT BRANCH: master
Ran 16 Jun 2026 09:31AM UTC
Jobs 10
Files 883
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

16 Jun 2026 09:27AM UTC coverage: 81.585% (-0.009%) from 81.594%
27607895937

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)

9034 of 12268 branches covered (73.64%)

29662 of 36357 relevant lines covered (81.59%)

5.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27607895937.1 16 Jun 2026 09:31AM UTC 879
50.17
2 27607895937.2 16 Jun 2026 09:31AM UTC 879
44.89
3 27607895937.3 16 Jun 2026 09:32AM UTC 879
53.54
4 27607895937.4 16 Jun 2026 09:32AM UTC 881
46.29
5 27607895937.5 16 Jun 2026 09:34AM UTC 881
54.84
6 27607895937.6 16 Jun 2026 09:34AM UTC 881
66.51
7 27607895937.7 16 Jun 2026 09:34AM UTC 881
51.54
8 27607895937.8 16 Jun 2026 09:34AM UTC 879
59.45
9 27607895937.9 16 Jun 2026 09:35AM UTC 883
68.86
10 27607895937.10 16 Jun 2026 09:35AM UTC 881
60.63
Source Files on build 27607895937
  • Tree
  • List 883
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5ec3b1a0 on github
  • Prev Build on main (#27607839577)
  • Next Build on main (#27608641316)
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