Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarika-padmanaban committed Nov 18, 2024
1 parent 42b2f53 commit a1a6b96
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/app/ui/pages/chat/SuperCheckerPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,29 @@ const SuperCheckerPage = () => {
placeholder="Superchecker Notes"
></ReactQuill>
</div>
<Button
variant="contained"
style={{
marginLeft: "10px",
backgroundColor: "lightgrey",
color: "black",
}}
endIcon={
showGlossary ? <ArrowRightIcon /> : <ArrowDropDownIcon />
}
onClick={handleGlossaryClick}
disabled
>
Glossary
</Button>
<div
style={{
display: showGlossary ? "block" : "none",
paddingBottom: "16px",
}}
>
{/* <Glossary taskData={taskData} /> */}
</div>
{ProjectDetails.revision_loop_count >
taskData?.revision_loop_count?.super_check_count
? false
Expand Down Expand Up @@ -1071,15 +1094,18 @@ const SuperCheckerPage = () => {
)}
</Grid>
<Grid item>
{ProjectDetails.project_type == "InstructionDrivenChat"?(<Grid item>
{!disableSkip && taskData?.super_check_user === userData?.id && (
<Tooltip title="clear the entire chat history">
<Button
value="Clear Chats"
type="default"
variant="outlined"
onClick={() =>
handleSuperCheckerClick("delete", SuperChecker.id, SuperChecker.lead_time)
handleSuperCheckerClick(
"delete",
SuperChecker.id,
SuperChecker.lead_time,
)
}
style={{
minWidth: "150px",
Expand All @@ -1096,33 +1122,7 @@ const SuperCheckerPage = () => {
</Button>
</Tooltip>
)}
</Grid>):((<Grid item>
{!disableSkip && taskData?.super_check_user === userData?.id && (
<Tooltip title="Reset the entire chat history">
<Button
value="Reset All"
type="default"
variant="outlined"
onClick={() =>
handleSuperCheckerClick("delete", SuperChecker.id, SuperChecker.lead_time)
}
style={{
minWidth: "150px",
color: "black",
borderRadius: "5px",
border: "0px",
pt: 2,
pb: 2,
backgroundColor: "#ffe0b2",
}}
// className="lsf-button"
>
Reset All
</Button>
</Tooltip>
)}
</Grid>))}

</Grid>
<Grid item>
{taskData?.super_check_user === userData?.id && (
<Tooltip title="Reject">
Expand Down

0 comments on commit a1a6b96

Please sign in to comment.