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

dangernoodle-io / TaipanMiner / 25620234720
90%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 04:56AM UTC
Jobs 3
Files 87
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 04:55AM UTC coverage: 86.567% (+1.0%) from 85.524%
25620234720

push

github

web-flow
refactor(diagnostics): extract sse + telemetry state machine; add tests (#375)

* refactor(webui): extract diagnostics page state machine

- extract diagnosticsHelpers.ts: filterLines, retryInSeconds, findLevelForTag (pure functions)
- extract diagnosticsState.svelte.ts: full sse + telemetry + log-level + reboot state machine
- diagnostics.svelte shrinks to thin shell; all logic delegated to createDiagnosticsState()
- convert $: blocks to $derived; mutated locals to $state; $state.raw for sse/timer identity
- sse lifecycle: init() wires intervals and visibility listener; destroy() tears down in order
- behavior unchanged: same state transitions, same message strings, same sse semantics

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(webui): cover diagnostics state machine and helpers

- diagnosticsHelpers.test.ts: 12 specs covering filterLines, retryInSeconds, findLevelForTag
- diagnosticsState.test.ts: 58 specs covering init/destroy lifecycle, loadDiagAsic/loadLevels,
  applyLevel, doReboot/requestReboot, clear, all SSE callbacks (onMessage cap, onStatusChange,
  onRetryAtChange, onOpen reconnect logic), onPanelScroll, onVisibilityChange, $derived computed
  properties (filtered, currentLevel, retryInS), and setter round-trips
- diagnostics.test.ts: rewritten as thin render-specs using createDiagnosticsState mock;
  covers conditional rendering (drops table, empty state, status labels, filter hint),
  button states, and error message display
- removed $effect from state machine (effect_orphan in test context); replaced with
  imperative syncSelectedLevel() called after loadLevels and selectedTag setter

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

2201 of 2883 branches covered (76.34%)

Branch coverage included in aggregate %.

188 of 193 new or added lines in 3 files covered. (97.41%)

4211 of 4524 relevant lines covered (93.08%)

182525.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
91.22
webui/miner/src/lib/diagnosticsState.svelte.ts
Jobs
ID Job ID Ran Files Coverage
1 e2e - 25620234720.1 10 May 2026 04:57AM UTC 43
58.75
GitHub Action Run
2 webui - 25620234720.2 10 May 2026 04:56AM UTC 59
84.52
GitHub Action Run
3 native - 25620234720.3 10 May 2026 04:56AM UTC 28
89.19
GitHub Action Run
Source Files on build 25620234720
  • Tree
  • List 87
  • 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 #25620234720
  • 698c772f on github
  • Prev Build on main (#25619949353)
  • Next Build on main (#25620560410)
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