feat(ui-react,console): extract FullUploader from Console into shared…#596
Open
luisawatkins wants to merge 2 commits intostoracha:mainfrom
Open
feat(ui-react,console): extract FullUploader from Console into shared…#596luisawatkins wants to merge 2 commits intostoracha:mainfrom
luisawatkins wants to merge 2 commits intostoracha:mainfrom
Conversation
… UI and migrate usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extract the full upload tool UI from Storacha Console into the shared UI package and migrate Console to consume the new shared component. The new
FullUploadercomponent in@storacha/ui-reactis built on the existing headless uploader primitives and preserves current Console behavior.What’s Included
FullUploaderto@storacha/ui-reactand exported it:packages/ui/packages/react/src/FullUploader.tsxpackages/ui/packages/react/src/index.tsFullUploader:packages/console/src/components/Uploader.tsxkmsConfigsupport forspace.access.type === 'private'.API Notes
FullUploaderprops:onUploadComplete?: (props: { file?: File; files?: File[]; dataCID?: AnyLink }) => voidspace?: anygatewayURL?: (cid: string) => stringkmsConfig?: { keyManagerServiceURL: string; keyManagerServiceDID: string; location?: string; keyring?: string; allowInsecureHttp?: boolean }Defaults:
https://${cid}.ipfs.w3s.linkMigration
FullUploaderfrom@storacha/ui-reactand passes existingonUploadCompleteandspace.packages/console/src/app/space/[did]/upload/page.tsxCloses #595