- {Array.isArray(assignedUsers)
+ {ProjectDetails?.conceal==false&&Array.isArray(assignedUsers)
? assignedUsers.join(", ")
: assignedUsers || "No assigned users"}
diff --git a/src/app/ui/pages/chat/SuperCheckerPage.jsx b/src/app/ui/pages/chat/SuperCheckerPage.jsx
index e88e9acb..894dbac6 100644
--- a/src/app/ui/pages/chat/SuperCheckerPage.jsx
+++ b/src/app/ui/pages/chat/SuperCheckerPage.jsx
@@ -351,6 +351,15 @@ const SuperCheckerPage = () => {
};
const formatResponse = (response) => {
+ if (!response) {
+ return [
+ {
+ type: "text",
+ value: "",
+ },
+ ];
+ }
+
response = String(response);
const output = [];
let count = 0;
@@ -564,14 +573,14 @@ const SuperCheckerPage = () => {
const PatchAPIdata = {
annotation_status:
typeof window !== "undefined" &&
- (value === "delete" || value === "delete-pair")
+ (value === "delete" || value === "delete-pair")
? localStorage.getItem("labellingMode")
: value,
supercheck_notes:
typeof window !== "undefined"
? JSON.stringify(
- superCheckerNotesRef?.current?.getEditor().getContents(),
- )
+ superCheckerNotesRef?.current?.getEditor().getContents(),
+ )
: null,
lead_time:
(new Date() - loadtime) / 1000 + Number(lead_time?.lead_time ?? 0),
@@ -601,7 +610,7 @@ const SuperCheckerPage = () => {
) ||
["validated", "validated_with_changes"].includes(value)
) {
- if (!["draft", "skipped", "delete", "delete-pair","to_be_revised"].includes(value)) {
+ if (!["draft", "skipped", "delete", "delete-pair", "to_be_revised"].includes(value)) {
console.log("answered variable: ");
if (
(ProjectDetails.project_type == "ModelInteractionEvaluation" ||
@@ -618,7 +627,7 @@ const SuperCheckerPage = () => {
setShowNotes(false);
return;
}
- else if (chatHistory.length==0){
+ else if (chatHistory.length == 0) {
setAutoSave(true);
setSnackbarInfo({
open: true,
@@ -661,21 +670,21 @@ const SuperCheckerPage = () => {
}
value === "delete"
? setSnackbarInfo({
+ open: true,
+ message: "Chat history has been cleared successfully!",
+ variant: "success",
+ })
+ : value === "delete-pair"
+ ? setSnackbarInfo({
open: true,
- message: "Chat history has been cleared successfully!",
+ message: "Selected conversation is deleted",
variant: "success",
})
- : value === "delete-pair"
- ? setSnackbarInfo({
- open: true,
- message: "Selected conversation is deleted",
- variant: "success",
- })
: setSnackbarInfo({
- open: true,
- message: resp?.message,
- variant: "success",
- });
+ open: true,
+ message: resp?.message,
+ variant: "success",
+ });
} else {
setAutoSave(true);
setSnackbarInfo({
@@ -735,10 +744,10 @@ const SuperCheckerPage = () => {
userAnnotation.result.length > 0
? [userAnnotation]
: annotations.filter(
- (annotation) =>
- annotation.id === userAnnotation.parent_annotation &&
- annotation.annotation_type === 2,
- );
+ (annotation) =>
+ annotation.id === userAnnotation.parent_annotation &&
+ annotation.annotation_type === 2,
+ );
} else if (
["validated", "validated_with_changes", "draft"].includes(
userAnnotation.annotation_status,
@@ -813,68 +822,65 @@ const SuperCheckerPage = () => {
case "InstructionDrivenChat":
componentToRender = (
);
break;
- case "ModelInteractionEvaluation":
- componentToRender = (
-
- );
- break;
- case "MultipleInteractionEvaluation":
- componentToRender = (
-
+ );
+ break;
+ case "MultipleInteractionEvaluation":
+ componentToRender = (
+
- );
- break;
+ setCurrentInteraction={setCurrentInteraction}
+ currentInteraction={currentInteraction}
+ interactions={interactions}
+ setInteractions={setInteractions}
+ forms={forms}
+ setForms={setForms}
+ stage={"SuperChecker"}
+ notes={superCheckerNotesRef}
+ answered={answered}
+ setAnswered={setAnswered}
+ annotation={annotations}
+ setLoading={setLoading}
+ loading={loading}
+ />
+ );
+ break;
default:
componentToRender = null;
break;
@@ -979,44 +985,44 @@ const SuperCheckerPage = () => {
placeholder="Superchecker Notes"
>
-
+
{ProjectDetails.revision_loop_count >
- taskData?.revision_loop_count?.super_check_count
+ taskData?.revision_loop_count?.super_check_count
? false
: true && (
-