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

adobe / spectrum-web-components / 28453023513
96%

Build:
DEFAULT BRANCH: main
Ran 30 Jun 2026 02:51PM UTC
Jobs 1
Files 402
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

30 Jun 2026 02:43PM UTC coverage: 96.246%. Remained the same
28453023513

push

github

web-flow
feat(core): migrate ColorController to 2nd-gen and optimize with colorjs.io (#6450)

* feat(core): migrate ColorController to 2nd-gen and optimize with colorjs.io

Relocate ColorController from 1st-gen reactive-controllers into
@spectrum-web-components/core controllers, and optimize the implementation
using colorjs.io built-ins without changing any output color formats.

Changes:
- Add controllers/color-controller (src + index) and export from
  controllers/index.ts; add colorjs.io@0.5.2 dependency, package exports,
  and typesVersions; externalize colorjs.io in the build.
- Optimizations (no output-format change): hoist regex arrays to module
  constants, remove dead getColor formats (hsva/hsla are not real colorjs
  spaces and throw), dedupe space-id detection into a shared helper,
  centralize Dev Mode warnings behind a typeof-window guard for SSR/Node
  safety, and tighten internal types.
- Port the controller test suite as a pure-logic Node unit test under
  test/__unit__, activating the dormant core-unit Vitest project.
- Exclude test/__unit__ from the Storybook story indexer so unit tests are
  not indexed as CSF.

1st-gen ColorController and its consumers are untouched.

* test(core): follow placement-controller convention for ColorController test

Replace the Node-unit `test/__unit__/color-controller.test.ts` with a
Storybook play test at `test/color-controller.test.ts`, matching the folder
and file structure used by placement-controller. The assertions run as `play`
functions in the storybook Vitest project against a minimal non-rendering host.

Reverts the now-unneeded scaffolding: the dormant `core-unit` Vitest project
in swc/vitest.config.js stays commented out, and the Storybook story indexer
no longer needs a `__unit__` exclusion.

* docs(core): add ColorController docs page following placement-controller

Add a per-unit MDX docs page and Storybook stories for ColorController,
mirroring the placement-controller structure: a `demo-color-... (continued)

6017 of 6459 branches covered (93.16%)

Branch coverage included in aggregate %.

37902 of 39173 relevant lines covered (96.76%)

458.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28453023513.1 30 Jun 2026 02:51PM UTC 402
96.25
GitHub Action Run
Source Files on build 28453023513
  • Tree
  • List 402
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28453023513
  • 7ef16cdc on github
  • Prev Build on main (#28252389900)
  • Next Build on main (#28596933718)
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