feat: signed friend profile frames and TUI /profile /who
Some checks failed
ci / test (push) Waiting to run
release / aarch64 (push) Failing after 14m14s

prf frames are ed25519-signed, friend-visible only (unknown pubkey is ignored).
/profile edits self; F5 and /who show the selected friend's last profile.
This commit is contained in:
Sirius DevOps 2026-09-10 14:25:31 -04:00
commit d304cc4c3b
No known key found for this signature in database
7 changed files with 732 additions and 22 deletions

View file

@ -1,8 +1,8 @@
//! Main-screen chrome helpers: ASCII wordmark, compact fallback, help text.
use onionwire::tui::{
banner_for_width, compact_banner, help_overlay_text, main_footer_hints, onion_glyph,
status_footer, wordmark_banner, Pane,
Pane, banner_for_width, compact_banner, help_overlay_text, main_footer_hints, onion_glyph,
status_footer, wordmark_banner,
};
#[test]
@ -38,7 +38,7 @@ fn onion_glyph_is_nonempty() {
fn help_overlay_lists_core_bindings() {
let help = help_overlay_text();
assert!(!help.is_empty());
for needle in ["Tab", "F2", "F3", "F4", "Ctrl-Q", "?"] {
for needle in ["Tab", "F2", "F3", "F4", "F5", "/profile", "Ctrl-Q", "?"] {
assert!(help.contains(needle), "help overlay missing {needle:?}");
}
for line in help.lines() {
@ -61,10 +61,10 @@ fn banner_for_width_collapses_when_narrow() {
#[test]
fn chrome_renders_at_80x24_and_120x40() {
use ratatui::Terminal;
use ratatui::backend::TestBackend;
use ratatui::layout::{Constraint, Layout};
use ratatui::widgets::Paragraph;
use ratatui::Terminal;
let fp = "abcdef0123456789";
let onion = "abcdefghijklmnopqrstuvwxyz234567abcdefghijklmnopq.onion";