diff --git a/web/features/new-rag/connected-source-setup.tsx b/web/features/new-rag/connected-source-setup.tsx index f78541bd08c..d243903c414 100644 --- a/web/features/new-rag/connected-source-setup.tsx +++ b/web/features/new-rag/connected-source-setup.tsx @@ -477,7 +477,7 @@ function ProviderSelector({ key={option.label} value={option.label} className={cn( - 'relative flex h-[30px] items-center justify-center gap-1.5 rounded-lg border border-divider-subtle px-3 system-xs-medium text-text-secondary outline-hidden', + 'relative flex h-7.5 items-center justify-center gap-1.5 rounded-lg border border-divider-subtle px-3 system-xs-medium text-text-secondary outline-hidden', 'hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid', 'data-checked:border-[1.5px] data-checked:border-components-option-card-option-selected-border data-checked:bg-components-option-card-option-selected-bg data-checked:text-text-primary', )} @@ -509,7 +509,7 @@ function ProviderBrandIcon({ return ( {icon.content} @@ -542,7 +542,7 @@ function OAuthConnectionCard({ provider: draft.provider, })} -

+

{draft.provider === 'Notion' ? t(($) => $['newKnowledge.notionNotConnectedDescription']) : t(($) => $['newKnowledge.providerCredentialRequiredDescription'], { @@ -684,8 +684,8 @@ function ResourceList({ const someSelected = selectableResources.some((item) => selected.has(item.key)) return ( -

-
+
+
$['newKnowledge.selectAll'])} aria-describedby={selectionLimitVisible && !allSelected ? selectionLimitId : undefined} @@ -736,7 +736,7 @@ function ResourceList({ return (
  • {t(($) => $['newKnowledge.syncPolicy'])} - + {t(($) => draft.syncPolicy === 'provider' ? $['newKnowledge.syncPolicyProvider'] @@ -1747,7 +1747,7 @@ function ResourceConfiguration({ {t(($) => $['newKnowledge.addSourceFailed'])}

    )} -
    +
    @@ -2136,7 +2136,7 @@ export function ConnectedSourceSetup({ !datasourceAuthQuery.isPending && !loadingConnections && } {!connection && ( -
    +
    diff --git a/web/features/new-rag/crawl-selection-form.tsx b/web/features/new-rag/crawl-selection-form.tsx index 4c0beddfd25..85ad849c668 100644 --- a/web/features/new-rag/crawl-selection-form.tsx +++ b/web/features/new-rag/crawl-selection-form.tsx @@ -566,7 +566,7 @@ function ReadyCrawlSelectionForm({ }} > {t(($) => $['newKnowledge.syncPolicy'])} - + {t(($) => syncMode === 'provider' ? $['newKnowledge.syncPolicyProvider'] diff --git a/web/features/new-rag/document-upload-form.tsx b/web/features/new-rag/document-upload-form.tsx index 8665a0d5ee3..e9eb39f090a 100644 --- a/web/features/new-rag/document-upload-form.tsx +++ b/web/features/new-rag/document-upload-form.tsx @@ -60,7 +60,7 @@ export function DocumentUploadForm({ return (
    { event.preventDefault() if (!validFiles.length || uploading) return @@ -95,7 +95,7 @@ export function DocumentUploadForm({ }} > - + {t(($) => $['newKnowledge.uploadDropZoneTitle'])} diff --git a/web/features/new-rag/knowledge-settings-page.tsx b/web/features/new-rag/knowledge-settings-page.tsx index 78e51ae5f5d..631f002880d 100644 --- a/web/features/new-rag/knowledge-settings-page.tsx +++ b/web/features/new-rag/knowledge-settings-page.tsx @@ -118,7 +118,7 @@ export function KnowledgeSettingsPage({ knowledgeSpaceId }: { knowledgeSpaceId:

    -
    +
    {isPending && } {!isPending && hasError && ( diff --git a/web/features/new-rag/overview/knowledge-overview-page.tsx b/web/features/new-rag/overview/knowledge-overview-page.tsx index 9e2aadbe9a8..43eefd4b875 100644 --- a/web/features/new-rag/overview/knowledge-overview-page.tsx +++ b/web/features/new-rag/overview/knowledge-overview-page.tsx @@ -145,7 +145,7 @@ function MetricCard({ return (
    @@ -161,12 +161,12 @@ function MetricCard({ )}
    {loading ? ( - + ) : (
    @@ -286,13 +286,13 @@ function QueryOutcomesChart({ if (error) return ( -
    +

    {t(($) => $['newKnowledge.overview.queryOutcomes'])}

    - +
    @@ -300,7 +300,7 @@ function QueryOutcomesChart({ if (empty) return ( -
    +

    {t(($) => $['newKnowledge.overview.queryOutcomes'])} @@ -313,7 +313,7 @@ function QueryOutcomesChart({

    - + $['newKnowledge.overview.noQueryData'])} @@ -324,7 +324,7 @@ function QueryOutcomesChart({ ) return ( -
    +

    {t(($) => $['newKnowledge.overview.queryOutcomes'])} @@ -337,9 +337,9 @@ function QueryOutcomesChart({

    - + {loading ? ( -
    +
    {[ ['outcome-1', 100], ['outcome-2', 100], @@ -399,7 +399,7 @@ function EmptyInline({

    {title}

    -

    {description}

    +

    {description}

    ) @@ -487,11 +487,11 @@ function HealthPanel({ if (error) return ( -
    +

    {t(($) => $['newKnowledge.overview.needsAttention'])}

    - +
    @@ -499,11 +499,11 @@ function HealthPanel({ if (empty) return ( -
    +

    {t(($) => $['newKnowledge.overview.needsAttention'])}

    - + +

    {t(($) => $['newKnowledge.overview.needsAttention'])}

    - + {loading ? ( -
    +
    {[ ['attention-1', 100], ['attention-2', 100], @@ -574,7 +574,7 @@ function HealthPanel({
  • ))} -
    +
    - + {loading ? ( -
    +
    {[ ['activity-1', 100], ['activity-2', 100], @@ -757,7 +755,7 @@ function RecentActivity({
    $['newKnowledge.overview.recentActivity'])} - className="min-w-[560px]" + className="min-w-140" >
    - +
    @@ -928,11 +926,11 @@ function ActivityDrawer({
    {[248, 300, 210, 280, 236, 264].map((width) => ( -
    +
    - +
    @@ -950,7 +948,7 @@ function ActivityDrawer({ {group.map((task) => (
  • S @@ -990,7 +988,7 @@ function ActivityDrawer({
  • ) : ( -
    +
    @@ -1076,11 +1074,11 @@ function InventoryPanel({ if (error) return ( -
    +

    {t(($) => $['newKnowledge.overview.inventory'])}

    - +
    @@ -1088,16 +1086,14 @@ function InventoryPanel({ if (empty) return ( -
    +

    {t(($) => $['newKnowledge.overview.inventory'])}

    {t(($) => $['newKnowledge.overview.inventory'])} - + {loading ? ( <> @@ -1190,7 +1186,7 @@ function InventoryPanel({ className="flex h-20 flex-col gap-1 rounded-lg bg-background-section p-3" >

    {item.label}

    -

    +

    {item.value}

    {item.detail}

    @@ -1227,7 +1223,7 @@ function Onboarding({ if (indexingTask) return ( -
    +

    {t(($) => $['newKnowledge.overview.indexing'])}

    @@ -1255,7 +1251,7 @@ function Onboarding({
    0 && 'md:h-[219px]', + actionCount > 0 && 'md:h-54.75', )} >
    @@ -1266,7 +1262,7 @@ function Onboarding({
    -
    +

    {t(($) => $['newKnowledge.overview.noSources'])}

    @@ -1279,7 +1275,7 @@ function Onboarding({ {canConnectSource && ( $['newKnowledge.overview.connectSource'])} - className="flex h-[105px] flex-col items-center justify-center rounded-[10px] border border-divider-regular bg-components-panel-on-panel-item-bg text-center outline-hidden transition-colors hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid" + className="flex h-26.25 flex-col items-center justify-center rounded-[10px] border border-divider-regular bg-components-panel-on-panel-item-bg text-center outline-hidden transition-colors hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid" href={newKnowledgeAddSourcePath(knowledgeSpaceId)} > @@ -1294,7 +1290,7 @@ function Onboarding({ {canUpload && ( $['newKnowledge.overview.uploadFiles'])} - className="flex h-[105px] flex-col items-center justify-center rounded-[10px] border border-divider-regular bg-components-panel-on-panel-item-bg text-center outline-hidden transition-colors hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid" + className="flex h-26.25 flex-col items-center justify-center rounded-[10px] border border-divider-regular bg-components-panel-on-panel-item-bg text-center outline-hidden transition-colors hover:bg-state-base-hover focus-visible:ring-2 focus-visible:ring-state-accent-solid" href={`${newKnowledgeDocumentsPath(knowledgeSpaceId)}?upload=1`} > @@ -1434,7 +1430,7 @@ export function KnowledgeOverviewPage({ knowledgeSpaceId }: { knowledgeSpaceId: return (
    -
    +

    {t(($) => $['newKnowledge.overviewTitle'])} @@ -1451,7 +1447,7 @@ export function KnowledgeOverviewPage({ knowledgeSpaceId }: { knowledgeSpaceId: {WINDOWS.map((value) => ( key={value} - className="h-[26px] px-3 system-xs-medium" + className="h-6.5 px-3 system-xs-medium" value={value} > {value === '24h' @@ -1557,7 +1553,7 @@ export function KnowledgeOverviewPage({ knowledgeSpaceId }: { knowledgeSpaceId:
    $['operation.close'])} - className="size-[26px] rounded-md" + className="size-6.5 rounded-md" />
    @@ -544,7 +544,7 @@ export function ProcessingTasksDrawer({

    {t(($) => $['newKnowledge.processDocument'], { name: title })}

    -

    +

    {t(($) => $[`newKnowledge.processingTaskState.${task.state}`], { progress: task.progressPercent, })} diff --git a/web/features/new-rag/quality/golden-question-dialog.tsx b/web/features/new-rag/quality/golden-question-dialog.tsx index fd69759b79b..cb36d165852 100644 --- a/web/features/new-rag/quality/golden-question-dialog.tsx +++ b/web/features/new-rag/quality/golden-question-dialog.tsx @@ -72,7 +72,7 @@ export function GoldenQuestionDialog({

    - +
    {title} @@ -88,7 +88,7 @@ export function GoldenQuestionDialog({