[PR #723] [CLOSED] feat : Document Thumbnails #1139

Closed
opened 2026-02-26 19:32:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/723
Author: @kritarth2121
Created: 12/3/2023
Status: Closed

Base: mainHead: documnet-thumbnail


📝 Commits (5)

  • 4718334 feat: feat
  • c589a0f feat: high and low quality upload
  • 946a03c feat: fixed small issue 🐛
  • df5c26e fix: fixing in data-table-image so that it doesn't even break for older documnets
  • 338a041 fix: removed unused imports

📊 Changes

12 files changed (+255 additions, -41 deletions)

View changed files

apps/web/src/app/(dashboard)/documents/data-table-image.tsx (+48 -0)
📝 apps/web/src/app/(dashboard)/documents/data-table-title.tsx (+25 -15)
📝 apps/web/src/app/(dashboard)/documents/data-table.tsx (+2 -1)
📝 apps/web/src/app/(dashboard)/documents/upload-document.tsx (+87 -6)
packages/lib/server-only/document-thumbnail/create-document-thumbnail.ts (+20 -0)
📝 packages/lib/server-only/document/create-document.ts (+8 -1)
📝 packages/lib/server-only/document/find-documents.ts (+1 -0)
packages/prisma/migrations/20231203132424_added_thumbnail_images/migration.sql (+25 -0)
📝 packages/prisma/schema.prisma (+26 -14)
📝 packages/trpc/server/document-router/router.ts (+2 -1)
📝 packages/trpc/server/document-router/schema.ts (+1 -0)
📝 packages/ui/primitives/pdf-viewer.tsx (+10 -3)

📄 Description

Added feature for both high and low quality
On clicking of thumbnail, a more detailed preview open.
Generate a thumbnail on the client side
Created a separate table for DocumentThumbnail
Screenshot 2023-12-03 214754
Screenshot 2023-12-03 214803

Close #704


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/723 **Author:** [@kritarth2121](https://github.com/kritarth2121) **Created:** 12/3/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `documnet-thumbnail` --- ### 📝 Commits (5) - [`4718334`](https://github.com/documenso/documenso/commit/47183348f14ec3366826ddb670df84c38a141ee1) feat: feat - [`c589a0f`](https://github.com/documenso/documenso/commit/c589a0ff79ca57836ea9ca73cd8ce097ed04ba5b) feat: high and low quality upload - [`946a03c`](https://github.com/documenso/documenso/commit/946a03cf4e29f27ed7f3dd6d8ceafa8c833163fd) feat: fixed small issue :bug: - [`df5c26e`](https://github.com/documenso/documenso/commit/df5c26ea34713f2ada2e95a4fd4fe92c4ee82421) fix: fixing in data-table-image so that it doesn't even break for older documnets - [`338a041`](https://github.com/documenso/documenso/commit/338a041a977841f8e76f95346ad2f3de822b16e0) fix: removed unused imports ### 📊 Changes **12 files changed** (+255 additions, -41 deletions) <details> <summary>View changed files</summary> ➕ `apps/web/src/app/(dashboard)/documents/data-table-image.tsx` (+48 -0) 📝 `apps/web/src/app/(dashboard)/documents/data-table-title.tsx` (+25 -15) 📝 `apps/web/src/app/(dashboard)/documents/data-table.tsx` (+2 -1) 📝 `apps/web/src/app/(dashboard)/documents/upload-document.tsx` (+87 -6) ➕ `packages/lib/server-only/document-thumbnail/create-document-thumbnail.ts` (+20 -0) 📝 `packages/lib/server-only/document/create-document.ts` (+8 -1) 📝 `packages/lib/server-only/document/find-documents.ts` (+1 -0) ➕ `packages/prisma/migrations/20231203132424_added_thumbnail_images/migration.sql` (+25 -0) 📝 `packages/prisma/schema.prisma` (+26 -14) 📝 `packages/trpc/server/document-router/router.ts` (+2 -1) 📝 `packages/trpc/server/document-router/schema.ts` (+1 -0) 📝 `packages/ui/primitives/pdf-viewer.tsx` (+10 -3) </details> ### 📄 Description Added feature for both high and low quality On clicking of thumbnail, a more detailed preview open. Generate a thumbnail on the client side Created a separate table for DocumentThumbnail ![Screenshot 2023-12-03 214754](https://github.com/documenso/documenso/assets/44065192/4d5b84cc-9011-42fb-90f2-193dd7f6d9d1) ![Screenshot 2023-12-03 214803](https://github.com/documenso/documenso/assets/44065192/60dca92a-7152-46c9-b32f-3a095d195578) Close #704 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:32:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1139
No description provided.