[PR #357] [MERGED] feat: universal upload #907

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/357
Author: @Mythie
Created: 9/7/2023
Status: Merged
Merged: 9/16/2023
Merged by: @Mythie

Base: feat/refreshHead: feat/universal-upload


📝 Commits (9)

  • a2ef946 feat: separate document data from document
  • ed4cbe9 Merge branch 'feat/refresh' into feat/universal-upload
  • 9014f01 feat: universal upload
  • d76ee7f Merge branch 'feat/refresh' into feat/universal-upload
  • 6c12ed4 fix: update migration for timestamp columns
  • 2356f58 fix: implement feedback
  • 425db8f fix: remove references to created column
  • 0d702e9 fix: remove further references to created column
  • 8be52e2 fix: final reference to created column

📊 Changes

54 files changed (+4373 additions, -2028 deletions)

View changed files

📝 .env.example (+14 -0)
📝 apps/marketing/next.config.js (+8 -1)
📝 apps/marketing/src/pages/api/stripe/webhook/index.ts (+40 -9)
📝 apps/web/next.config.js (+1 -1)
📝 apps/web/package.json (+0 -1)
apps/web/src/api/document/create/fetcher.ts (+0 -34)
apps/web/src/api/document/create/types.ts (+0 -19)
📝 apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx (+7 -6)
apps/web/src/app/(dashboard)/documents/[id]/loadable-pdf-card.tsx (+0 -20)
📝 apps/web/src/app/(dashboard)/documents/[id]/page.tsx (+10 -2)
📝 apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx (+20 -8)
📝 apps/web/src/app/(dashboard)/documents/data-table.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/documents/page.tsx (+1 -1)
📝 apps/web/src/app/(dashboard)/documents/upload-document.tsx (+23 -5)
📝 apps/web/src/app/(signing)/sign/[token]/complete/download-button.tsx (+36 -26)
📝 apps/web/src/app/(signing)/sign/[token]/complete/page.tsx (+9 -3)
📝 apps/web/src/app/(signing)/sign/[token]/page.tsx (+10 -5)
apps/web/src/pages/api/document/create.ts (+0 -88)
📝 apps/web/src/pages/api/feature-flag/get.ts (+1 -1)
📝 apps/web/src/pages/api/stripe/webhook/index.ts (+30 -7)

...and 34 more files

📄 Description

Implementation of a universal upload allowing for multiple storage backends
starting with database and s3.

Allows clients to put and retrieve files from either client or server using
a blend of client and server actions.

Summary by CodeRabbit

  • New Feature: Introduced a new model DocumentData to handle different types of document data storage, including S3 and base64-encoded data.
  • New Feature: Added support for file operations (create, read, update, delete) with different storage types.
  • New Feature: Enhanced the Documents page to handle different types of document data.
  • Refactor: Updated the database schema to include createdAt and updatedAt fields in the Document table.
  • Refactor: Replaced direct usage of nanoid with a custom ID generator function.
  • Chore: Adjusted environment variables for more flexible configuration of storage options.

🔄 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/357 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 9/7/2023 **Status:** ✅ Merged **Merged:** 9/16/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat/universal-upload` --- ### 📝 Commits (9) - [`a2ef946`](https://github.com/documenso/documenso/commit/a2ef9468aeb221e054c5f63823fee4b1a99b38a3) feat: separate document data from document - [`ed4cbe9`](https://github.com/documenso/documenso/commit/ed4cbe9fa667fb90c7be9d7bb5b3677b206eb789) Merge branch 'feat/refresh' into feat/universal-upload - [`9014f01`](https://github.com/documenso/documenso/commit/9014f012766cef710e4febe88896f381839b7722) feat: universal upload - [`d76ee7f`](https://github.com/documenso/documenso/commit/d76ee7f33c86b67880e8c46fdc2849276ba136de) Merge branch 'feat/refresh' into feat/universal-upload - [`6c12ed4`](https://github.com/documenso/documenso/commit/6c12ed4afc34ccb61756a75756c9f3315617626a) fix: update migration for timestamp columns - [`2356f58`](https://github.com/documenso/documenso/commit/2356f58e7b5c471432eb6e4d221d0f0f0de67b9a) fix: implement feedback - [`425db8f`](https://github.com/documenso/documenso/commit/425db8fc1fa146e87a8ab239234829dcb6817356) fix: remove references to created column - [`0d702e9`](https://github.com/documenso/documenso/commit/0d702e918947eb8357b242fb5569f0dea647abc9) fix: remove further references to created column - [`8be52e2`](https://github.com/documenso/documenso/commit/8be52e2fa3bddff4d052310c6541ac53a1e32554) fix: final reference to created column ### 📊 Changes **54 files changed** (+4373 additions, -2028 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+14 -0) 📝 `apps/marketing/next.config.js` (+8 -1) 📝 `apps/marketing/src/pages/api/stripe/webhook/index.ts` (+40 -9) 📝 `apps/web/next.config.js` (+1 -1) 📝 `apps/web/package.json` (+0 -1) ➖ `apps/web/src/api/document/create/fetcher.ts` (+0 -34) ➖ `apps/web/src/api/document/create/types.ts` (+0 -19) 📝 `apps/web/src/app/(dashboard)/documents/[id]/edit-document.tsx` (+7 -6) ➖ `apps/web/src/app/(dashboard)/documents/[id]/loadable-pdf-card.tsx` (+0 -20) 📝 `apps/web/src/app/(dashboard)/documents/[id]/page.tsx` (+10 -2) 📝 `apps/web/src/app/(dashboard)/documents/data-table-action-dropdown.tsx` (+20 -8) 📝 `apps/web/src/app/(dashboard)/documents/data-table.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/documents/page.tsx` (+1 -1) 📝 `apps/web/src/app/(dashboard)/documents/upload-document.tsx` (+23 -5) 📝 `apps/web/src/app/(signing)/sign/[token]/complete/download-button.tsx` (+36 -26) 📝 `apps/web/src/app/(signing)/sign/[token]/complete/page.tsx` (+9 -3) 📝 `apps/web/src/app/(signing)/sign/[token]/page.tsx` (+10 -5) ➖ `apps/web/src/pages/api/document/create.ts` (+0 -88) 📝 `apps/web/src/pages/api/feature-flag/get.ts` (+1 -1) 📝 `apps/web/src/pages/api/stripe/webhook/index.ts` (+30 -7) _...and 34 more files_ </details> ### 📄 Description Implementation of a universal upload allowing for multiple storage backends starting with `database` and `s3`. Allows clients to put and retrieve files from either client or server using a blend of client and server actions. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit - New Feature: Introduced a new model `DocumentData` to handle different types of document data storage, including S3 and base64-encoded data. - New Feature: Added support for file operations (create, read, update, delete) with different storage types. - New Feature: Enhanced the Documents page to handle different types of document data. - Refactor: Updated the database schema to include `createdAt` and `updatedAt` fields in the `Document` table. - Refactor: Replaced direct usage of `nanoid` with a custom ID generator function. - Chore: Adjusted environment variables for more flexible configuration of storage options. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:30:59 +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#907
No description provided.