Merge remote-tracking branch 'origin/main' into feat/zeroize-tui-profile

This commit is contained in:
Sirius DevOps 2026-09-12 13:50:01 -04:00
commit eafabce062
No known key found for this signature in database
3 changed files with 337 additions and 18 deletions

View file

@ -510,3 +510,63 @@ add it on this card. Preferred: depend on `unicode-width` explicitly and assert
`tests/tui_frames.rs` `chars_count_is_not_terminal_cells` documents the three
examples without adding a crate.
## After frames (spacing / ASCII / wrap / copy)
Base: `origin/main` after PR #24 (`33beede`). Hierarchy, fail-closed footer,
1-line header, roster width, help overlay, and `NO_COLOR` palette are unchanged
here. Optional 3-line wordmark at height ≥ 40 was skipped (it fights the 1-line
header without buying hierarchy).
### 80x24 — `draw_share` after (field-boundary wrap)
Invite lines break on `:`. `sig=` hex that does not fit continues as an
all-hex line. Joining those lines (no extra spaces) is the original payload.
```
┌(o) invite────────────────────────────────────────────────────────────────────┐
│give this string to a friend; they F3 paste it │
│ │
│fp ea4a6c63… │
│onion abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion │
│ │
│onionwire:v1: │
│k=ea4a6c63e29c520abef5507b132ec5f9954776aebebe7b92421eea691446d22c: │
│o=abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion: │
│spk=0101010101010101010101010101010101010101010101010101010101010101: │
│sig=46caf16b6da95e86bf93a6ee80605ec74d9e24a419c4ef802632af74f46406fae9953690e0│
│5401b0af934cefea617f71466f406af4bef956847200a8e915190b │
└──────────────────────────────────────────────────────────────────────────────┘
```
### 80x24 — ASCII switch (`ONIONWIRE_ASCII=1`)
No non-ASCII byte. Truncation marker is `...`. Borders are `+` `-` `|`.
```
+(o) invite--------------------------------------------------------------------+
|give this string to a friend; they F3 paste it |
| |
|fp ea4a6c63... |
|onion abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion |
| |
|onionwire:v1: |
|k=ea4a6c63e29c520abef5507b132ec5f9954776aebebe7b92421eea691446d22c: |
|o=abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopqrstuvwx.onion: |
|spk=0101010101010101010101010101010101010101010101010101010101010101: |
|sig=46caf16b6da95e86bf93a6ee80605ec74d9e24a419c4ef802632af74f46406fae9953690e0|
|5401b0af934cefea617f71466f406af4bef956847200a8e915190b |
+------------------------------------------------------------------------------+
```
### 80x24 / 120x40 — main chrome after
Same 1-line header, unboxed composer, fail-closed footer as PR #24. Dump:
```
cargo test --locked --test tui_spec -- --nocapture dump_spec_frames
```
Copy wired in `src/tui.rs` (not in the reconstructed standin): empty thread is
`no messages` / `type below, Enter sends`; paste error is `{err}` then
`Enter resubmits Esc back`; alerts truncate to the frame width.