Switch to published Radicle crates

This commit is contained in:
Erik Kundt
2023-08-10 22:38:38 +02:00
parent 682400f7cb
commit 7b0692df51
8 changed files with 121 additions and 329 deletions
+4 -4
View File
@@ -106,10 +106,10 @@ impl IssueHeader {
common::label(&id.to_string()).foreground(theme.colors.browser_list_description),
);
let tags = Property::new(
let labels = Property::new(
common::label("Tags").foreground(theme.colors.property_name_fg),
common::label(&cob::format_tags(item.tags()))
.foreground(theme.colors.browser_list_tags),
common::label(&cob::format_labels(item.labels()))
.foreground(theme.colors.browser_list_labels),
);
let assignees = Property::new(
@@ -135,7 +135,7 @@ impl IssueHeader {
Widget::new(title),
Widget::new(issue_id),
Widget::new(author),
Widget::new(tags),
Widget::new(labels),
Widget::new(assignees),
Widget::new(state),
],
+1 -3
View File
@@ -1,7 +1,5 @@
use radicle::cob::patch::{Patch, PatchId};
use radicle_cli::terminal::format;
use tuirealm::command::{Cmd, CmdResult};
use tuirealm::tui::layout::Rect;
use tuirealm::{AttrValue, Attribute, Frame, MockComponent, Props, State};
@@ -108,7 +106,7 @@ pub fn context(context: &Context, theme: &Theme, patch: (PatchId, Patch)) -> Wid
let (_, rev) = patch.latest();
let is_you = *patch.author().id() == context.profile().did();
let id = format::cob(&id);
let id = cob::format::cob(&id);
let title = patch.title();
let author = cob::format_author(patch.author().id(), is_you);
let comments = rev.discussion().len();