From c0ce1d0a13d9b809b90e6c13fd54bbb151262b1f Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 27 Sep 2024 14:15:41 +0200 Subject: [PATCH 01/18] feat: Add user story for writeup UI --- .../dev-docs/technical-docs/UserStories.md | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/docs/dev-docs/technical-docs/UserStories.md b/docs/docs/dev-docs/technical-docs/UserStories.md index a9b727e8..83152633 100644 --- a/docs/docs/dev-docs/technical-docs/UserStories.md +++ b/docs/docs/dev-docs/technical-docs/UserStories.md @@ -1,18 +1,19 @@ # User Stories -Some users of the system will be known as *concerned parties*. These concerned parties have very similar needs, however they may fall into two main categories depending on how a dispute is initiated: +Some users of the system will be known as _concerned parties_. These concerned parties have very similar needs, however they may fall into two main categories depending on how a dispute is initiated: + - **Complainants:** Users that wish to initiate a dispute process with another user - **Respondants:** Users with whom a dispute process has been initiated by a complainant -It is worth noting that *concerned parties* only refer to complainants and respondents, i.e. they do not include the other user types detailed below. - +It is worth noting that _concerned parties_ only refer to complainants and respondents, i.e. they do not include the other user types detailed below. ## Concerned Parties + > As a Concerned party I want to manage my contact details so that I am reachable in the event of a dispute > As a Concerned party I want to be notified of an update in a dispute I am involved in so that I am well-informed of the status of the dispute. -> As a Concerned Party, I want to be look at an archive of previously resolved cases such that I can clearly see how +> As a Concerned Party, I want to be look at an archive of previously resolved cases such that I can clearly see how > As a Concerned Party, I want to search the archive for disputes related to my case, such that I can get a sense of precedence @@ -22,8 +23,8 @@ It is worth noting that *concerned parties* only refer to complainants and respo > As a Concerned Party, I want to view the events of previously resolved dispute to get a better sense of the flow of a dispute. - ### Complainant + > As a Complainant I want to initiate a dispute so that I can begin resolving the dispute > As a Complainant I want to upload documents to provide evidence to justify a dispute @@ -32,8 +33,8 @@ It is worth noting that *concerned parties* only refer to complainants and respo > As a Complainant I want to upload documents to refute counter-evidence provided by the Respondant so that both parties are in agreement of the evidence at hand - ### Respondent + > As a Respondant I want to receive a notification about the dispute so that I can begin resolving the dispute > As a Respondant I want to upload documents to refute evidence provided by Complainant @@ -42,8 +43,8 @@ It is worth noting that *concerned parties* only refer to complainants and respo > As a Respondant I want to be notified when a dispute is submitted against me so that I can provide a response to the complainant. - ## Experts/Mediators + > As a Mediator I want to be assigned a dispute so that I can begin mediation > As a Mediator I want to see the documents provided by the Complainant and Respondant so that I can ensure due course was followed @@ -54,7 +55,10 @@ It is worth noting that *concerned parties* only refer to complainants and respo > As a Mediator I want to be able to deny an assignment to a dispute when there is a conflict of interest so that the dispute remains unbiased. +> As an Expert I want to submit a writeup for a dispute so that I can resolve the dispute + ## Organisation Owner + > As an organisation owner I want to create an organisation so that I can manage that organisation > As an organisation owner I want to specify a set of workflows for my organisation so that all disputes follow due process @@ -63,10 +67,10 @@ It is worth noting that *concerned parties* only refer to complainants and respo > As an organisation owner I want to see all ongonig disputes so that I am well informed of them - ## Admin + > As an admin I want to see the available mediators at any given point so that I can manage the active mediators > As an admin I want to manage expert pools so that I can mediators are correctly assigned -> As an admin I want to manage organisations so that I can ensure they are structured correctly \ No newline at end of file +> As an admin I want to manage organisations so that I can ensure they are structured correctly From fb49c7ff7ab3cbbc8e8c8d19c2275172e744e49b Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 27 Sep 2024 18:04:01 +0200 Subject: [PATCH 02/18] feat: Add workflow title --- .../app/(pages)/workflows/designer/page.tsx | 6 +- .../components/workflow/workflow-title.tsx | 58 +++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 admin-frontend/src/components/workflow/workflow-title.tsx diff --git a/admin-frontend/src/app/(pages)/workflows/designer/page.tsx b/admin-frontend/src/app/(pages)/workflows/designer/page.tsx index c5b81398..80f83444 100644 --- a/admin-frontend/src/app/(pages)/workflows/designer/page.tsx +++ b/admin-frontend/src/app/(pages)/workflows/designer/page.tsx @@ -20,6 +20,7 @@ import { type GraphState, type GraphTrigger, type GraphInstance } from "@/lib/ty import { graphToWorkflow, workflowToGraph } from "@/lib/api/workflow"; import { workflowSchema } from "@/lib/schema/workflow"; import { Textarea } from "@/components/ui/textarea"; +import WorkflowTitle from "@/components/workflow/workflow-title"; const initialNodes: GraphState[] = [ { @@ -169,7 +170,10 @@ function InnerProvider() { } return ( -
+
+
+ +