From 603aa3db01b781128f8c1a9a61945b3c64a4845e Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Sat, 25 Nov 2023 16:12:57 +0000 Subject: [PATCH] user_base_settings: Change web_home_view default to inbox view. It would probably provide a better introduction to Zulip than Recent conversations. --- web/e2e-tests/lib/common.ts | 2 +- ...realmuserdefault_web_home_view_and_more.py | 22 +++++++++++++++++++ zerver/models.py | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 zerver/migrations/0491_alter_realmuserdefault_web_home_view_and_more.py diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts index 74bf7bab38..bc8cd64b90 100644 --- a/web/e2e-tests/lib/common.ts +++ b/web/e2e-tests/lib/common.ts @@ -271,7 +271,7 @@ export async function log_in( await fill_form(page, "form#login_form", params); await page.$eval("form#login_form", (form) => form.submit()); - await page.waitForSelector("#recent_view_filter_buttons", {visible: true}); + await page.waitForSelector("#inbox-main", {visible: true}); } export async function log_out(page: Page): Promise { diff --git a/zerver/migrations/0491_alter_realmuserdefault_web_home_view_and_more.py b/zerver/migrations/0491_alter_realmuserdefault_web_home_view_and_more.py new file mode 100644 index 0000000000..969e19776b --- /dev/null +++ b/zerver/migrations/0491_alter_realmuserdefault_web_home_view_and_more.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.7 on 2023-11-25 16:08 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("zerver", "0490_renumber_options_desktop_icon_count_display"), + ] + + operations = [ + migrations.AlterField( + model_name="realmuserdefault", + name="web_home_view", + field=models.TextField(default="inbox"), + ), + migrations.AlterField( + model_name="userprofile", + name="web_home_view", + field=models.TextField(default="inbox"), + ), + ] diff --git a/zerver/models.py b/zerver/models.py index 6b92d4b69e..da117fbab7 100644 --- a/zerver/models.py +++ b/zerver/models.py @@ -1570,7 +1570,7 @@ class UserBaseSettings(models.Model): default_language = models.CharField(default="en", max_length=MAX_LANGUAGE_ID_LENGTH) # This setting controls which view is rendered first when Zulip loads. # Values for it are URL suffix after `#`. - web_home_view = models.TextField(default="recent_topics") + web_home_view = models.TextField(default="inbox") web_escape_navigates_to_home_view = models.BooleanField(default=True) dense_mode = models.BooleanField(default=True) fluid_layout_width = models.BooleanField(default=False)