Fix SlackBot Page Bugs (#3354)

This commit is contained in:
Yuhong Sun
2024-12-05 13:17:04 -08:00
committed by GitHub
parent 14772dee71
commit c50cd20156
2 changed files with 10 additions and 10 deletions

View File

@@ -276,13 +276,7 @@ export const SlackChannelConfigCreationForm = ({
{showAdvancedOptions && ( {showAdvancedOptions && (
<div className="mt-4"> <div className="mt-4">
<BooleanFormField <div className="w-64 mb-4">
name="show_continue_in_web_ui"
removeIndent
label="Show Continue in Web UI button"
tooltip="If set, will show a button at the bottom of the response that allows the user to continue the conversation in the Danswer Web UI"
/>
<div className="w-64 mb-4 mt-4">
<SelectorFormField <SelectorFormField
name="response_type" name="response_type"
label="Answer Type" label="Answer Type"
@@ -294,6 +288,12 @@ export const SlackChannelConfigCreationForm = ({
/> />
</div> </div>
<BooleanFormField
name="show_continue_in_web_ui"
removeIndent
label="Show Continue in Web UI button"
tooltip="If set, will show a button at the bottom of the response that allows the user to continue the conversation in the Danswer Web UI"
/>
<div className="flex flex-col space-y-3 mt-2"> <div className="flex flex-col space-y-3 mt-2">
<BooleanFormField <BooleanFormField
name="still_need_help_enabled" name="still_need_help_enabled"
@@ -325,8 +325,8 @@ export const SlackChannelConfigCreationForm = ({
<BooleanFormField <BooleanFormField
name="answer_validity_check_enabled" name="answer_validity_check_enabled"
removeIndent removeIndent
label="Hide Non-Answers" label="Only respond if citations found"
tooltip="If set, will only answer questions that the model determines it can answer" tooltip="If set, will only answer questions where the model successfully produces citations"
/> />
<BooleanFormField <BooleanFormField
name="questionmark_prefilter_enabled" name="questionmark_prefilter_enabled"

View File

@@ -109,7 +109,7 @@ export function ToolTipDetails({
return ( return (
<TooltipProvider> <TooltipProvider>
<Tooltip> <Tooltip>
<TooltipTrigger> <TooltipTrigger type="button">
<FiInfo size={12} /> <FiInfo size={12} />
</TooltipTrigger> </TooltipTrigger>
<TooltipContent side="top" align="center"> <TooltipContent side="top" align="center">