Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Show avatar by default in right sidebar for new orgs.
Sahil Batra9682e355849a
diff --git a/web/e2e-tests/user-status.test.ts b/web/e2e-tests/user-status.test.tsindex 6950abcc6d8..f794fa0807f 100644--- a/web/e2e-tests/user-status.test.ts+++ b/web/e2e-tests/user-status.test.ts@@ -3,20 +3,10 @@ import type {Page} from "puppeteer";import * as common from "./lib/common.ts";async function open_set_user_status_modal(page: Page): Promise<void> {- // We are clicking on the menu icon with the help of `waitForFunction` because the list- // re-renders many times and can cause the element to become stale.- await page.waitForFunction((): boolean => {- const menu_icon = document.querySelector<HTMLSpanElement>(- ".user_sidebar_entry:first-child span.user-list-sidebar-menu-icon",- );- if (menu_icon) {- menu_icon.click();- return true;- }- return false;- });- await page.waitForSelector(".user_popover_email", {visible: true});- // We are using evaluate to click because it is very hard to detect if the user info popover has opened.+ await page.click("#personal-menu");+ await page.waitForSelector("#personal-menu-dropdown", {visible: true});+ // We are using evaluate to click because it is very hard to detect if+ // the personal menu popover has opened.await page.evaluate(() => {document.querySelector<HTMLAnchorElement>(".update_status_text")!.click();});diff --git a/zerver/migrations/0001_squashed_0569.py b/zerver/migrations/0001_squashed_0569.pyindex f431a4c8762..fe76be43686 100644--- a/zerver/migrations/0001_squashed_0569.py+++ b/zerver/migrations/0001_squashed_0569.py@@ -924,7 +924,7 @@ class Migration(migrations.Migration):max_length=20,),),- ("user_list_style", models.PositiveSmallIntegerField(default=2)),+ ("user_list_style", models.PositiveSmallIntegerField(default=3)),("web_stream_unreads_count_display_policy",models.PositiveSmallIntegerField(default=2),@@ -1654,7 +1654,7 @@ class Migration(migrations.Migration):max_length=20,),),- ("user_list_style", models.PositiveSmallIntegerField(default=2)),+ ("user_list_style", models.PositiveSmallIntegerField(default=3)),("web_stream_unreads_count_display_policy",models.PositiveSmallIntegerField(default=2),diff --git a/zerver/migrations/0407_userprofile_user_list_style.py b/zerver/migrations/0407_userprofile_user_list_style.pyindex 5b559396b9b..6fd9516b78e 100644--- a/zerver/migrations/0407_userprofile_user_list_style.py+++ b/zerver/migrations/0407_userprofile_user_list_style.py@@ -12,11 +12,11 @@ class Migration(migrations.Migration):migrations.AddField(model_name="realmuserdefault",name="user_list_style",- field=models.PositiveSmallIntegerField(default=2),+ field=models.PositiveSmallIntegerField(default=3),),migrations.AddField(model_name="userprofile",name="user_list_style",- field=models.PositiveSmallIntegerField(default=2),+ field=models.PositiveSmallIntegerField(default=3),),]diff --git a/zerver/models/users.py b/zerver/models/users.pyindex a4f1657a585..78e3295053a 100644--- a/zerver/models/users.py+++ b/zerver/models/users.py@@ -158,7 +158,7 @@ class UserBaseSettings(models.Model):USER_LIST_STYLE_WITH_STATUS,USER_LIST_STYLE_WITH_AVATAR,]- user_list_style = models.PositiveSmallIntegerField(default=USER_LIST_STYLE_WITH_STATUS)+ user_list_style = models.PositiveSmallIntegerField(default=USER_LIST_STYLE_WITH_AVATAR)# Show unread counts forWEB_STREAM_UNREADS_COUNT_DISPLAY_POLICY_ALL_STREAMS = 1