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

dangernoodle-io / TaipanMiner / 25620234720 / 1
90%
main: 90%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 04:59AM UTC
Files 43
Run time 2s
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: 58.752% (-0.09%) from 58.844%
25620234720.1

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>

559 of 1149 branches covered (48.65%)

Branch coverage included in aggregate %.

1287 of 1993 relevant lines covered (64.58%)

8.93 hits per line

Source Files on job e2e - 25620234720.1
  • Tree
  • List 43
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25620234720
  • 698c772f on github
  • Prev Job for on main (#25619949353.1)
  • Next Job for on main (#25620560410.1)
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