You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a7113cd
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(site-status): 🔄 remove site status module and related components
- Deleted the `site-status` module, including its routes, screens, and content components.
- Updated references in the sidebar navigation and debug sections to remove links to the deleted module.
- Introduced a new `SiteOfflineStaffChip` component to manage offline site notifications.
- Refactored the debug overview to include site status management.
|`site.status.updated`|`{ offline, switched, opensAt, changedById }`| An admin saves **AdminCP → System → Site status**: switches the site off or on, or edits its message |
748
+
|`site.status.updated`|`{ offline, switched, opensAt, changedById }`| An admin switches the site off or on, or edits its message, in the **Site status** card on **AdminCP → Debug Panel**|
Copy file name to clipboardExpand all lines: apps/web/content/docs/dev/site-offline-mode.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,17 @@ Site offline mode swaps the public site for a "We'll be right back" page while y
16
16
17
17
<Step>
18
18
19
-
### Open the site status page
19
+
### Open the site status card
20
20
21
-
Go to **AdminCP → System → Site status**. You need the **Site status → View**staff permission to see the page and **Manage** to change it.
21
+
Go to **AdminCP → Debug Panel**. The **Site status** card sits at the top of **Overview**. To see it you need two staff permissions, **Debug Panel → View debug panel**and **Site status → View**. Changing it takes **Site status → Manage**.
22
22
23
23
</Step>
24
24
25
25
<Step>
26
26
27
27
### Switch it off and write the message
28
28
29
-
Turn on **Take the site offline**, then write why in **Message**. The editor has a language switcher: write the default language at least. A visitor whose language has no message gets the default one. The **Live preview** beside the form updates as you type.
29
+
Turn on **Take the site offline**, and the **Message** and **Opening time** fields unfold below the switch. Write why the site is off in **Message**. The editor has a language switcher, and the default language is the one you can't skip. A visitor whose language has no message gets the default one.
30
30
31
31
</Step>
32
32
@@ -44,20 +44,20 @@ The site **never opens by itself**. Once the opening time has passed, visitors s
44
44
45
45
### Save
46
46
47
-
A bar appears at the bottom once something changes. Select **Turn off site** in it. The status card turns to **Offline**, and the preview now shows what visitors see.
47
+
A footer slides in at the bottom of the card once something changes. Select **Turn off site** in it, or **Discard** to drop your changes. The card turns to **Site is offline**.
48
48
49
49
<ImgDocs
50
50
src={siteOfflineAdmin}
51
-
alt="Site status page in the AdminCP: the Take the site offline switch, the message editor and the opening time on the left, and a live preview of the offline page on the right"
51
+
alt="Site status card at the top of the Debug Panel overview: the Take the site offline switch turned on, the message editor and the opening time unfolded below it, and a footer with Discard and Turn off site"
52
52
/>
53
53
54
54
</Step>
55
55
56
56
</Steps>
57
57
58
-
While the site is offline, **AdminCP → Debug Panel** lists it as a warning (with the opening time) and counts it in the warning badge next to your name, so nobody forgets it is off. Select the warning to jump to **Site status**.
58
+
While the site is offline, **AdminCP → Debug Panel** lists it as a warning (with the opening time) and counts it in the warning badge next to your name, so nobody forgets it is off. Select the warning to jump to the **Site status** card.
59
59
60
-
To open the site, turn off **Take the site offline** and select **Turn on site** in the save bar. Offline pages that are still open check the status every minute and load the site on their own.
60
+
To open the site, turn off **Take the site offline** and select **Turn on site** in the card's footer. Offline pages that are still open check the status every minute and load the site on their own.
61
61
62
62
## What visitors and staff see
63
63
@@ -69,7 +69,7 @@ To open the site, turn off **Take the site offline** and select **Turn on site**
69
69
| Who | What they get |
70
70
| --- | --- |
71
71
| Guests and members | The offline page on every public URL, with an HTTP `503` status |
72
-
| Admins | The full site, with a banner reminding them it is offline|
72
+
| Admins | The full site, with an **Offline** pill in the bottom corner (click it for details and a link to the site status) and an `(Offline)` prefix on every page title|
73
73
| Moderators with **Access the site while it's offline**| The same as admins |
74
74
| Other moderators | The offline page, like any member |
75
75
| Anyone on `/login`| The sign-in pages. The offline page has no sign-in link, so staff open `/login` or `/admin` directly |
0 commit comments