users: Add new option in web_channel_default_view.

Added "list of topics" option which will allow users to indicate
that they want to view an inbox style list of topics on visiting
a channel link.
This commit is contained in:
Aman Agrawal
2025-04-09 16:47:07 +05:30
committed by Tim Abbott
parent 6aca4c8509
commit cc4b4f5670
6 changed files with 40 additions and 6 deletions

View File

@@ -20,6 +20,14 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 11.0
**Feature level 383**
* [`POST /register`](/api/register-queue), [`PATCH
/settings`](/api/update-settings), [`PATCH
/realm/user_settings_defaults`](/api/update-realm-user-settings-defaults):
Added new option in user setting `web_channel_default_view`, to show
inbox view style list of topics.
**Feature level 382**
* `POST /message/{message_id}/report`: Added a new endpoint for submitting

View File

@@ -113,6 +113,12 @@ In Zulip 10.0 (feature level 319), added Markdown syntax
for linking to a specific message in a conversation. Declared the
`data-stream-id` field to be deprecated as detailed above.
In Zulip 11.0 (feature level ZF-93627a), clients can decide what
channel view a.stream channel link elements take you to -- i.e.,
the href for those is the default behavior of the link that also
encodes the channel alongside the data-stream-id field, but clients
can override that default based on `web_channel_default_view` setting.
## Image previews
When a Zulip message is sent linking to an uploaded image, Zulip will

View File

@@ -34,7 +34,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"
# new level means in api_docs/changelog.md, as well as "**Changes**"
# entries in the endpoint's documentation in `zulip.yaml`.
API_FEATURE_LEVEL = 382
API_FEATURE_LEVEL = 383
# Bump the minor PROVISION_VERSION to indicate that folks should provision
# only when going from an old version of the code to a newer version. Bump

View File

@@ -125,9 +125,11 @@ class UserBaseSettings(models.Model):
WEB_CHANNEL_DEFAULT_VIEW_FIRST_TOPIC = 1
WEB_CHANNEL_DEFAULT_VIEW_CHANNEL_FEED = 2
WEB_CHANNEL_DEFAULT_VIEW_TOPIC_LIST = 3
WEB_CHANNEL_DEFAULT_VIEW_CHOICES = [
WEB_CHANNEL_DEFAULT_VIEW_FIRST_TOPIC,
WEB_CHANNEL_DEFAULT_VIEW_TOPIC_LIST,
WEB_CHANNEL_DEFAULT_VIEW_CHANNEL_FEED,
]

View File

@@ -12617,13 +12617,19 @@ paths:
- 1 - Top topic in the channel
- 2 - Channel feed
- 3 - List of topics
**Changes**: New in Zulip 9.0 (feature level 269). Previously, this
**Changes**: The "List of topics" option is new in
Zulip 11.0 (feature level 383).
New in Zulip 9.0 (feature level 269). Previously, this
was not configurable, and every user had the "Channel feed" behavior.
type: integer
enum:
- 1
- 2
- 3
example: 1
web_font_size_px:
description: |
@@ -16014,8 +16020,12 @@ paths:
- 1 - Top topic in the channel
- 2 - Channel feed
- 3 - List of topics
**Changes**: New in Zulip 9.0 (feature level 269). Previously, this
**Changes**: The "List of topics" option is new in
Zulip 11.0 (feature level 383).
New in Zulip 9.0 (feature level 269). Previously, this
was not configurable, and every user had the "Channel feed" behavior.
starred_message_counts:
type: boolean
@@ -18762,8 +18772,12 @@ paths:
- 1 - Top topic in the channel
- 2 - Channel feed
- 3 - List of topics
**Changes**: New in Zulip 9.0 (feature level 269). Previously, this
**Changes**: In Zulip 11.0 (feature level 383), we added a new option
"List of topics" to this setting.
New in Zulip 9.0 (feature level 269). Previously, this
was not configurable, and every user had the "Channel feed" behavior.
starred_message_counts:
type: boolean
@@ -19909,8 +19923,12 @@ paths:
- 1 - Top topic in the channel
- 2 - Channel feed
- 3 - List of topics
**Changes**: New in Zulip 9.0 (feature level 269). Previously, this
**Changes**: The "List of topics" option is new in
Zulip 11.0 (feature level 383).
New in Zulip 9.0 (feature level 269). Previously, this
was not configurable, and every user had the "Channel feed" behavior.
type: integer
enum:

View File

@@ -4657,7 +4657,7 @@ class UserDisplayActionTest(BaseAction):
web_home_view=["all_messages", "inbox", "recent_topics"],
demote_inactive_streams=[2, 3, 1],
web_mark_read_on_scroll_policy=[2, 3, 1],
web_channel_default_view=[2, 1],
web_channel_default_view=[2, 1, 3],
user_list_style=[1, 2, 3],
web_animate_image_previews=["always", "on_hover", "never"],
web_stream_unreads_count_display_policy=[1, 2, 3],