From c6df32fbe6da62f27004d0b0f2bd77ab27959a01 Mon Sep 17 00:00:00 2001 From: pitoi Date: Thu, 17 Sep 2026 01:35:00 +0000 Subject: [PATCH] Generated with Hive: Update arXiv content-type mapping to Document and revise related tests and labels --- src/lib/__tests__/add-content-modal.test.tsx | 2 +- src/lib/graph-api.ts | 2 +- src/lib/source-detection.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/__tests__/add-content-modal.test.tsx b/src/lib/__tests__/add-content-modal.test.tsx index e057f4f..4b15c9d 100644 --- a/src/lib/__tests__/add-content-modal.test.tsx +++ b/src/lib/__tests__/add-content-modal.test.tsx @@ -142,7 +142,7 @@ vi.mock("@/lib/graph-api", () => ({ audio_video: "Episode", document: "Document", webpage: "Document", - arxiv_paper: "ArxivPaper", + arxiv_paper: "Document", tweet: "Tweet", legal_document: "LegalDocument", }, diff --git a/src/lib/graph-api.ts b/src/lib/graph-api.ts index 6320a6e..8b51a58 100644 --- a/src/lib/graph-api.ts +++ b/src/lib/graph-api.ts @@ -627,7 +627,7 @@ export const CONTENT_TYPE_TO_NODE_TYPE: Record = { audio_video: "Episode", document: "Document", webpage: "Document", - arxiv_paper: "ArxivPaper", + arxiv_paper: "Document", tweet: "Tweet", legal_document: "LegalDocument", } diff --git a/src/lib/source-detection.ts b/src/lib/source-detection.ts index 23971f1..5ffc97e 100644 --- a/src/lib/source-detection.ts +++ b/src/lib/source-detection.ts @@ -108,7 +108,7 @@ export const SOURCE_TYPE_LABELS: Record = { [SOURCE_TYPES.WEB_PAGE]: "Web Page", [SOURCE_TYPES.DOCUMENT]: "Document", [SOURCE_TYPES.LINK]: "Link", - [SOURCE_TYPES.ARXIV_PAPER]: "arXiv Paper", + [SOURCE_TYPES.ARXIV_PAPER]: "Research Paper", } const SUBSCRIPTION_TYPES: string[] = [