RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix(files): make only folder names clickable in the file list (#21394)
chanx4fe7ef1b05ec
diff --git a/web/src/pages/files/files-table.tsx b/web/src/pages/files/files-table.tsxindex 2d1c2b97ba..7813d56f3c 100644--- a/web/src/pages/files/files-table.tsx+++ b/web/src/pages/files/files-table.tsx@@ -36,6 +36,7 @@ import {import { UseRowSelectionType } from '@/hooks/logic-hooks/use-row-selection';import { useFetchFileList } from '@/hooks/use-file-request';import { IFile } from '@/interfaces/database/file-manager';+import { cn } from '@/lib/utils';import { formatFileSize } from '@/utils/common-util';import { formatDate } from '@/utils/date';import { pick } from 'lodash';@@ -183,8 +184,13 @@ export function FilesTable({<TooltipTrigger asChild><Buttonvariant="static"- onClick={handleNameClick}- className="max-w-full p-0 flex justify-start gap-2 text-text-primary"+ onClick={isFolder ? handleNameClick : undefined}+ className={cn(+ 'max-w-full p-0 flex justify-start gap-2 text-text-primary',+ // Only folders navigate; files are inert, so drop the pointer+ // affordance to make that distinction visible.+ isFolder ? 'cursor-pointer' : 'cursor-default',+ )}><FileIcon name={name} type={isSkillsFolder ? 'skills' : type} />