Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #174

Merged
merged 1 commit into from
Nov 18, 2024
Merged

merge #174

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading