Convert cob actions into customized desktop actions
This commit allows us to e.g. convert the Set of DIDs we obtain from assignee actions on cobs into a Set of Authors with their Aliases.
Also it introduces the FromRadicleAction trait which can be
implemented for any type of enum we get from the radicle create to
convert into a type which is better suited for us.
Removes also any calling the alias command in the PatchTimeline or
IssueTimeline since we already get the alias from the backend the
first time now.
Also does the following:
- Remove unused logging statements
- Change some
eprintlnstatements forlog::error
This partially solves issue 337f765acff2fac32ea4c5ea26e0852c7bc6bddc
18 files changed
+283
-92
47ea7d78
→
c730e821
modified crates/radicle-tauri/src/commands/cob/issue.rs
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -63,6 +63,6 @@ pub fn activity_by_issue(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
modified crates/radicle-tauri/src/commands/cob/patch.rs
@@ -1,6 +1,6 @@
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -95,6 +95,6 @@ pub fn activity_by_patch(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
modified crates/radicle-types/bindings/cob/issue/Action.ts
@@ -1,9 +1,10 @@
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/bindings/cob/patch/Action.ts
@@ -1,4 +1,5 @@
|
|
| + | |
|
|
|
|
|
@@ -7,7 +8,7 @@ export type Action =
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/cobs.rs
@@ -1,3 +1,4 @@
| + | |
|
|
|
|
|
@@ -11,7 +12,7 @@ pub mod repo;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -30,6 +31,14 @@ impl Author {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/cobs/issue.rs
@@ -10,6 +10,9 @@ use radicle::issue;
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -136,10 +139,7 @@ pub struct NewIssue {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -189,3 +189,48 @@ pub enum Action {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-types/src/cobs/stream/iter.rs
@@ -217,8 +217,6 @@ where
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -338,7 +336,6 @@ fn action<A>(
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified crates/radicle-types/src/domain/patch/models/patch.rs
@@ -2,15 +2,17 @@ use std::collections::BTreeMap;
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -329,10 +331,7 @@ pub enum Action {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -512,3 +511,160 @@ pub enum Action {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified crates/radicle-types/src/syntax.rs
@@ -188,7 +188,6 @@ impl Builder {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -208,7 +207,6 @@ impl Builder {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -282,7 +280,6 @@ impl Highlighter {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -291,7 +288,6 @@ impl Highlighter {
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified crates/radicle-types/src/traits/cobs.rs
@@ -2,17 +2,18 @@ use radicle::storage::ReadStorage;
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -23,7 +24,16 @@ pub trait Cobs: Profile {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/issue.rs
@@ -1,3 +1,5 @@
| + | |
| + | |
|
|
|
|
|
@@ -115,7 +117,7 @@ pub trait IssuesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -142,7 +144,10 @@ pub trait IssuesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -184,7 +189,7 @@ pub trait IssuesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/patch.rs
@@ -1,3 +1,5 @@
| + | |
| + | |
|
|
|
|
|
@@ -176,7 +178,10 @@ pub trait PatchesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -246,7 +251,7 @@ pub trait PatchesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/thread.rs
@@ -110,7 +110,7 @@ pub trait Thread: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -153,7 +153,7 @@ pub trait Thread: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/test-http-api/src/api.rs
@@ -13,10 +13,10 @@ use tower_http::cors::{self, CorsLayer};
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -71,11 +71,11 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -259,20 +259,26 @@ struct ActivityBody {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/components/IssueTimeline.svelte
@@ -18,11 +18,9 @@
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -66,7 +64,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -169,7 +167,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -177,38 +175,20 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified src/components/PatchTimeline.svelte
@@ -18,12 +18,10 @@
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -67,7 +65,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -190,44 +188,26 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified src/views/repo/Issue.svelte
@@ -126,7 +126,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/views/repo/Patch.svelte
@@ -173,7 +173,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|