Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help-beta: Make availability icons work in the new help center.
Shubham Padia8c503b856e21
diff --git a/help-beta/astro.config.mjs b/help-beta/astro.config.mjsindex e73d807ba29..c747ccf3dcf 100644--- a/help-beta/astro.config.mjs+++ b/help-beta/astro.config.mjs@@ -29,12 +29,17 @@ export default defineConfig({throw new Error("Zulip icon not found.");},},- iconCustomizer(collection, _icon, props) {+ iconCustomizer(collection, icon, props) {if (collection === "zulip-icon" || collection === "fa") {// We need to override some default starlight behaviour to make// icons look nice, see the css for this class to see the reasoning// for each individual override of the default css.props.class = "zulip-unplugin-icon";++ if (collection === "zulip-icon" && icon.startsWith("user-circle-")) {+ const iconSuffix = icon.replace("user-circle-", "");+ props.class = `zulip-unplugin-icon user-circle user-circle-${iconSuffix}`;+ }}},}),diff --git a/help-beta/src/styles/main.css b/help-beta/src/styles/main.cssindex 58fa477cf95..77bc0039353 100644--- a/help-beta/src/styles/main.css+++ b/help-beta/src/styles/main.css@@ -13,6 +13,14 @@/* Changed from 1.75 to make text easier to read. */--sl-line-height: 1.5;++ /* User circles */+ /* stylelint-disable color-no-hex */+ --color-user-circle-active: light-dark(#43a35e, #4cdc75);+ --color-user-circle-idle: light-dark(#f5b266, #ae640a);+ --color-user-circle-offline: light-dark(#c1c6d7, #454854);+ --color-user-circle-deactivated: hsl(0deg 0% 50%);+ /* stylelint-enable color-no-hex */}.non-clickable-sidebar-heading {@@ -80,6 +88,28 @@margin-top: 2px;}+.user-circle {+ font-size: 0.7em;+ display: inline-block;+ vertical-align: middle;+}++.user-circle-active {+ color: var(--color-user-circle-active);+}++.user-circle-idle {+ color: var(--color-user-circle-idle);+}++.user-circle-offline {+ color: var(--color-user-circle-offline);+}++.user-circle-deactivated {+ color: var(--color-user-circle-deactivated);+}+.sl-markdown-content {img {vertical-align: top;diff --git a/help/deactivate-or-reactivate-a-user.md b/help/deactivate-or-reactivate-a-user.mdindex 06170754745..d29d1b403e0 100644--- a/help/deactivate-or-reactivate-a-user.md+++ b/help/deactivate-or-reactivate-a-user.md@@ -18,7 +18,8 @@ When you deactivate a user:their [user card](/help/user-cards)). In sidebars and elsewhere, a user's[availability](/help/status-and-availability) will be replaced with adeactivated icon- (<span class="user-circle user-circle-deactivated zulip-icon zulip-icon-user-circle-deactivated"></span>).+ (<i class="user-circle user-circle-deactivated zulip-icon zulip-icon-user-circle-deactivated"></i>).+* Even if your organization [allows users to join without aninvitation](/help/restrict-account-creation#set-whether-invitations-are-required-to-join),this user will not be able to rejoin with the same email account.diff --git a/help/status-and-availability.md b/help/status-and-availability.mdindex 537308dbbb1..2965e992daf 100644--- a/help/status-and-availability.md+++ b/help/status-and-availability.md@@ -8,7 +8,7 @@ status might be "📅 In a meeting" or "🏠 Working remotely". To make it easynotice, the status emoji is shown next to your name in the sidebars, messagefeed, and compose box.-Your **availability** is a colored dot (like <span class="user-circle user-circle-active zulip-icon zulip-icon-user-circle-active"></span>) that indicates if you're currently active on Zulip, idle,+Your **availability** is a colored dot (like <i class="user-circle user-circle-active zulip-icon zulip-icon-user-circle-active"></i>) that indicates if you're currently active on Zulip, idle,or offline. You can also [go invisible](#invisible-mode) to appear offlineto other users.@@ -118,14 +118,16 @@ With the compact option, only status emoji are shown.There are three availability states:-* **Active** (<span class="user-circle user-circle-active zulip-icon- zulip-icon-user-circle-active"></span>): Zulip is open and in focus on web,+* **Active** (<i class="user-circle user-circle-active zulip-icon+ zulip-icon-user-circle-active"></i>): Zulip is open and in focus on web,desktop or mobile, or was in the last 140 seconds.-* **Idle** (<span class="user-circle user-circle-idle zulip-icon- zulip-icon-user-circle-idle"></span>): Zulip is open on your computer (either++* **Idle** (<i class="user-circle user-circle-idle zulip-icon+ zulip-icon-user-circle-idle"></i>): Zulip is open on your computer (eitherdesktop or web), but you are not active.-* **Offline** (<span class="user-circle user-circle-offline zulip-icon- zulip-icon-user-circle-offline"></span>): Zulip is not open on your computer,++* **Offline** (<i class="user-circle user-circle-offline zulip-icon+ zulip-icon-user-circle-offline"></i>): Zulip is not open on your computer,or you have turned on invisible mode.### View availability