user_base_settings: Change web_home_view default to inbox view.

It would probably provide a better introduction to Zulip
than Recent conversations.
This commit is contained in:
Aman Agrawal 2023-11-25 16:12:57 +00:00 committed by Tim Abbott
parent 7de061cf10
commit 603aa3db01
3 changed files with 24 additions and 2 deletions

View File

@ -271,7 +271,7 @@ export async function log_in(
await fill_form(page, "form#login_form", params); await fill_form(page, "form#login_form", params);
await page.$eval("form#login_form", (form) => form.submit()); 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<void> { export async function log_out(page: Page): Promise<void> {

View File

@ -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"),
),
]

View File

@ -1570,7 +1570,7 @@ class UserBaseSettings(models.Model):
default_language = models.CharField(default="en", max_length=MAX_LANGUAGE_ID_LENGTH) default_language = models.CharField(default="en", max_length=MAX_LANGUAGE_ID_LENGTH)
# This setting controls which view is rendered first when Zulip loads. # This setting controls which view is rendered first when Zulip loads.
# Values for it are URL suffix after `#`. # 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) web_escape_navigates_to_home_view = models.BooleanField(default=True)
dense_mode = models.BooleanField(default=True) dense_mode = models.BooleanField(default=True)
fluid_layout_width = models.BooleanField(default=False) fluid_layout_width = models.BooleanField(default=False)