question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow organization administrators to set default colors for streams

See original GitHub issue

Zulip’s stream colors are currently generated independently for each user (with an ordered sequence of colors). This is nice for the onboarding experience, because it lets us avoid near-duplicate colors. But for larger organizations, one can often want to use these for organization (E.g. one can imagine orange/red shades for alerts streams, or purple for social streams, or whatever).

See #15078, this thread and this thread for some background/requests related to this.

Here’s a rough technical design:

  • We’ll add a Stream.default_color field, in the same format of Subscription.color. None should encode no default color (i.e. the current behavior), and be the default for both new and existing streams. This is probably one commit.
  • We add a commit changing Subscription.color to be nullable, with the intent being that None will mean that we want to inherit the stream-level color. We’ll want to make sure the API serves the stream-level color in this case, so that clients (web/mobile/terminal) that are just doing display don’t need to know about the internals of how default colors are implemented.
  • We’ll add this new field to Stream.API_FIELDS, and update the API documentation. This and the above is probably one commit.
  • We adjust the bulk_add_subscriptions code path to set Subscription.color = None if Stream.color is set and the client didn’t select a color – which will mean that the user want to just use the default color for that stream. We’ll also require frontend changes as well for local echo reasons (I think currently clients pick the color when a new subscription is created via the client, not the API / another user subscribing you).
  • We add UI on the Stream settings “Change” panel for the stream to change a stream’s default color. (We plan to reorganize “Stream settings”, but it should go with the other settings there, I think).
  • We adjust the UI for picking your personal color to show the default color for the stream as an option.
  • We’ll want a notification-bot message to the “stream events” topic when a stream’s default color is changed.
  • (We document it, etc.)

I don’t think this issue is super high priority compared to other feature requests, but we have heard it a few times, and I’d be happy to merge an implementation of this design.

After all the above is done, we might imagine a follow-up project to think about whether we want to change the default for new streams (likely at least optionally) or just require default colors for streams, but that’ll basically just a continuation of the above, so we can think about that more deeply once we’ve implemented what is described here.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nooblagcommented, Sep 2, 2021

Perhaps a better way to say this could be: if a user has not explicitly changed the colour from default, and an admin makes a change to the default stream colour, that those changes should apply to everyone, even with multiple default colour changes made by the admin over time. Hope that’s helpful.

1reaction
octogonzcommented, Aug 4, 2021

+1

As a Zulip organization admin, I spent a fair amount of time carefully choosing meaningful RGB colors for our Zulip streams.

I had no idea that these colors didn’t apply to other users. I just realized that everyone gets random colors! 😥

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set default streams for new users | Zulip help center
Click on the gear () icon in the upper right corner of the web or desktop app. Select Manage organization. On the left,...
Read more >
Customize the Microsoft 365 theme for your organization
Learn to change the default theme for the top of the navigation bar in Microsoft 365 and customize it to match your company...
Read more >
Organization preferences | Grafana documentation
As a Grafana server administrator, you can change the default Grafana UI theme for all users who are on the server by setting...
Read more >
Default Organization Design - Blackboard Help
Define the default organization design · On the Administrator Panel, under Communities, select Brands and Themes. · Select Default Organization Design. The ...
Read more >
Settings | Looker - Google Cloud
If the admin or user has not set the user's default time zone, then the ... The Default Visualization Colors setting lets you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found