Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

presence: Avoid doc/naming references to "orange".

Steve Howell498b02dfb269
diff --git a/docs/subsystems/presence.md b/docs/subsystems/presence.md
index 8f87972bbd2..5b26affd393 100644
--- a/docs/subsystems/presence.md
+++ b/docs/subsystems/presence.md
@@ -23,11 +23,10 @@ requests contains a few parameters. The most important is "status",
which had 2 valid values:
- "active" -- this means the user has interacted with the client
- recently. We use this for the "green" state in the web app.
+ recently.
- "idle" -- the user has not interacted with the client recently.
This is important for the case where a user left a Zulip tab open on
- their desktop at work and went home for the weekend. We use this
- for the "orange" state in the web app.
+ their desktop at work and went home for the weekend.
The client receives in the response to that request a data set that,
for each user, contains their status and timestamp that we last heard
diff --git a/frontend_tests/node_tests/buddy_data.js b/frontend_tests/node_tests/buddy_data.js
index e0cda668754..0c93de58b55 100644
--- a/frontend_tests/node_tests/buddy_data.js
+++ b/frontend_tests/node_tests/buddy_data.js
@@ -142,7 +142,7 @@ test("user_circle, level, status_description", () => {
assert.equal(buddy_data.get_user_circle_class(me.user_id), "user_circle_green");
set_presence(fred.user_id, "idle");
- assert.equal(buddy_data.get_user_circle_class(fred.user_id), "user_circle_orange");
+ assert.equal(buddy_data.get_user_circle_class(fred.user_id), "user_circle_idle");
assert.equal(buddy_data.level(fred.user_id), 2);
assert.equal(buddy_data.status_description(fred.user_id), "translated: Idle");
diff --git a/static/js/buddy_data.js b/static/js/buddy_data.js
index 26b81edbf32..ecfe1fa06cc 100644
--- a/static/js/buddy_data.js
+++ b/static/js/buddy_data.js
@@ -41,7 +41,7 @@ export function get_user_circle_class(user_id) {
case "active":
return "user_circle_green";
case "idle":
- return "user_circle_orange";
+ return "user_circle_idle";
case "away_them":
case "away_me":
return "user_circle_empty_line";
diff --git a/static/styles/user_circles.css b/static/styles/user_circles.css
index 10a49bcafbb..ade93e3cae4 100644
--- a/static/styles/user_circles.css
+++ b/static/styles/user_circles.css
@@ -1,5 +1,7 @@
+$idle_color: hsl(29, 84%, 51%);
+
.user_circle_green,
-.user_circle_orange,
+.user_circle_idle,
.user_circle_empty,
.user_circle_empty_line {
border-radius: 50%;
@@ -14,12 +16,12 @@
border-color: hsl(106, 74%, 44%);
}
-.user_circle_orange {
- border-color: hsl(29, 84%, 51%);
+.user_circle_idle {
+ border-color: $idle_color;
background: linear-gradient(
to bottom,
hsla(0, 0%, 100%, 0) 50%,
- hsla(29, 84%, 51%, 1) 50%
+ $idle_color 50%
);
}