Commit c47b210
authored
feat(cli): rewrite the TUI on HQTUI (#35)
Replaces ~940 lines of hand-rolled ANSI with @profullstack/hqtui, split into
model (state), view (a pure function of a snapshot) and app (effects only).
New: a live transfer panel with progress, rate and the files as rsync reports
them, cancellable with esc; / to filter a listing as you type; o/O to sort by
name, size or time; . for dotfiles; ? for the key list; a filtering endpoint
picker; modification times; and mouse click and wheel support.
Three defects found by rendering frames rather than reading code: a panel
header where one pane lost its title and the other its path over a one-column
rounding difference, paths truncated from the wrong end, and a finished
transfer showing rsync's last printed figure instead of 100%.
TUI tests went 15 to 59, all asserting on real rendered frames.1 parent 217f3b6 commit c47b210
18 files changed
Lines changed: 1756 additions & 790 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | | - | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 62 | + | |
| 63 | + | |
81 | 64 | | |
82 | | - | |
83 | 65 | | |
84 | | - | |
85 | 66 | | |
86 | 67 | | |
87 | 68 | | |
| |||
0 commit comments