diff --git a/webui/src/lib/components/repository/ObjectsDiff.jsx b/webui/src/lib/components/repository/ObjectsDiff.jsx index 63dc60810f1..f17060185f9 100644 --- a/webui/src/lib/components/repository/ObjectsDiff.jsx +++ b/webui/src/lib/components/repository/ObjectsDiff.jsx @@ -9,7 +9,7 @@ import {InfoIcon} from "@primer/octicons-react"; import {useStorageConfig} from "../../hooks/storageConfig"; const maxDiffSizeBytes = 120 << 10; -const supportedReadableFormats = ["txt", "text", "csv", "tsv", "yaml", "yml", "json"]; +const supportedReadableFormats = ["txt", "text", "csv", "tsv", "yaml", "yml", "json", "jsonl", "ndjson"]; export const ObjectsDiff = ({diffType, repoId, leftRef, rightRef, path}) => { const config = useStorageConfig(); diff --git a/webui/src/pages/repositories/repository/fileRenderers/index.tsx b/webui/src/pages/repositories/repository/fileRenderers/index.tsx index b6045faa8f6..e7f7b5deed1 100644 --- a/webui/src/pages/repositories/repository/fileRenderers/index.tsx +++ b/webui/src/pages/repositories/repository/fileRenderers/index.tsx @@ -141,6 +141,8 @@ export function guessType(contentType: string | null, fileExtension: string | nu case 'yaml': case 'yml': case 'json': + case 'jsonl': + case 'ndjson': return FileType.TEXT } if (guessLanguage(fileExtension, contentType))