Strongly type patch review verdict
Instead of typing a review verdict as string | null we should do
"accept" | "reject" | null
- Remove optional argument from review comments
7 files changed
+60
-19
c2f38bb0
→
6da4ffe3
modified crates/radicle-types/bindings/cob/patch/Action.ts
@@ -1,6 +1,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -12,14 +13,14 @@ export type Action =
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/bindings/cob/patch/Review.ts
@@ -2,12 +2,13 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
modified crates/radicle-types/bindings/cob/patch/ReviewEdit.ts
@@ -1,8 +1,9 @@
|
|
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
added crates/radicle-types/bindings/cob/patch/Verdict.ts
@@ -0,0 +1,3 @@
| + | |
| + | |
| + | |
modified crates/radicle-types/src/cobs/patch.rs
@@ -107,8 +107,10 @@ impl From<patch::State> for State {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -232,12 +234,12 @@ pub struct Review {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
| + | |
|
|
|
|
| - | |
|
|
|
|
|
@@ -252,7 +254,7 @@ impl Review {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -269,6 +271,33 @@ impl Review {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -311,8 +340,8 @@ pub enum Action {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -325,8 +354,8 @@ pub enum Action {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/patch.rs
@@ -161,7 +161,7 @@ pub trait PatchesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -169,7 +169,13 @@ pub trait PatchesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -329,7 +335,7 @@ pub trait PatchesMut: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/components/PatchTimeline.svelte
@@ -258,7 +258,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|