mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 20:38:32 +02:00
revert to previous doc select logic (#3217)
* revert to previous doc select logic * k
This commit is contained in:
@@ -2461,7 +2461,6 @@ export function ChatPage({
|
|||||||
textAreaRef={textAreaRef}
|
textAreaRef={textAreaRef}
|
||||||
chatSessionId={chatSessionIdRef.current!}
|
chatSessionId={chatSessionIdRef.current!}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{enterpriseSettings &&
|
{enterpriseSettings &&
|
||||||
enterpriseSettings.custom_lower_disclaimer_content && (
|
enterpriseSettings.custom_lower_disclaimer_content && (
|
||||||
<div className="mobile:hidden mt-4 flex items-center justify-center relative w-[95%] mx-auto">
|
<div className="mobile:hidden mt-4 flex items-center justify-center relative w-[95%] mx-auto">
|
||||||
@@ -2474,7 +2473,6 @@ export function ChatPage({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{enterpriseSettings &&
|
{enterpriseSettings &&
|
||||||
enterpriseSettings.use_custom_logotype && (
|
enterpriseSettings.use_custom_logotype && (
|
||||||
<div className="hidden lg:block absolute right-0 bottom-0">
|
<div className="hidden lg:block absolute right-0 bottom-0">
|
||||||
|
@@ -75,7 +75,8 @@ export const DocumentSidebar = forwardRef<HTMLDivElement, DocumentSidebarProps>(
|
|||||||
<div className="pb-6 flex-initial overflow-y-hidden flex flex-col h-screen">
|
<div className="pb-6 flex-initial overflow-y-hidden flex flex-col h-screen">
|
||||||
{popup}
|
{popup}
|
||||||
<div className="pl-3 mx-2 pr-6 mt-3 flex text-text-800 flex-col text-2xl text-emphasis flex font-semibold">
|
<div className="pl-3 mx-2 pr-6 mt-3 flex text-text-800 flex-col text-2xl text-emphasis flex font-semibold">
|
||||||
{dedupedDocuments.length} Documents
|
{dedupedDocuments.length} Document
|
||||||
|
{dedupedDocuments.length > 1 ? "s" : ""}
|
||||||
<p className="text-sm font-semibold flex flex-wrap gap-x-2 text-text-600 mt-1">
|
<p className="text-sm font-semibold flex flex-wrap gap-x-2 text-text-600 mt-1">
|
||||||
Select to add to continuous context
|
Select to add to continuous context
|
||||||
<a
|
<a
|
||||||
|
@@ -482,9 +482,10 @@ export const AIMessage = ({
|
|||||||
))}
|
))}
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (toggleDocumentSelection) {
|
if (messageId) {
|
||||||
toggleDocumentSelection();
|
onMessageSelection?.(messageId);
|
||||||
}
|
}
|
||||||
|
toggleDocumentSelection?.();
|
||||||
}}
|
}}
|
||||||
key={-1}
|
key={-1}
|
||||||
className="cursor-pointer w-[200px] rounded-lg flex-none transition-all duration-500 hover:bg-background-125 bg-text-100 px-4 py-2 border-b"
|
className="cursor-pointer w-[200px] rounded-lg flex-none transition-all duration-500 hover:bg-background-125 bg-text-100 px-4 py-2 border-b"
|
||||||
|
Reference in New Issue
Block a user