Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentHub One Media Management #34

Open
robertsoniv opened this issue Mar 7, 2023 · 1 comment
Open

ContentHub One Media Management #34

robertsoniv opened this issue Mar 7, 2023 · 1 comment
Labels
enhancement New feature or request not ready This issue is not a priority and/or ready to be worked on at this time.

Comments

@robertsoniv
Copy link
Collaborator

robertsoniv commented Mar 7, 2023

Please read the description of the Content Hub One milestone first.

This will require provisioning a production ContentHub One instance for demo and development purposes. We do not want to expose the administrative API keys for ContentHub One so we will have to create proxy endpoints that authenticate themselves using private environment variables.

Create a shared component that is capable of browsing, uploading, and removing media from ContentHub One. It will likely be necessary to load this component in a dialog so that it can be efficiently utilized on the Product CreateUpdateForm.

Anatomy suggestions:

const [selectedMedia, setSelectedMedia] = useState<MediaObject[]>([]);

<ContentHub.MediaSelector value={selectedMedia} onChange={setSelectedMedia}>
   <ContentHub.MediaSearchInput/>
   <ContentHub.MediaList/>
   <ContentHub.MediaUpload/>
</ContentHub.MediaSelector>
@robertsoniv
Copy link
Collaborator Author

Consider using the current users OrderCloud access_token to verify access to the proxied ContentHub One endpoints. We could even define some custom roles specifically for read/write permission.

@robertsoniv robertsoniv added the enhancement New feature or request label Mar 7, 2023
@robertsoniv robertsoniv modified the milestone: Content Hub One Mar 10, 2023
@robertsoniv robertsoniv added the not ready This issue is not a priority and/or ready to be worked on at this time. label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not ready This issue is not a priority and/or ready to be worked on at this time.
Projects
Development

No branches or pull requests

1 participant