Commit Graph
15 Commits
Author SHA1 Message Date
thePR0M3TH3ANandClaude Opus 4.8 fdcf034464 fix(beacon): stop the processing spinner hanging forever (#28)
The torrent beacon's processing overlay was gated on WebTorrent's metadata-ready
callback (client.add/seed), which only fires once metadata arrives from peers. A
magnet with no live seeders never resolved it, so the spinner span forever, and a
torrent that emitted its own 'error' didn't always reach the client-level handler.

- beginProcessing() arms a 30s watchdog that drops the overlay and warns ("still
  searching for peers — it'll keep trying in the background") instead of hanging;
  the torrent stays in the table and keeps announcing.
- handleTorrentReady, the client error handler, and destroy() clear the watchdog.
- addMagnet/seedFiles wrap add/seed in try/catch and attach a per-torrent 'error'
  listener so bad/duplicate magnets fail visibly.
- Tests: tests/torrent/beacon-watchdog.test.mjs (JSDOM).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-24 21:57:11 -04:00
thePR0M3TH3AN 188d455a27 Route beacon logging through shared logger 2025-10-15 15:33:09 -04:00
thePR0M3TH3AN 13d8e1a4a4 Fix Beacon overlay hidden state 2025-10-15 14:03:22 -04:00
thePR0M3TH3AN d705cf176b Revert "Refactor logging to centralized logger" 2025-10-15 11:14:10 -04:00
thePR0M3TH3AN 37ba57aa37 Refactor logging to centralized logger 2025-10-15 11:11:14 -04:00
thePR0M3TH3AN 053623bdac Refactor beacon runtime to design system modules 2025-10-14 10:26:41 -04:00
thePR0M3TH3AN 27c1c4fa11 refactor: use static classes for beacon utilities 2025-10-14 08:01:34 -04:00
thePR0M3TH3AN c3ba160ef8 Replace UI grid and notify with Tailwind components 2025-10-13 21:53:26 -04:00
thePR0M3TH3AN 7d1c77e4ba Inline beacon fonts to avoid binary artifacts 2025-10-13 19:01:30 -04:00
thePR0M3TH3AN b9b50efa9c Refactor torrent beacon styles into design system 2025-10-12 20:25:15 -04:00
thePR0M3TH3AN fb6ddc9b76 Centralize styling assets 2025-10-12 14:44:32 -04:00
thePR0M3TH3AN b4d7d265e6 refactor hex colors to tokens 2025-10-11 15:38:13 -04:00
thePR0M3TH3AN 983c287372 Refactor beacon torrent UI to design system 2025-10-11 15:03:13 -04:00
thePR0M3TH3AN 8b7d74e356 Align torrent styles with global tokens 2025-10-11 13:11:07 -04:00
Keep Creating Online b6b61e4e15 updated directory structure to fix root Service Worker issues and performance improvements 2025-02-05 16:54:40 -05:00