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

Kikobeats / colorable-dominant / 40737638491
99%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2026 05:38PM UTC
Jobs 1
Files 4
Run time 1min
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

28 Oct 2026 05:38PM UTC coverage: 99.444% (-0.3%) from 99.72%
40737638491

push

github

web-flow
fix(dominance): honor palette order regardless of hex case (#26)

* fix(dominance): honor palette order regardless of hex case

getMostDominantPrimaryColor looked up each candidate's dominance with
colors.indexOf(dominantColor). The candidate keys come from Color(hex).hex(),
which is always uppercase 6-digit hex, while callers such as splashy pass
lowercase hex. Every lookup missed, getColorDominance scored every miss as 1
(the score for the first color), and the caller's palette order stopped
affecting which background wins.

Normalize the caller's palette with the same Color(...).hex() before the
lookup, so both sides of indexOf use one canonical form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(dominance): dedupe equivalent spellings before pairing

Canonical hex is the pair key, so lowercase and shorthand palettes were
all scored as first. One spelling shares one pair list, and a repeated
entry still counts toward the dominance length.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

98 of 100 branches covered (98.0%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

260 of 260 relevant lines covered (100.0%)

3489.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40737638491.1 28 Oct 2026 05:38PM UTC 4
99.44
GitHub Action Run
Source Files on build 40737638491
  • Tree
  • List 4
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40737638491
  • 9ee1e2ef on github
  • Prev Build on master (#40724673124)
  • Next Build on master (#40754590132)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc