Make pages settings (e.g. enablement access-control) more visible.

Summary

Part of the pages settings is located in the project settings(Settings -> General -> Visibility).

Access control is handled there and pages can be:

  • disabled

    Screenshot_2019-10-07_at_14.22.44 .

  • enabled only for authorized users

    Screenshot_2019-10-07_at_14.22.52

Both of these states are not reflected on the pages settings page in any way: Screenshot_2019-10-07_at_14.24.01

This page sais that your site is available even if pages are disabled. And it tells nothing about access control.

Proposed solutions

Replace the whole page content with "Pages are disabled for this project" if pages are disabled

Something like: "Pages are disabled for this project. To enable it visit Settings->General->Visibility"

If access-control is enabled add a warning next to "It may take up to 30 minutes before the site is available after the first deployment."

From @marcia's comment:

Access Control is enabled for this Pages website; only authorized users
will be able access it. To make your website publicly available,
navigate to your project's **Settings > General > Visibility**
and _[do this]_. Read the [documentation](link-to-doc) for more information.

The link is project-url/edit#js-shared-permissions right now, but I'm not sure if this anchor will be present in the future, we'll probably need and integration test for that.

Screenshots of new behavior

Screenshot_2019-10-29_at_18.52.28

Screenshot_2019-10-31_at_21.26.45

cc @ogolowinski @mnichols1 @darbyfrey

Edited Nov 15, 2019 by Vladimir Shushlin
Assignee Loading
Time tracking Loading