Medlar/docs/tests/S017-details.md
2026-11-26 02:36:15 -06:00

5.5 KiB

S017 — Details panel and file actions: test file

Written by the worker that built it, run by the test phase. Nothing here has been tested until its Result says so.

Built

crates/app/src/views/details/mod.rs · panel frame, tabs, side or bottom by width, graph feed, "file is gone" probe. Open: select one download, press Alt+Enter or menu "Details". crates/app/src/views/details/tabs.rs · Overview (file actions, error section, properties, live edits, tags, notes), Parts, Speed, Log, Headers, Mirrors, Checksum; log_lines, tag_colour. crates/core/src/files.rs · reveal(path): D-Bus FileManager1 ShowItems. views::main::reveal_outside runs it in a thread, falls back to opening the folder. Wiring: Act::Details, Action::Details, Main.details, Main.reveal, strings details.*.

Checks

Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken · LOW = looks or comfort. How: unit · integration · screen · by hand.

# Risk Do this Expect How Result
1 MED Select one row, press Alt+Enter Panel opens for it at 1080x720 on the right, list narrower screen not run: screen check, no harness written
2 MED Same at 480x360 Sheet at the bottom, list above, nothing overlaps screen not run: screen check, no harness written
3 MED Click each of the 7 tabs Each shows its page without panic; empty ones say so screen not run: screen check, no harness written
4 MED Esc, or the close button Panel closes; list gets its width back screen not run: screen check, no harness written
5 HIGH Remove the shown download Panel closes by itself, no panic integration pass: app tests/main.rs (S044) details_close_when_their_task_is_removed
6 HIGH Failed download with a kind (Login, DiskFull, NotFound) Error box: what, why, last tried, next try, fixes; first fix is filled screen pass: app tests/main.rs (S044) details_explain_an_error_with_its_fix
7 HIGH Checksum failure Checksum tab says "does not match"; repair, other mirror and start over buttons send Resume, OtherMirror, Redownload integration pass: app tests/main.rs (S044) details_offer_repairs_for_a_bad_checksum (repair offer absent without pieces, mirror offer sends OtherMirror)
8 HIGH Done download, delete the file on disk, wait 4 s "The file is gone" box with Download again and Remove integration pass: app tests/main.rs (S044) details_see_a_file_gone_and_download_it_again
9 MED Change speed limit to 500 Task speed_limit is 512000; 0 clears it integration not run: integration check, no harness written
10 MED Change parts, priority, queue Task fields change; running download keeps going integration not run: integration check, no harness written
11 MED Click Rename, Move, Copy link, Redownload, Delete Same dialogs, messages and commands as the list menu integration not run: integration check, no harness written
12 MED Click Show on a done file Reveal is called with the file path; without it the folder opens integration not run: integration check, no harness written
13 MED Toggle a tag chip; type a note and leave the field Tag list and notes of the task change integration not run: integration check, no harness written
14 HIGH Log filter "retry"; copy Only matching lines copied; secrets in lines come out redacted unit pass (unit log_filter_and_secrets)
15 HIGH Headers tab with Authorization and Cookie Value shows "hidden", never the text unit pass: app tests/main.rs (S044) details_hide_secret_headers
16 HIGH Paste a bad checksum, then a good SHA-256 Error text first; then "Use and check" sets checksum and sends Verify for a done file integration pass: app tests/main.rs (S044) details_take_a_pasted_checksum
17 LOW Tag colours Only theme roles; same tag same colour in light and dark screen pass (unit tag_colours_are_theme_roles_and_stable)
18 MED Running download, Speed tab Graph moves, limit line at the limit; Parts tab blocks move screen not run: screen check, no harness written
19 MED Real FileManager1 absent (no session bus) Folder opens instead, a log line, no crash by hand not run: by hand check, no harness written
20 MED Move a file to another drive from the panel Copied, checked, then source removed (core does it) integration not run: integration check, no harness written

Needs

Throwaway home; crates/testserver; fake reveal and outside functions; no real file manager. Shots of every tab and the error state, light and dark.

Doubts

  • Never compiled-run: only cargo check. All layout is unseen; sizes may clip at 480x360.
  • Per-server rows (http::Snapshot.servers) are not in TaskView, so Mirrors shows links, not states or speeds. Needs a field in the snapshot.
  • "Last tried" is the newest log line of this session, not a stored time. "Next try" uses retry_at or the kind's rule.
  • Live edit of the link goes through the existing Edit link dialog; login through the existing sign-in wish. No new dialogs.
  • Rename and Move do not show errors in the panel; they use the existing toast path.
  • A Done file's absence is polled every 3 s while the panel is open (a repaint each 3 s).
  • Tag colour is picked by tag id from six theme roles, not the tag's own hex.
  • Alt+Enter may clash with a window manager. Existing tests that list all actions may need the new details key.