From fc244419be6f965878d23d112ce8400e990f8b0c Mon Sep 17 00:00:00 2001 From: mukimovd <41473651-mukimovd@users.noreply.replit.com> Date: Thu, 1 May 2025 03:21:57 +0000 Subject: [PATCH] Improve how literary works are displayed and add annotation support Refactors EnhancedReadingView to handle optional tags, updates apiRequest to return a generic type, and introduces the Annotation type. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cbacfb18-842a-4116-a907-18c0105ad8ec Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/39b5c689-6e8a-4d5a-9792-69cc81a56534/87f6d858-e481-4210-ae2d-1b5aa7299a3e.jpg --- .../src/components/reading/EnhancedReadingView.tsx | 6 +++--- client/src/lib/queryClient.ts | 6 +++--- client/src/lib/types.ts | 14 ++++++++++++++ client/src/pages/collections/CreateCollection.tsx | 2 +- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/client/src/components/reading/EnhancedReadingView.tsx b/client/src/components/reading/EnhancedReadingView.tsx index c9203e8..3b23b89 100644 --- a/client/src/components/reading/EnhancedReadingView.tsx +++ b/client/src/components/reading/EnhancedReadingView.tsx @@ -246,11 +246,11 @@ export function EnhancedReadingView({ work, translations }: EnhancedReadingViewP
Written in {work.year}
)}- {work.type} • {work.language} • {work.tags.length} tags + {work.type} • {work.language} • {work.tags?.length || 0} tags