Medlar/docs/tests/S017-details.md
2026-11-25 14:28:13 -06:00

4.4 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 —
2 MED Same at 480x360 Sheet at the bottom, list above, nothing overlaps screen —
3 MED Click each of the 7 tabs Each shows its page without panic; empty ones say so screen —
4 MED Esc, or the close button Panel closes; list gets its width back screen —
5 HIGH Remove the shown download Panel closes by itself, no panic integration —
6 HIGH Failed download with a kind (Login, DiskFull, NotFound) Error box: what, why, last tried, next try, fixes; first fix is filled screen —
7 HIGH Checksum failure Checksum tab says "does not match"; repair, other mirror and start over buttons send Resume, OtherMirror, Redownload integration —
8 HIGH Done download, delete the file on disk, wait 4 s "The file is gone" box with Download again and Remove integration —
9 MED Change speed limit to 500 Task speed_limit is 512000; 0 clears it integration —
10 MED Change parts, priority, queue Task fields change; running download keeps going integration —
11 MED Click Rename, Move, Copy link, Redownload, Delete Same dialogs, messages and commands as the list menu integration —
12 MED Click Show on a done file Reveal is called with the file path; without it the folder opens integration —
13 MED Toggle a tag chip; type a note and leave the field Tag list and notes of the task change integration —
14 HIGH Log filter "retry"; copy Only matching lines copied; secrets in lines come out redacted unit —
15 HIGH Headers tab with Authorization and Cookie Value shows "hidden", never the text unit —
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 —
17 LOW Tag colours Only theme roles; same tag same colour in light and dark screen —
18 MED Running download, Speed tab Graph moves, limit line at the limit; Parts tab blocks move screen —
19 MED Real FileManager1 absent (no session bus) Folder opens instead, a log line, no crash by hand —
20 MED Move a file to another drive from the panel Copied, checked, then source removed (core does it) integration —

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.