fix(downloads): show remaining volume before total

Place the current unfinished download volume ahead of the historical total in the downloads status sidebar. Lock the user-facing metric order with a renderer regression test.
This commit is contained in:
Sucukdeluxe
2026-08-15 01:00:36 +02:00
parent a26fabe990
commit 64c846861b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -114,6 +114,7 @@ describe("rollende Downloadkennzahlen", () => {
const html = renderToStaticMarkup(<DownloadsSidebarStatus model={withRuntime(createInput())} />);
expect(html.match(/class="downloads-rolling-value"/g)).toHaveLength(6);
expect(html).toContain("Verbleibend");
expect(html.indexOf("Verbleibend")).toBeLessThan(html.indexOf("Gesamt"));
expect(html).toContain('data-status-metric="speed"');
expect(html).toContain('data-status-metric="eta"');
});