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

dangernoodle-io / TaipanMiner / 25625015046
90%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 09:18AM UTC
Jobs 3
Files 94
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

10 May 2026 09:18AM UTC coverage: 89.547% (+0.8%) from 88.747%
25625015046

push

github

web-flow
refactor(history): decouple uplot chart; add tests (#379)

* refactor(webui): decouple history page from uplot

Extract chart config into lib/historyChart.ts (pure builders: windowFilter,
buildSeries, buildOptions, tooltipPlugin) and lifecycle into
lib/historyState.svelte.ts. History.svelte becomes a thin runes-mode shell.

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

* test(webui): cover history chart builders and state machine

- historyChart.test.ts: ~35 specs covering windowFilter, buildSeries,
  buildOptions structure, tooltipPlugin hooks (init, setCursor branches),
  and axis/series value formatters. 98.64% statement coverage.
- historyState.test.ts: ~25 specs covering initial state, selectWindow,
  mountChart, destroyChart, store-derived count/metrics, and resize.
- History.test.ts: rewritten as thin-shell render specs using vi.hoisted()
  stub state; covers empty/populated states, window button rendering,
  active class, mount/destroy lifecycle, and click delegation.

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

* fix(webui): cast uPlot plugin hooks to Function in tests

historyChart.test.ts was calling plugin.hooks.init!() and
plugin.hooks.setCursor!() directly, but uPlot types them as
ArraysOrFuncs (function | function[]), which svelte-check treats as
non-callable. Use (hook as Function)(args) via callInit/callSetCursor
helpers to satisfy the type checker.

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

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>

2286 of 2883 branches covered (79.29%)

Branch coverage included in aggregate %.

130 of 132 new or added lines in 3 files covered. (98.48%)

4413 of 4598 relevant lines covered (95.98%)

179586.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
86.3
webui/miner/src/lib/historyState.svelte.ts
Jobs
ID Job ID Ran Files Coverage
1 native - 25625015046.1 10 May 2026 09:18AM UTC 28
89.19
GitHub Action Run
2 e2e - 25625015046.2 10 May 2026 09:20AM UTC 48
57.78
GitHub Action Run
3 webui - 25625015046.3 10 May 2026 09:19AM UTC 66
90.46
GitHub Action Run
Source Files on build 25625015046
  • Tree
  • List 94
  • 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 #25625015046
  • da96da54 on github
  • Prev Build on main (#25621159160)
  • Next Build on main (#25625639082)
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