fix(knowledge): document tag filter matches case-insensitively and by calendar day by waleedlatif1 · Pull Request #5221 · simstudioai/sim · GitHub
Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/sim/app/api/knowledge/[id]/documents/route.ts
10 changes: 5 additions & 5 deletions apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ export function KnowledgeBase({
setSelectedDocuments(new Set())
setIsSelectAllMode(false)
}}
className='-mr-1 h-auto px-1 py-0.5 text-[var(--text-muted)] text-xs hover-hover:text-[var(--text-secondary)]'
className='-mr-1 h-auto px-1 py-0.5 text-[var(--text-muted)] text-caption hover-hover:text-[var(--text-secondary)]'
>
Clear
</Button>
Expand Down Expand Up @@ -1499,7 +1499,7 @@ function TagFilterValueControl({ entry, onChange }: TagFilterValueControlProps)
fullWidth
flush
/>
<span className='flex-shrink-0 text-[var(--text-muted)] text-xs'>to</span>
<span className='flex-shrink-0 text-[var(--text-muted)] text-caption'>to</span>
<ChipDatePicker
value={entry.valueTo || undefined}
onChange={(value) => onChange({ valueTo: value })}
Expand Down Expand Up @@ -1530,7 +1530,7 @@ function TagFilterValueControl({ entry, onChange }: TagFilterValueControlProps)
onChange={(event) => onChange({ value: event.target.value })}
placeholder='From'
/>
<span className='flex-shrink-0 text-[var(--text-muted)] text-xs'>to</span>
<span className='flex-shrink-0 text-[var(--text-muted)] text-caption'>to</span>
<ChipInput
value={entry.valueTo}
onChange={(event) => onChange({ valueTo: event.target.value })}
Expand Down Expand Up @@ -1625,7 +1625,7 @@ function TagFilterSection({ tagDefinitions, entries, onChange }: TagFilterSectio
{activeCount > 0 && (
<Button
variant='ghost'
className='-mr-1 h-auto px-1 py-0.5 text-[var(--text-muted)] text-xs hover-hover:text-[var(--text-secondary)]'
className='-mr-1 h-auto px-1 py-0.5 text-[var(--text-muted)] text-caption hover-hover:text-[var(--text-secondary)]'
onClick={() => onChange([])}
>
Clear all
Expand All @@ -1648,7 +1648,7 @@ function TagFilterSection({ tagDefinitions, entries, onChange }: TagFilterSectio
<div key={entry.id} className='flex flex-col gap-2'>
{index > 0 && (
<div className='flex items-center gap-2'>
<span className='shrink-0 text-[var(--text-muted)] text-xs leading-none'>
<span className='shrink-0 text-[var(--text-muted)] text-caption leading-none'>
and
</span>
<div className='h-px flex-1 bg-[var(--border-1)]' />
Expand Down
160 changes: 5 additions & 155 deletions apps/sim/lib/knowledge/documents/service.ts
Loading
Loading