Remove measure importance

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-04-27 20:22:24 -07:00
parent 78113dc0db
commit 9471c38a67
24 changed files with 99 additions and 686 deletions

View File

@@ -65,7 +65,6 @@ const linkedMesuresQuery = graphql`
name
description
category
importance
state
}
}
@@ -88,7 +87,6 @@ const organizationMesuresQuery = graphql`
name
description
category
importance
state
}
}
@@ -721,24 +719,6 @@ export function Control({
setIsPolicyMappingDialogOpen(true);
}, [loadPoliciesData]);
// UI helper functions
const formatImportance = (importance: string | undefined): string => {
if (!importance) return "Unknown";
switch (importance) {
case "LOW":
return "Low";
case "MEDIUM":
return "Medium";
case "HIGH":
return "High";
case "CRITICAL":
return "Critical";
default:
return importance;
}
};
const formatState = (state: string | undefined): string => {
if (!state) return "Unknown";
@@ -756,23 +736,6 @@ export function Control({
}
};
const getImportanceColor = (importance: string | undefined): string => {
if (!importance) return "bg-secondary-bg text-secondary";
switch (importance) {
case "LOW":
return "bg-success-bg text-success";
case "MEDIUM":
return "bg-info-bg text-info";
case "HIGH":
return "bg-warning-bg text-warning";
case "CRITICAL":
return "bg-danger-bg text-danger";
default:
return "bg-secondary-bg text-secondary";
}
};
const getStateColor = (state: string | undefined): string => {
if (!state) return "bg-secondary-bg text-secondary";
@@ -871,9 +834,6 @@ export function Control({
<thead className="sticky top-0 bg-white">
<tr className="border-b text-left text-sm text-secondary bg-invert-bg">
<th className="py-3 px-4 font-medium">Name</th>
<th className="py-3 px-4 font-medium">
Importance
</th>
<th className="py-3 px-4 font-medium">State</th>
<th className="py-3 px-4 font-medium text-right">
Actions
@@ -898,15 +858,6 @@ export function Control({
</div>
)}
</td>
<td className="py-3 px-4">
<div
className={`px-2 py-0.5 rounded-full text-xs ${getImportanceColor(
mesure.importance
)} inline-block`}
>
{formatImportance(mesure.importance)}
</div>
</td>
<td className="py-3 px-4">
<div
className={`px-2 py-0.5 rounded-full text-xs ${getStateColor(
@@ -1000,7 +951,6 @@ export function Control({
<thead>
<tr className="border-b text-left text-sm text-secondary bg-invert-bg">
<th className="py-3 px-4 font-medium">Name</th>
<th className="py-3 px-4 font-medium">Importance</th>
<th className="py-3 px-4 font-medium">State</th>
<th className="py-3 px-4 font-medium text-right">
Actions
@@ -1021,15 +971,6 @@ export function Control({
</div>
)}
</td>
<td className="py-3 px-4">
<div
className={`px-2 py-0.5 rounded-full text-xs ${getImportanceColor(
mesure.importance
)} inline-block`}
>
{formatImportance(mesure.importance)}
</div>
</td>
<td className="py-3 px-4">
<div
className={`px-2 py-0.5 rounded-full text-xs ${getStateColor(

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<03360061cfc99eaa1ec9921a815f9fa0>>
* @generated SignedSource<<94f5c5a041ae3730b8f4a71ad63530a8>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,6 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type ControlLinkedMesuresQuery$variables = {
controlId: string;
@@ -23,7 +22,6 @@ export type ControlLinkedMesuresQuery$data = {
readonly category: string;
readonly description: string;
readonly id: string;
readonly importance: MesureImportance;
readonly name: string;
readonly state: MesureState;
};
@@ -104,13 +102,6 @@ v4 = [
"name": "category",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "importance",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -253,7 +244,7 @@ return {
]
},
"params": {
"cacheID": "19d9240a60b26d765a93e00be9e1e83f",
"cacheID": "b29cb1662103fc42abf16fa6b3458a68",
"id": null,
"metadata": {
"connection": [
@@ -270,11 +261,11 @@ return {
},
"name": "ControlLinkedMesuresQuery",
"operationKind": "query",
"text": "query ControlLinkedMesuresQuery(\n $controlId: ID!\n) {\n control: node(id: $controlId) {\n __typename\n id\n ... on Control {\n mesures(first: 100) {\n edges {\n node {\n id\n name\n description\n category\n importance\n state\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
"text": "query ControlLinkedMesuresQuery(\n $controlId: ID!\n) {\n control: node(id: $controlId) {\n __typename\n id\n ... on Control {\n mesures(first: 100) {\n edges {\n node {\n id\n name\n description\n category\n state\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "acb01a862fb268c4b4b557edc3090a0e";
(node as any).hash = "e42a48d7b21eaa5c42331377b6a9bc9c";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<345a2b05f66a0bb630eea3c12f549e52>>
* @generated SignedSource<<862b2210a9d569a05063cebc805bdd01>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,6 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type ControlOrganizationMesuresQuery$variables = {
organizationId: string;
@@ -23,7 +22,6 @@ export type ControlOrganizationMesuresQuery$data = {
readonly category: string;
readonly description: string;
readonly id: string;
readonly importance: MesureImportance;
readonly name: string;
readonly state: MesureState;
};
@@ -104,13 +102,6 @@ v4 = [
"name": "category",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "importance",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -253,7 +244,7 @@ return {
]
},
"params": {
"cacheID": "59ceb60db60754876774a3856686b35c",
"cacheID": "bb1066800bfa28aaa64a2fd1f12c5924",
"id": null,
"metadata": {
"connection": [
@@ -270,11 +261,11 @@ return {
},
"name": "ControlOrganizationMesuresQuery",
"operationKind": "query",
"text": "query ControlOrganizationMesuresQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n mesures(first: 100) {\n edges {\n node {\n id\n name\n description\n category\n importance\n state\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
"text": "query ControlOrganizationMesuresQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n mesures(first: 100) {\n edges {\n node {\n id\n name\n description\n category\n state\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "cc43b07a1a1f5831f5d09fbd13d8805d";
(node as any).hash = "5f1d6b11af3d92bec1c4d37ceb12b7c3";
export default node;

View File

@@ -26,7 +26,6 @@ const editMesureQuery = graphql`
name
description
category
importance
}
}
}
@@ -59,8 +58,7 @@ function EditMesureViewContent({
const [formData, setFormData] = useState({
name: mesure.name ?? "",
description: mesure.description ?? "",
category: mesure.category ?? "",
importance: mesure.importance,
category: mesure.category ?? ""
});
const [commit, isInFlight] =
@@ -91,8 +89,7 @@ function EditMesureViewContent({
id: mesureId!,
name: formData.name,
description: formData.description,
category: formData.category,
importance: formData.importance,
category: formData.category
},
},
onCompleted(data, errors) {
@@ -152,52 +149,6 @@ function EditMesureViewContent({
required
/>
<div className="space-y-4">
<div className="space-y-2">
<div className="flex items-center gap-2">
<Label className="text-sm">Importance</Label>
</div>
<div className="flex gap-2">
<button
type="button"
onClick={() => handleFieldChange("importance", "MANDATORY")}
className={cn(
"rounded-full cursor-pointer px-4 py-1 text-sm transition-colors",
formData.importance === "MANDATORY"
? "bg-danger-bg text-danger ring ring-danger-b"
: "bg-invert-bg hover:bg-h-invert-bg"
)}
>
Mandatory
</button>
<button
type="button"
onClick={() => handleFieldChange("importance", "PREFERRED")}
className={cn(
"rounded-full cursor-pointer px-4 py-1 text-sm transition-colors",
formData.importance === "PREFERRED"
? "bg-warning-bg text-warning ring ring-warning-b"
: "bg-invert-bg hover:bg-h-invert-bg"
)}
>
Preferred
</button>
<button
type="button"
onClick={() => handleFieldChange("importance", "ADVANCED")}
className={cn(
"rounded-full cursor-pointer px-4 py-1 text-sm transition-colors",
formData.importance === "ADVANCED"
? "bg-info-bg text-info ring ring-info-b"
: "bg-invert-bg hover:bg-h-invert-bg"
)}
>
Advanced
</button>
</div>
</div>
</div>
<div className="flex justify-end gap-3">
<Button
type="button"

View File

@@ -51,7 +51,6 @@ const mesureListViewQuery = graphql`
description
category
state
importance
createdAt
updatedAt
}
@@ -75,7 +74,6 @@ const importMesureMutation = graphql`
description
category
state
importance
createdAt
updatedAt
}
@@ -90,7 +88,6 @@ interface Mesure {
description?: string;
state?: string;
category?: string;
importance?: string;
status?: string;
createdAt?: string;
updatedAt?: string;
@@ -522,9 +519,6 @@ function MesureListContent({
<table className="w-full">
<thead>
<tr className="bg-subtle-bg/30 text-sm font-medium text-tertiary">
<th className="w-24 px-4 py-2 text-left">
Importance
</th>
<th className="w-24 px-4 py-2 text-left">
Status
</th>
@@ -537,11 +531,6 @@ function MesureListContent({
key={mesure.id || Math.random().toString()}
className="hover:bg-h-subtle-bg cursor-pointer"
>
<td className="w-24 px-4 py-3 align-middle">
<Badge variant="outline" className="text-xs">
{mesure.importance}
</Badge>
</td>
<td className="w-24 px-4 py-3 align-middle">
<div className="flex items-center justify-center">
{mesure.status
@@ -593,12 +582,6 @@ function MesureListContent({
<h4 className="font-bold text-md">
{mesure.name}
</h4>
<Badge
variant="outline"
className="text-xs"
>
{mesure.importance}
</Badge>
</div>
{mesure.description && (

View File

@@ -152,7 +152,6 @@ const mesureViewQuery = graphql`
name
description
state
importance
category
tasks(first: 100) @connection(key: "MesureView_tasks") {
__id
@@ -573,19 +572,6 @@ function MesureViewContent({
}
}, [environment, mesureId]);
const formatImportance = (importance: string | undefined): string => {
if (!importance) return "";
const upperImportance = importance.toUpperCase();
if (upperImportance === "MANDATORY") return "Mandatory";
if (upperImportance === "PREFERRED") return "Preferred";
if (upperImportance === "ADVANCED") return "Advanced";
const formatted = importance.toLowerCase();
return formatted.charAt(0).toUpperCase() + formatted.slice(1);
};
const formatState = (state: string | undefined): string => {
if (!state) return "";
@@ -613,18 +599,6 @@ function MesureViewContent({
return "bg-secondary-bg text-primary";
};
const getImportanceColor = (importance: string | undefined): string => {
if (!importance) return "bg-secondary-bg text-primary";
const upperImportance = importance.toUpperCase();
if (upperImportance === "MANDATORY") return "bg-red-100 text-red-800";
if (upperImportance === "PREFERRED") return "bg-orange-100 text-orange-800";
if (upperImportance === "ADVANCED") return "bg-blue-100 text-blue-800";
return "bg-secondary-bg text-primary";
};
const [updateTask] = useMutation<MesureViewUpdateTaskStateMutationType>(
updateTaskStateMutation
);
@@ -1867,13 +1841,6 @@ function MesureViewContent({
<SelectItem value="NOT_APPLICABLE">Not Applicable</SelectItem>
</SelectContent>
</Select>
<div
className={`${getImportanceColor(
data.mesure.importance
)} px-3 py-1 rounded-full text-sm`}
>
{formatImportance(data.mesure.importance)}
</div>
</div>
}
>

View File

@@ -36,8 +36,7 @@ export default function NewMesureView() {
const [formData, setFormData] = useState({
name: "",
description: "",
category: "",
importance: "MADATORY" as "MANDATORY" | "PREFERRED" | "ADVANCED",
category: ""
});
const [commit, isInFlight] =
@@ -73,8 +72,7 @@ export default function NewMesureView() {
organizationId: organizationId!,
name: formData.name,
description: formData.description,
category: formData.category,
importance: formData.importance,
category: formData.category
},
connections: [connectionId],
},
@@ -137,52 +135,6 @@ export default function NewMesureView() {
required
/>
<div className="space-y-4">
<div className="space-y-2">
<div className="flex items-center gap-2">
<Label className="text-sm">Importance</Label>
</div>
<div className="flex gap-2">
<button
type="button"
onClick={() => handleFieldChange("importance", "MANDATORY")}
className={cn(
"rounded-full cursor-pointer px-4 py-1 text-sm transition-colors",
formData.importance === "MANDATORY"
? "bg-red-100 text-red-900 ring-2 ring-red-600 ring-offset-2"
: "bg-secondary-bg text-primary hover:bg-h-secondary-bg"
)}
>
Mandatory
</button>
<button
type="button"
onClick={() => handleFieldChange("importance", "PREFERRED")}
className={cn(
"rounded-full cursor-pointer px-4 py-1 text-sm transition-colors",
formData.importance === "PREFERRED"
? "bg-yellow-100 text-yellow-900 ring-2 ring-yellow-600 ring-offset-2"
: "bg-secondary-bg text-primary hover:bg-h-secondary-bg"
)}
>
Preferred
</button>
<button
type="button"
onClick={() => handleFieldChange("importance", "ADVANCED")}
className={cn(
"rounded-full cursor-pointer px-4 py-1 text-sm transition-colors",
formData.importance === "ADVANCED"
? "bg-blue-100 text-blue-900 ring-2 ring-blue-600 ring-offset-2"
: "bg-secondary-bg text-primary hover:bg-h-secondary-bg"
)}
>
Advanced
</button>
</div>
</div>
</div>
<div className="flex justify-end gap-3">
<Button
type="button"

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<7a5c27ece406a4250a38977e9ed9173f>>
* @generated SignedSource<<958d4f8ddfa37ee60ce8db10cfde0f6c>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,6 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type EditMesureViewQuery$variables = {
mesureId: string;
};
@@ -18,7 +17,6 @@ export type EditMesureViewQuery$data = {
readonly category?: string;
readonly description?: string;
readonly id?: string;
readonly importance?: MesureImportance;
readonly name?: string;
};
};
@@ -69,13 +67,6 @@ v5 = {
"kind": "ScalarField",
"name": "category",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "importance",
"storageKey": null
};
return {
"fragment": {
@@ -98,8 +89,7 @@ return {
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/)
(v5/*: any*/)
],
"type": "Mesure",
"abstractKey": null
@@ -138,8 +128,7 @@ return {
"selections": [
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/)
(v5/*: any*/)
],
"type": "Mesure",
"abstractKey": null
@@ -150,16 +139,16 @@ return {
]
},
"params": {
"cacheID": "d38df91a88f32d80da84fc47b7ca17ca",
"cacheID": "3dbf7d90b0ae49ce617abdf063f6b908",
"id": null,
"metadata": {},
"name": "EditMesureViewQuery",
"operationKind": "query",
"text": "query EditMesureViewQuery(\n $mesureId: ID!\n) {\n node(id: $mesureId) {\n __typename\n ... on Mesure {\n id\n name\n description\n category\n importance\n }\n id\n }\n}\n"
"text": "query EditMesureViewQuery(\n $mesureId: ID!\n) {\n node(id: $mesureId) {\n __typename\n ... on Mesure {\n id\n name\n description\n category\n }\n id\n }\n}\n"
}
};
})();
(node as any).hash = "abca56f710248363bacef919222a8420";
(node as any).hash = "97156ec05431ae5b11aa2b5441e8f411";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<869dc4adbc0716aa90912098821ce101>>
* @generated SignedSource<<45df343624b1e041e930fd7108cbd726>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,13 +9,11 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type UpdateMesureInput = {
category?: string | null | undefined;
description?: string | null | undefined;
id: string;
importance?: MesureImportance | null | undefined;
name?: string | null | undefined;
state?: MesureState | null | undefined;
};

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<251663bea47f61a5857366afa4cc0d28>>
* @generated SignedSource<<35c287e8ba9940b8d697c48c563f41c8>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,6 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type ImportMesureInput = {
file: any;
@@ -27,7 +26,6 @@ export type MesureListViewImportMesureMutation$data = {
readonly createdAt: string;
readonly description: string;
readonly id: string;
readonly importance: MesureImportance;
readonly name: string;
readonly state: MesureState;
readonly updatedAt: string;
@@ -109,13 +107,6 @@ v3 = {
"name": "state",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "importance",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -202,16 +193,16 @@ return {
]
},
"params": {
"cacheID": "179ac701005009dc5f30388570061264",
"cacheID": "8cf2772dcac48b487c892d2b68a3bb51",
"id": null,
"metadata": {},
"name": "MesureListViewImportMesureMutation",
"operationKind": "mutation",
"text": "mutation MesureListViewImportMesureMutation(\n $input: ImportMesureInput!\n) {\n importMesure(input: $input) {\n mesureEdges {\n node {\n id\n name\n description\n category\n state\n importance\n createdAt\n updatedAt\n }\n }\n }\n}\n"
"text": "mutation MesureListViewImportMesureMutation(\n $input: ImportMesureInput!\n) {\n importMesure(input: $input) {\n mesureEdges {\n node {\n id\n name\n description\n category\n state\n createdAt\n updatedAt\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "c1c9deeaa806b9553b7eb25d8832818c";
(node as any).hash = "38c30a8751334cce8ba85a64574d9dd6";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<90d959a85cf60161201cb5736ac6abcf>>
* @generated SignedSource<<23a821bbb6c3645f99e769acaf1ccbee>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,6 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type MesureListViewQuery$variables = {
first?: number | null | undefined;
@@ -25,7 +24,6 @@ export type MesureListViewQuery$data = {
readonly createdAt: string;
readonly description: string;
readonly id: string;
readonly importance: MesureImportance;
readonly name: string;
readonly state: MesureState;
readonly updatedAt: string;
@@ -117,13 +115,6 @@ v5 = [
"name": "state",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "importance",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -279,7 +270,7 @@ return {
]
},
"params": {
"cacheID": "9f6e9e1487bd34be972a52077bc91ee8",
"cacheID": "f71922f62a78f77f2cfc2de55b48f3d6",
"id": null,
"metadata": {
"connection": [
@@ -296,11 +287,11 @@ return {
},
"name": "MesureListViewQuery",
"operationKind": "query",
"text": "query MesureListViewQuery(\n $organizationId: ID!\n $first: Int\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n mesures(first: $first) {\n edges {\n node {\n id\n name\n description\n category\n state\n importance\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
"text": "query MesureListViewQuery(\n $organizationId: ID!\n $first: Int\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n mesures(first: $first) {\n edges {\n node {\n id\n name\n description\n category\n state\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "47928382749f3bac585927423bcdd09e";
(node as any).hash = "d5f2d0ddef43b63261b9a9dfbbf08070";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<911e86f76b51015804e409479ee4068c>>
* @generated SignedSource<<ecce6472ee50f706d3e4ba91cba0798e>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -11,7 +11,6 @@
import { ConcreteRequest } from 'relay-runtime';
export type EvidenceState = "FULFILLED" | "REQUESTED";
export type EvidenceType = "FILE" | "LINK";
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type TaskState = "DONE" | "TODO";
export type MesureViewQuery$variables = {
@@ -22,7 +21,6 @@ export type MesureViewQuery$data = {
readonly category?: string;
readonly description?: string;
readonly id: string;
readonly importance?: MesureImportance;
readonly name?: string;
readonly state?: MesureState;
readonly tasks?: {
@@ -112,24 +110,17 @@ v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "importance",
"name": "category",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "category",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "timeEstimate",
"storageKey": null
},
v9 = {
v8 = {
"alias": null,
"args": null,
"concreteType": "People",
@@ -155,21 +146,21 @@ v9 = {
],
"storageKey": null
},
v10 = {
v9 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v11 = {
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cursor",
"storageKey": null
},
v12 = {
v11 = {
"alias": null,
"args": null,
"concreteType": "PageInfo",
@@ -194,7 +185,7 @@ v12 = {
],
"storageKey": null
},
v13 = {
v12 = {
"kind": "ClientExtension",
"selections": [
{
@@ -206,7 +197,7 @@ v13 = {
}
]
},
v14 = [
v13 = [
{
"alias": null,
"args": null,
@@ -268,25 +259,25 @@ v14 = [
"storageKey": null
},
(v4/*: any*/),
(v10/*: any*/)
(v9/*: any*/)
],
"storageKey": null
},
(v11/*: any*/)
(v10/*: any*/)
],
"storageKey": null
},
(v12/*: any*/),
(v13/*: any*/)
(v11/*: any*/),
(v12/*: any*/)
],
v15 = [
v14 = [
{
"kind": "Literal",
"name": "first",
"value": 100
}
],
v16 = [
v15 = [
{
"kind": "Literal",
"name": "first",
@@ -316,7 +307,6 @@ return {
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
{
"alias": "tasks",
"args": null,
@@ -345,8 +335,8 @@ return {
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
{
"alias": "evidences",
"args": null,
@@ -354,19 +344,19 @@ return {
"kind": "LinkedField",
"name": "__MesureView_evidences_connection",
"plural": false,
"selections": (v14/*: any*/),
"selections": (v13/*: any*/),
"storageKey": null
},
(v10/*: any*/)
(v9/*: any*/)
],
"storageKey": null
},
(v11/*: any*/)
(v10/*: any*/)
],
"storageKey": null
},
(v12/*: any*/),
(v13/*: any*/)
(v11/*: any*/),
(v12/*: any*/)
],
"storageKey": null
}
@@ -395,7 +385,7 @@ return {
"name": "node",
"plural": false,
"selections": [
(v10/*: any*/),
(v9/*: any*/),
(v2/*: any*/),
{
"kind": "InlineFragment",
@@ -404,10 +394,9 @@ return {
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
{
"alias": null,
"args": (v15/*: any*/),
"args": (v14/*: any*/),
"concreteType": "TaskConnection",
"kind": "LinkedField",
"name": "tasks",
@@ -433,43 +422,43 @@ return {
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
{
"alias": null,
"args": (v16/*: any*/),
"args": (v15/*: any*/),
"concreteType": "EvidenceConnection",
"kind": "LinkedField",
"name": "evidences",
"plural": false,
"selections": (v14/*: any*/),
"selections": (v13/*: any*/),
"storageKey": "evidences(first:50)"
},
{
"alias": null,
"args": (v16/*: any*/),
"args": (v15/*: any*/),
"filters": null,
"handle": "connection",
"key": "MesureView_evidences",
"kind": "LinkedHandle",
"name": "evidences"
},
(v10/*: any*/)
(v9/*: any*/)
],
"storageKey": null
},
(v11/*: any*/)
(v10/*: any*/)
],
"storageKey": null
},
(v12/*: any*/),
(v13/*: any*/)
(v11/*: any*/),
(v12/*: any*/)
],
"storageKey": "tasks(first:100)"
},
{
"alias": null,
"args": (v15/*: any*/),
"args": (v14/*: any*/),
"filters": null,
"handle": "connection",
"key": "MesureView_tasks",
@@ -486,7 +475,7 @@ return {
]
},
"params": {
"cacheID": "e4c3abf8e8559e732088a9123863a375",
"cacheID": "b4cafbe98bf9830ee31732f39dd6d088",
"id": null,
"metadata": {
"connection": [
@@ -509,11 +498,11 @@ return {
},
"name": "MesureViewQuery",
"operationKind": "query",
"text": "query MesureViewQuery(\n $mesureId: ID!\n) {\n mesure: node(id: $mesureId) {\n __typename\n id\n ... on Mesure {\n name\n description\n state\n importance\n category\n tasks(first: 100) {\n edges {\n node {\n id\n name\n description\n state\n timeEstimate\n assignedTo {\n id\n fullName\n primaryEmailAddress\n }\n evidences(first: 50) {\n edges {\n node {\n id\n mimeType\n filename\n size\n state\n type\n url\n createdAt\n description\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
"text": "query MesureViewQuery(\n $mesureId: ID!\n) {\n mesure: node(id: $mesureId) {\n __typename\n id\n ... on Mesure {\n name\n description\n state\n category\n tasks(first: 100) {\n edges {\n node {\n id\n name\n description\n state\n timeEstimate\n assignedTo {\n id\n fullName\n primaryEmailAddress\n }\n evidences(first: 50) {\n edges {\n node {\n id\n mimeType\n filename\n size\n state\n type\n url\n createdAt\n description\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
}
};
})();
(node as any).hash = "38c0abd51a589411fc60391269af0227";
(node as any).hash = "023013720b7bc4cf9062268bffd0571b";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<9dac57f235ab6d16f6b3f78002c83dcc>>
* @generated SignedSource<<8e8e8ce00d1ef971d4cb203c17d3abd6>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,13 +9,11 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type MesureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
export type UpdateMesureInput = {
category?: string | null | undefined;
description?: string | null | undefined;
id: string;
importance?: MesureImportance | null | undefined;
name?: string | null | undefined;
state?: MesureState | null | undefined;
};

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<3b585f9a06a084982155a0f356838402>>
* @generated SignedSource<<4c1c57380bf4ac13f476346c8bee05fe>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,11 +9,9 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type MesureImportance = "ADVANCED" | "MANDATORY" | "PREFERRED";
export type CreateMesureInput = {
category: string;
description: string;
importance: MesureImportance;
name: string;
organizationId: string;
};