radicle-heartwood-lfs/radicle-term/src
Fintan Halpenny 8e0e1c232d
cli: improve Author labels
When an alias cannot be found for an `Author` the DID can be repeated eg.

    ✓ accepted by z6MkkfM…jXVsVz5 z6MkkfM…jXVsVz5

To prevent this we output one of four cases:

* `(<alias>, (you))` -- the `Author` is the local peer and has an alias
* `(<did>, (you))` -- the `Author` is the local peer and has no alias
* `(<alias>, <did>)` -- the `Author` is another peer and has an alias
* `(<blank>, <did>)` -- the `Author` is another peer and has no alias

Notably, we output a blank `Label` when no alias was found.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-01-09 13:44:46 +01:00
..
ansi term: Have a way to set the default terminal 2023-12-22 12:15:34 +01:00
ansi.rs term: Overhaul rendering 2023-09-27 12:37:41 +02:00
args.rs Initialize `radicle-term` crate 2023-03-06 10:22:50 +01:00
cell.rs term: Fix unicode display width hack 2023-11-17 15:05:39 +01:00
colors.rs term: Overhaul rendering 2023-09-27 12:37:41 +02:00
command.rs Initialize `radicle-term` crate 2023-03-06 10:22:50 +01:00
editor.rs Update Rust toolchain to 1.74 2023-11-17 16:58:24 +01:00
element.rs cli: improve Author labels 2024-01-09 13:44:46 +01:00
format.rs cli: Support colors in git helper output 2023-12-22 12:15:34 +01:00
hstack.rs term: Overhaul rendering 2023-09-27 12:37:41 +02:00
io.rs cli: Support colors in git helper output 2023-12-22 12:15:34 +01:00
label.rs cli: improve Author labels 2024-01-09 13:44:46 +01:00
lib.rs cob: Introduce `xyz.radicle.id` COB 2023-10-12 17:32:33 +02:00
spinner.rs cli: Show URL on `rad init` 2023-12-19 14:15:30 +01:00
table.rs cli: Improve `rad ls` 2023-11-23 13:51:47 +01:00
textarea.rs term: Fix line width bug with tabs 2024-01-04 14:02:05 +01:00
vstack.rs cli: Add pager to `rad diff` 2023-11-03 14:20:16 +01:00