fix(torrent): use live peer telemetry in properties

- source the Properties peer card from live Aria2 status counts
- distinguish connected peers from unavailable peer details
- remove redundant peer-summary IPC and harden count parsing
- add responsive, accessible peer/seeder presentation and regressions
This commit is contained in:
NimBold
2026-08-15 06:26:25 +03:30
parent de41dd55d6
commit ca32b772a2
23 changed files with 204 additions and 252 deletions
@@ -0,0 +1,12 @@
import { describe, expect, it } from 'vitest';
import { isTorrentLiveStatus } from './propertiesTorrentLifecycle';
describe('Torrent live lifecycle', () => {
it('identifies statuses with live Aria2 telemetry', () => {
expect(isTorrentLiveStatus('downloading')).toBe(true);
expect(isTorrentLiveStatus('retrying')).toBe(true);
expect(isTorrentLiveStatus('paused')).toBe(false);
expect(isTorrentLiveStatus('completed')).toBe(false);
expect(isTorrentLiveStatus('seeding')).toBe(true);
});
});