-
-
-
+
+
+
+
- {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"
+ />
+ )}