Medlar/docs/tests/S046-fixes-0.1.1.md
2026-11-26 13:18:00 -06:00

4.3 KiB

S046 — Fixes 0.1.1: test file

Built

  • crates/core/src/http/name.rs · prefer(hint, found); used by download.rs::start and the Add dialog (views/add).
  • crates/app/src/views/incoming.rs · raise(): show, un-minimise, focus, ask for attention.
  • crates/app/src/keys.rs · Ctrl+A/C/V/X/Z stay with a focused text field.
  • crates/app/src/ui/odometer.rs · Calm smoothing (2 s average, 1 s hold); also in views/target.rs.
  • crates/core/src/settings.rs · BarStyle, SNAIL_SPEED 8000 with migration; Settings, Look row "bar".
  • crates/app/src/ui/snail.rs · round snail button, drawn in app.rs after the main view.

Checks

# Risk Do this Expect How Result
1 HIGH Engine: hint output.bin, server sends Content-Disposition game.zip file is game.zip integration a_placeholder_name_gives_way_to_the_servers pass (full suite)
2 HIGH Same, hint mine.7z file stays mine.7z integration (same test) pass (full suite)
3 MED Hint download, redirect to other.iso file is other.iso integration (same test) pass (full suite)
4 MED prefer with placeholders and real names only a placeholder gives way, never to another placeholder unit hints_give_way pass (full suite)
5 MED Hidden run: POST {url, filename:"output.bin"} to the connector on a spare port Add window shows the name game.zip-style real name, window is up by hand (hidden.sh) pass: hidden, port 17999, Add window shows game.zip over output.bin
6 MED Raise on arrival commands Visible, Minimized(false), Focus, attention unit raising_shows_focuses_and_asks_for_attention pass (full suite)
7 HIGH Focused field, Ctrl+C and Ctrl+A app shortcuts do not fire unit a_focused_field_keeps_copy_and_select_all pass (full suite)
8 MED Noisy speed fed for 10 s at most one change per hold; jumps pass at once unit a_noisy_speed_changes_at_most_once_per_hold pass (full suite)
9 LOW Idle (speed 0) no repaint requested unit (odometer) pass (full suite)
10 MED Settings file without bar loads with Parts unit settings tests pass (full suite)
11 MED Settings row "bar" Look page lists it, texts exist, key is real integration every_row_has_its_texts_and_real_keys pass (full suite)
12 LOW Shots main-onebar, light and dark one bar per row screen pass (contact sheet seen)
13 HIGH Stored snail 32768 / user value 5000 8000 / 5000 unit snail_moves_to_8_kb_unless_changed pass (full suite)
14 HIGH Snail toggled during a download against testserver speed held at cap, no connection dropped integration modes_change_live_without_reconnecting pass (full suite)
15 MED Snail button off / on off asks no frames; on asks a slow loop unit off_asks_for_no_frames_and_on_asks_for_a_slow_loop pass (full suite)
16 LOW Shots main-snail, light/dark, 480x360 and 1080x720 button bottom right, on/off look screen pass (contact sheet seen)
17 MED Hidden run idle with the new build CPU near 0 % by hand not run: CPU 11 % measured with the Add dialog open (software render); empty idle list not measured

Needs

Testserver on loopback; throwaway home and spare port 17999 for hidden runs. The user's running Medlar (17616) is never touched.

Doubts

  • Placeholder list is a guess (output, download, file, index, unknown, get, no extension, script types).
  • Real Wayland focus on arrival cannot be proven in a nested session.
  • At 480x360 the snail button covers the pause icon of the last row.
  • Tray tooltip speed is not smoothed. Snail crawl motion not watched live.

Results

Full workspace suite (--no-fail-fast): all pass except a_fast_mirror_brings_more_than_a_slow_one (mirror.rs) once under load (fast 147457, slow 49153); alone it passed twice. Timing flake, not touched by S046; not fixed. Fix found by the suite: the Settings row "bar" listed non-setting keys (fixed). Smoke note: a server name like data-1.bin counts as a placeholder, so the hint stays; the smoke used /data/1/3k/game.zip. Packages: tar.gz 13989774 B, AppImage 13740536 B, Arch pkg 13637062 B, SHA256SUMS-0.1.1 297 B (dist/). Packaged apps not launched by hand beyond the release binary smoke.