The media library needs a relative link + a preview link to the asset as hosted in headless.
This will be an alternate form field added to the media library UI page (using existing WP styles).
No need for design input right now, we can get the basic functionality working & then share screenshot with team for feedback on labels. (We need to get the labels & UI very clean so the editors do not have to think about what's happening at all.)
Notes from quick user feedback session with Cannabis team:
Relative urls are helpful for editors who are uploading PDF and then linking to it in a page or a post.
They need the headless url for sharing URL publicly (in posts as well as emails)
We want to discouraging sharing the pantheon URL.
Longer term notes:
The final home of this will be a headless specific plugin that CDT can turn on or off.
Phase two:
It would be great to get a server response if the publishing request was successful.
As is, this will come as an update from the polling feature & won’t be immediate.
The domain used in the URL needs to be configurable.
Note: There is no (obvious) hook for Media updates with Notifications plugin, which is more more reason to code the headless option but make it work with environment variables and a UI based config for each site so the headless domain can be changed without needing to update Github.
The media library needs a relative link + a preview link to the asset as hosted in headless.
This will be an alternate form field added to the media library UI page (using existing WP styles). No need for design input right now, we can get the basic functionality working & then share screenshot with team for feedback on labels. (We need to get the labels & UI very clean so the editors do not have to think about what's happening at all.)
Notes from quick user feedback session with Cannabis team:
Longer term notes:
Phase two: