diff --git a/radicle-cli/src/terminal/patch.rs b/radicle-cli/src/terminal/patch.rs index 2ee4f1a5..e84cea99 100644 --- a/radicle-cli/src/terminal/patch.rs +++ b/radicle-cli/src/terminal/patch.rs @@ -435,6 +435,16 @@ pub fn show( for line in timeline::timeline(profile, patch) { widget.push(line); } + + if verbose { + for (id, comment) in revision.replies() { + let hstack = term::comment::header(id, comment, profile); + + widget = widget.divider(); + widget.push(hstack); + widget.push(term::textarea(comment.body()).wrap(60)); + } + } widget.print(); Ok(()) diff --git a/radicle/src/cob/patch.rs b/radicle/src/cob/patch.rs index c33d9122..3cf6b1a0 100644 --- a/radicle/src/cob/patch.rs +++ b/radicle/src/cob/patch.rs @@ -1420,6 +1420,11 @@ impl Revision { &self.discussion } + /// Iterate over all top-level replies. + pub fn replies(&self) -> impl Iterator)> { + self.discussion.comments() + } + /// Reviews of this revision's changes (one per actor). pub fn reviews(&self) -> impl DoubleEndedIterator { self.reviews