Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d445b9c

Browse filesBrowse files
authored
v0.6.63: knowledgebase UI, folder search in mothership
2 parents 2aaf2b7 + 1a76a22 commit d445b9c
Copy full SHA for d445b9c

4 files changed

+11-12Lines changed: 11 additions & 12 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/plus-menu-dropdown.tsx‎

Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/plus-menu-dropdown.tsx
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,12 @@ export const PlusMenuDropdown = React.memo(
8080
const q = rawQuery.toLowerCase().trim()
8181
// In mention mode always render a flat filtered list — empty query = show everything.
8282
if (!isMention && !q) return null
83-
// Folders organize resources but aren't a valid mention/insertable target — drop them
84-
// from the flat list (matches the nested rendering, which also excludes them).
85-
const flatGroups = availableResources.filter(({ type }) => type !== 'folder')
8683
if (isMention && !q) {
87-
return flatGroups.flatMap(({ type, items }) => items.map((item) => ({ type, item })))
84+
return availableResources.flatMap(({ type, items }) =>
85+
items.map((item) => ({ type, item }))
86+
)
8887
}
89-
return flatGroups.flatMap(({ type, items }) =>
88+
return availableResources.flatMap(({ type, items }) =>
9089
items.filter((item) => item.name.toLowerCase().includes(q)).map((item) => ({ type, item }))
9190
)
9291
}, [isMention, mentionQuery, search, availableResources])
Collapse file

‎apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx‎

Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ const DOCUMENTS_PER_PAGE = 50
8484

8585
const DOCUMENT_COLUMNS: ResourceColumn[] = [
8686
{ id: 'name', header: 'Name' },
87-
{ id: 'size', header: 'Size' },
88-
{ id: 'tokens', header: 'Tokens' },
89-
{ id: 'chunks', header: 'Chunks' },
90-
{ id: 'uploaded', header: 'Uploaded' },
91-
{ id: 'status', header: 'Status' },
87+
{ id: 'size', header: 'Size', widthMultiplier: 0.625 },
88+
{ id: 'tokens', header: 'Tokens', widthMultiplier: 0.625 },
89+
{ id: 'chunks', header: 'Chunks', widthMultiplier: 0.5 },
90+
{ id: 'uploaded', header: 'Uploaded', widthMultiplier: 0.75 },
91+
{ id: 'status', header: 'Status', widthMultiplier: 0.875 },
9292
{ id: 'tags', header: 'Tags' },
9393
]
9494

Collapse file

‎apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx‎

Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/folder-item/folder-item.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ export function FolderItem({
554554
</span>
555555
{folder.locked && (
556556
<Lock
557-
className='h-[12px] w-[12px] flex-shrink-0 pointer-events-none text-[var(--text-icon)]'
557+
className='pointer-events-none h-[12px] w-[12px] flex-shrink-0 text-[var(--text-icon)]'
558558
aria-label='Folder is locked'
559559
/>
560560
)}
Collapse file

‎apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx‎

Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export function WorkflowItem({
470470
)}
471471
{!isEditing && workflow.locked && (
472472
<Lock
473-
className='h-[12px] w-[12px] flex-shrink-0 pointer-events-none text-[var(--text-icon)]'
473+
className='pointer-events-none h-[12px] w-[12px] flex-shrink-0 text-[var(--text-icon)]'
474474
aria-label='Workflow is locked'
475475
/>
476476
)}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.