diff --git a/web/src/app/chat/shared_chat_search/FixedLogo.tsx b/web/src/app/chat/shared_chat_search/FixedLogo.tsx index c5114ca3e..2961db9df 100644 --- a/web/src/app/chat/shared_chat_search/FixedLogo.tsx +++ b/web/src/app/chat/shared_chat_search/FixedLogo.tsx @@ -21,7 +21,7 @@ export default function FixedLogo() { } className="fixed cursor-pointer flex z-40 left-2.5 top-2" > -
+
diff --git a/web/src/components/search/SearchBar.tsx b/web/src/components/search/SearchBar.tsx index 6f3831b4f..d268367bd 100644 --- a/web/src/components/search/SearchBar.tsx +++ b/web/src/components/search/SearchBar.tsx @@ -178,9 +178,11 @@ export const FullSearchBar = ({ suppressContentEditableWarning={true} />
-
+
{(ccPairs.length > 0 || documentSets.length > 0) && ( )}
-
+
{toggleAgentic && ( )} diff --git a/web/src/components/search/filtering/Filters.tsx b/web/src/components/search/filtering/Filters.tsx index 30391e3c0..46f3e7915 100644 --- a/web/src/components/search/filtering/Filters.tsx +++ b/web/src/components/search/filtering/Filters.tsx @@ -99,7 +99,7 @@ export function SourceSelector({

Filters

@@ -423,97 +423,92 @@ export function HorizontalSourceSelector({ }; return ( -
-
-
- -
+
+
+ +
- {existingSources.length > 0 && ( - existingSources.includes(source.internalName)) - .map((source) => ({ - key: source.internalName, - display: ( - <> - - {source.displayName} - - ), - }))} - selected={selectedSources.map((source) => source.internalName)} - handleSelect={(option) => - handleSourceSelect( - listSourceMetadata().find((s) => s.internalName === option.key)! - ) - } - icon={} - defaultDisplay="Sources" - width="w-fit ellipsis truncate" - resetValues={resetSources} - dropdownWidth="w-40" - optionClassName="truncate w-full break-all ellipsis" - /> - )} - - {availableDocumentSets.length > 0 && ( - ({ - key: documentSet.name, - display: <>{documentSet.name}, - }))} - selected={selectedDocumentSets} - handleSelect={(option) => handleDocumentSetSelect(option.key)} - icon={} - defaultDisplay="Sets" - resetValues={resetDocuments} - width="w-fit max-w-24 ellipsis truncate" - dropdownWidth="max-w-36 w-fit" - optionClassName="truncate break-all ellipsis" - /> - )} - - {availableTags.length > 0 && ( - ({ - key: `${tag.tag_key}=${tag.tag_value}`, + {existingSources.length > 0 && ( + existingSources.includes(source.internalName)) + .map((source) => ({ + key: source.internalName, display: ( - - {tag.tag_key} - = - {tag.tag_value} - + <> + + {source.displayName} + ), }))} - selected={selectedTags.map( - (tag) => `${tag.tag_key}=${tag.tag_value}` - )} - handleSelect={(option) => { - const [tag_key, tag_value] = option.key.split("="); - const selectedTag = availableTags.find( - (tag) => tag.tag_key === tag_key && tag.tag_value === tag_value - ); - if (selectedTag) { - handleTagSelect(selectedTag); - } - }} - icon={} - defaultDisplay="Tags" - resetValues={resetTags} - width="w-fit max-w-24 ellipsis truncate" - dropdownWidth="max-w-80 w-fit" - optionClassName="truncate break-all ellipsis" - /> - )} -
+ selected={selectedSources.map((source) => source.internalName)} + handleSelect={(option) => + handleSourceSelect( + listSourceMetadata().find((s) => s.internalName === option.key)! + ) + } + icon={} + defaultDisplay="Sources" + width="w-fit ellipsis truncate" + resetValues={resetSources} + dropdownWidth="w-40" + optionClassName="truncate w-full break-all ellipsis" + /> + )} + + {availableDocumentSets.length > 0 && ( + ({ + key: documentSet.name, + display: <>{documentSet.name}, + }))} + selected={selectedDocumentSets} + handleSelect={(option) => handleDocumentSetSelect(option.key)} + icon={} + defaultDisplay="Sets" + resetValues={resetDocuments} + width="w-fit max-w-24 ellipsis truncate" + dropdownWidth="max-w-36 w-fit" + optionClassName="truncate break-all ellipsis" + /> + )} + + {availableTags.length > 0 && ( + ({ + key: `${tag.tag_key}=${tag.tag_value}`, + display: ( + + {tag.tag_key} + = + {tag.tag_value} + + ), + }))} + selected={selectedTags.map( + (tag) => `${tag.tag_key}=${tag.tag_value}` + )} + handleSelect={(option) => { + const [tag_key, tag_value] = option.key.split("="); + const selectedTag = availableTags.find( + (tag) => tag.tag_key === tag_key && tag.tag_value === tag_value + ); + if (selectedTag) { + handleTagSelect(selectedTag); + } + }} + icon={} + defaultDisplay="Tags" + resetValues={resetTags} + width="w-fit max-w-24 ellipsis truncate" + dropdownWidth="max-w-80 w-fit" + optionClassName="truncate break-all ellipsis" + /> + )}
); }