Wordpress-android: Change site icon for Self hosted sites

Created on 5 Feb 2019  ·  11Comments  ·  Source: wordpress-mobile/WordPress-Android

I received a request in 1740092-zen from a user who was trying to change the site icon for their self hosted site. Right now you can change the site icon for WordPress.com sites and jetpack sites, but self hosted sites can not be changed. In Android if you click on the site icon for a self hosted site you get an error that says you don't have the permissions to change the site icon.
Can we either make it so that the site icon can not be tapped on if the site is self hosted (which is how iOS does this currently) or make it so that the site icon can be changed for self hosted sites?

To see the error, go to My Sites for a self hosted non jetpack site and tap on the site icon, you should see this:

Site Settings [Pri] Low [Status] Needs Copy Review [Type] Broken Window [Type] Enhancement

All 11 comments

Thanks for the report! That message is expected if the user doesn't have permissions to edit the site icon, but it doesn't make sense in this context. @0nko I see you added the site icon editing in https://github.com/wordpress-mobile/WordPress-Android/pull/7722 — was it expected to work on self-hosted sites at that point? (Just want to know if this is a regression from the original behavior.)

Thanks looking into this @charliescheer and @rachelmcr. I've checked and we're only testing for the capabilities required to upload and change the icon. I didn't know the self-hosted sites were unsupported. We can simple add another condition for self-hosted sites without Jetpack and show a different message.

Tested and confirmed it's still not possible to set a site icon for a self-hosted site in WPAndroid alpha-162 (12.2 alpha) on Pixel 3 Android 9.

Screenshot_20190409-102517

Tested with `tasteless-petrel.jurassic.ninja` running WordPress 5.1.1. Found while beta testing WPAndroid 12.2.

This issue has been marked as stale because:

  • It has been inactive for the past year.
  • It isn't in a project or a milestone.
  • It hasn’t been labeled [Pri] Blocker, [Pri] High, or good first issue.

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority (cc @designsimply).

Another user in #2893189-zen reported this and was quite confused by the error messaging present. It should at least be clear that this isn't possible on the type of site and not that they don't have permission to do so.

I'm looking into this one, didn't fully go into the path for what it would be needed to support the setting of an icon in pure self-hosted but that seems to require adding some capability at API/Site DB level. This said I agree we should align both Android/iOS versions but I would be more keen toward giving a message to the user (like "Setting an icon is not currently supported for pure self-hosted site without JetPack"...or something better 😊!) than disabling the tap on site icon as is currently in iOS.

@frosty , @osullivanchris wdyt?

@develric @rezzap I agree, it makes more sense to tell the user the specific reason that they cannot take the action.

On iOS we actually went through this process with 'site title' for non admins recently. We allowed non admins to see the same UI, but without input, and a message telling them they cannot make the change.

Here I think it would be fine to keep the dialog, but change the messaging to make it specific to the error.

One last question, just to test the assumption...is it definitely not possible for self-hosted sites to set an icon? Like this behaviour is a technical limitation / deliberate choice by us? Just want to check that it is a necessary error message :)

Hey @osullivanchris , thanks for replying 🙇‍♂️!

Here I think it would be fine to keep the dialog, but change the messaging to make it specific to the error.

Agree 👍! Could something like "Setting an icon is not currently supported without JetPack." work for you?

is it definitely not possible for self-hosted sites to set an icon?

I'm not an expert here and didn't go deep the full path but for what I get from the XML-RPC documentation (the API we use for pure self-hosted site) we currently do not natively support methods to allow the site icon to be set (also maybe we should extend the wp.getUsersBlogs method to include a site icon url; something similar overall to the sites/*/settingsREST API we use for .COM and JP).

Something doable but not sure about the effort yet. But at least giving meaningful message among the platforms seems reasonable step here, wdyt?

But at least giving meaningful message among the platforms seems reasonable step here, wdyt?

Yeah of course, sounds good. I just wanted to check that these constraints were definite and not just ones we were assuming. But it makes sense.

Agree 👍! Could something like "Setting an icon is not currently supported without JetPack." work for you?

That sounds roughly correct. I don't know the perfect way to word it so I'm tagging editorial for a review here :)

I'm wondering if we spin it, so it's more like an instruction for how to solve this problem: "Editing site icons on self-hosted WordPress sites requires the Jetpack plugin."

thanks @michelleweber that sounds good to me!

Was this page helpful?
0 / 5 - 0 ratings