Skip to content

Commit 4e12dcc

Browse files
committed
fix(knowledge): pluralize the module header and root breadcrumb
1 parent 4bafd14 commit 4e12dcc

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/document.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export function Document({
510510
() =>
511511
combinedError
512512
? [
513-
{ label: 'Knowledge Base', icon: Database, onClick: handleNavToKB },
513+
{ label: 'Knowledge bases', icon: Database, onClick: handleNavToKB },
514514
{
515515
label: knowledgeBaseCrumbLabel,
516516
icon: Database,
@@ -519,7 +519,7 @@ export function Document({
519519
{ label: 'Error' },
520520
]
521521
: [
522-
{ label: 'Knowledge Base', icon: Database, onClick: handleNavToKB },
522+
{ label: 'Knowledge bases', icon: Database, onClick: handleNavToKB },
523523
{
524524
label: knowledgeBaseCrumbLabel,
525525
icon: Database,
@@ -989,7 +989,7 @@ export function Document({
989989

990990
const editorBreadcrumbBase = useMemo<BreadcrumbItem[]>(
991991
() => [
992-
{ label: 'Knowledge Base', icon: Database, onClick: handleNavToKB },
992+
{ label: 'Knowledge bases', icon: Database, onClick: handleNavToKB },
993993
{
994994
label: knowledgeBaseCrumbLabel,
995995
icon: Database,
@@ -1022,7 +1022,7 @@ export function Document({
10221022

10231023
const loadingBreadcrumbs = useMemo<BreadcrumbItem[]>(
10241024
() => [
1025-
{ label: 'Knowledge Base', icon: Database, onClick: handleNavToKB },
1025+
{ label: 'Knowledge bases', icon: Database, onClick: handleNavToKB },
10261026
{
10271027
label: knowledgeBaseCrumbLabel,
10281028
icon: Database,

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const COLUMNS = [
1919
const ACTIONS: ChromeActionSpec[] = [{ text: 'New chunk', icon: Plus, variant: 'primary' }]
2020

2121
const BREADCRUMBS: BreadcrumbItem[] = [
22-
{ label: 'Knowledge Base', icon: Database, onClick: noop },
22+
{ label: 'Knowledge bases', icon: Database, onClick: noop },
2323
{ label: '…', icon: Database },
2424
{ label: '…', terminal: true },
2525
]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export function KnowledgeBase({
444444
/**
445445
* Breadcrumb leaf label. Falls back to the canonical '…' placeholder while
446446
* the name loads (mirroring loading.tsx) instead of duplicating the root
447-
* "Knowledge Base" crumb.
447+
* "Knowledge bases" crumb.
448448
*/
449449
const knowledgeBaseCrumbLabel = knowledgeBase?.name || passedKnowledgeBaseName || '…'
450450
const error = knowledgeBaseError || documentsError
@@ -872,7 +872,7 @@ export function KnowledgeBase({
872872

873873
const breadcrumbs: BreadcrumbItem[] = [
874874
{
875-
label: 'Knowledge Base',
875+
label: 'Knowledge bases',
876876
icon: Database,
877877
onClick: () => router.push(`/workspace/${workspaceId}/knowledge`),
878878
},
@@ -1182,7 +1182,7 @@ export function KnowledgeBase({
11821182
<Resource onContextMenu={handleEmptyContextMenu}>
11831183
<Resource.Header
11841184
icon={Database}
1185-
title='Knowledge Base'
1185+
title='Knowledge bases'
11861186
breadcrumbs={breadcrumbs}
11871187
actions={[
11881188
...headerActions,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ACTIONS: ChromeActionSpec[] = [
2525
]
2626

2727
const BREADCRUMBS: BreadcrumbItem[] = [
28-
{ label: 'Knowledge Base', icon: Database, onClick: noop },
28+
{ label: 'Knowledge bases', icon: Database, onClick: noop },
2929
{ label: '…', icon: Database, terminal: true },
3030
]
3131

apps/sim/app/workspace/[workspaceId]/knowledge/knowledge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const CONTENT_FILTER_OPTIONS: ChipDropdownOption[] = [
110110

111111
const FILTER_SECTION_LABEL_CLASS = 'text-[var(--text-muted)] text-small'
112112

113-
const ROOT_BREADCRUMB_LABEL = 'Knowledge Base'
113+
const ROOT_BREADCRUMB_LABEL = 'Knowledge bases'
114114
const FOLDER_RESOURCE_TYPE = 'knowledge_base' as const
115115

116116
function connectorCell(connectorTypes?: string[]): ResourceCell {

apps/sim/app/workspace/[workspaceId]/knowledge/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function KnowledgeLoading() {
2626
return (
2727
<ResourceChromeFallback
2828
icon={Database}
29-
title='Knowledge Base'
29+
title='Knowledge bases'
3030
columns={COLUMNS}
3131
actions={ACTIONS}
3232
searchPlaceholder='Search knowledge bases...'

apps/sim/app/workspace/[workspaceId]/knowledge/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import KnowledgeLoading from '@/app/workspace/[workspaceId]/knowledge/loading'
77
import { prefetchKnowledgeBases } from '@/app/workspace/[workspaceId]/knowledge/prefetch'
88

99
export const metadata: Metadata = {
10-
title: 'Knowledge Base',
10+
title: 'Knowledge bases',
1111
}
1212

1313
/**

0 commit comments

Comments
 (0)