Conversation
|
Same as #6858 (comment), except that if the user is on a editing detail view, we only popped one controller to the image detail. |
|
An interesting case:
|
* Now all handled by the main media library VC * Can pop off multiple VCs (for example if we're editing the metadata of an image)
* Now all handled by the main media library VC * Can pop off multiple VCs (for example if we're editing the metadata of an image)
…mobile/WordPress-iOS into feature/media-library-editing
|
Thanks @kurzee! I've pushed up change to properly handle popping the detail view controllers when things change. The media library VC itself now takes care of things, no matter how many detail views are pushed on. Regarding the other issues:
So there seem to be two blockers for fixing this.
Because of these, and the fact I think it's a relatively uncommon case, I think we can probably leave this for now?
It looks like this isn't supported by XML-RPC, which is I think why we didn't have support yet. Adding alt text support would require updating the
Do you think that's still necessary if we have the copy URL functionality already? Finally: turns out that XMLRPC doesn't support editing / updating image metadata. I've pushed a change to only show editable fields if you're looking at a dotcom site. |
WordPress/Classes/Models/Blog.m
Outdated
| case BlogFeatureNoncePreviews: | ||
| return [self supportsRestApi] && ![self isHostedAtWPcom]; | ||
| case BlogFeatureMediaMetadataEditing: | ||
| return [self isHostedAtWPcom]; |
There was a problem hiding this comment.
I'm thinking this should be something like [self supportsRestApi] && [self isAdmin];? As we also lose support for self-hosted over Jetpack with just .com.
There was a problem hiding this comment.
Thanks, that makes sense. Technically isAdmin isn't right, as you can edit metadata as an author or editor – but we don't currently have any way to detect that, so let's stick with admin for now.
There was a problem hiding this comment.
@kurzee I've pushed up a change to address this. I've also disabled deletion for non-admins.
|
@frosty would we also need hide the Media section for non-admin users? |
|
I'm not sure what the correct solution is there. It seems that on the web, everybody but contributors can view the media library at the top level. I just checked on the app, and our So either we don't let editors and authors see it (but they should be able to), or we let contributors see it (and perhaps they shouldn't be able to). I think we can probably let everyone see it, as it's visible in the editor for everyone in Calypso. |
👍
👍
I think it's a bonus, but an obvious field that I could tap to get the copy
|
This PR introduces editing to the media library.
To test:
Needs review: @kurzee