Improve module Edit Settings form when owner loses access to the module
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 384
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 77
Description
## Bug Description
If an user doesn't have access to the connected SC property, they'll see a warning on the Site Kit dashboard as per the below:

If they try to edit the Search Console module, and if this is the only Search Console property available, there will be a dropdown with nothing available for selection. It's not possible to confirm any changes.

Improve this scenario by adding some textual context, or a "Request accsses" button as it appears on the dashboard.
## Steps to reproduce
1. Set up Site Kit with Analytics on a site that already is verified in Search Console (ie. http://mysite.com). Use this verified property alone, with no other verified versions of that site (ie. the insecure property or the www prefixed property are not verified independently of Site Kit). Site Kit will use this existing verification method.
2. Ensure data appears on the Site Kit dashboard.
3. Access Search Console and unverify your Google account from the property.
4. Revisit your Site Kit dashboard. An expected Search Console permissions error will appear, with a request access button.
5. Visit the Search Console settings page and a a dropdown will appear which isn't very informative of the issue.
## Screenshots
## Additional Context
- Site Kit 1.109.0
- This was not raised in the support forums
- Search Console permissions errors are not common for admins, but they do come up in the forums
---------------
_Do not alter or remove anything below. The following sections will be managed by moderators only._
## Acceptance criteria
* If the current logged in user is the owner of connected modules, but somehow loses their access to the service, then the "owned settings" in the Edit Settings form should be disabled, similar to the behaviour implemented in #4825.
* When disabled, raw values can be displayed as necessary in place of the usual "rich" display value where API entity access is needed (e.g. a property ID in place of the ID + name) but should still appear as the same type of input (e.g. a disabled Select with single selected value).
* An info notice should be displayed as follows:
>You configured {module name} but you don’t have access to this {connection entity} anymore. Request access to this {connection entity} or disconnect and reconnect the module with another {connection entity}.
* The words "Request access" should be a link that points to the same URL used in the "Request access" on the Insufficient Permissions error being displayed in this instance on the dashboard.
## Implementation Brief
*
### Test Coverage
*
## QA Brief
*
## Changelog entry
*
Contributor guide
Assessment
This issue has not been assessed yet.