Closed juliusmarminge closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
docs-uploadthing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 18, 2024 0:33am |
Latest commit: b5b25ddf8bc6a60bfa89e17d04690da9430d4c86
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This pull request introduces new React functional components, Input
and Label
, to enhance form handling in the playground-v6/components/fieldset.tsx
and playground/components/fieldset.tsx
files. Additionally, a ServerUploader
component is added to facilitate server-side file and URL uploads in the playground-v6/components/uploader.tsx
and playground/components/uploader.tsx
files. A new asynchronous function, uploadFiles
, is introduced in the playground-v6/lib/actions.ts
and playground/lib/actions.ts
files to manage file uploads, including error handling and session validation.
File Path | Change Summary |
---|---|
playground-v6/components/fieldset.tsx | Added Input and Label components for form handling with CSS class management. |
playground-v6/components/uploader.tsx | Introduced ServerUploader for server-side uploads; modified Uploader to include both client and server options. |
playground-v6/lib/actions.ts | Added uploadFiles function to handle file uploads with session validation and error management. |
playground/components/fieldset.tsx | Added Input and Label components for form handling with CSS class management. |
playground/components/uploader.tsx | Introduced ServerUploader for server-side uploads; modified Uploader to include both client and server options. |
playground/lib/actions.ts | Added uploadFiles function to handle file uploads with session validation and error management. |
Input
and Label
components in the main PR as they may be used in forms that handle file uploads.onUploadComplete
and onUploadError
functions, which could be relevant for the new components that handle file inputs and labels in the main PR.examples
, sdk
🐰 In the meadow, new forms arise,
WithInput
andLabel
, we reach for the skies.
TheServerUploader
brings files with grace,
WhileuploadFiles
ensures a smooth race.
Hopping along, we celebrate this feat,
In the world of code, our changes are sweet! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Bundle | Size (gzip) | Visualization |
---|---|---|
Main | 27.51KB | See Treemap 📊 |
PR (13c95102837b7b12001853a8270ebb186f7602dd) | 27.51KB | See Treemap 📊 |
Diff | No change |
Summary by CodeRabbit
Input
andLabel
components for improved form element styling and accessibility.ServerUploader
component for server-side file and URL uploads, enhancing upload options.