Commit Graph

5974 Commits

Author SHA1 Message Date
Karl Stolley
05b8fea10f audio_player: Postprocess audio for added structure, classes. 2025-08-06 10:45:31 -07:00
amcdowell226
124a32e819
compose: Save messages as drafts when window loses focus.
Add a check for window blur and save any in-progress
messages as drafts. This will help prevent unnecessary
message loss for the user by creating drafts for them more
whenever they switch away from their Zulip tab.

Tested on my local Ubuntu development with a demo
organization and some of the premade profiles.

Fixes #35262.
2025-08-05 15:28:13 -07:00
Karl Stolley
b27a9fdbf1 left_sidebar: Show home unread count in condensed views.
The view is left as-is, however, for users who prefer
masked unreads.
2025-08-05 15:04:14 -07:00
Karl Stolley
070f497785 left_sidebar: Make condensed views aware of hide-count preference. 2025-08-05 15:04:14 -07:00
Aman Agrawal
067ecbbbfe inbox_ui: Fix scroll jump after initial render.
It is possible for us to scroll user back to top of view if they
scroll before the render is complete and we haven't called
`revive_current_focus` yet.

This fixes it by wrapping the render and revive logic in a single
animation frame so that any scroll requests are delayed until we
have completed both of them.
2025-08-05 14:57:52 -07:00
Vector73
6c94266bf9 stream_data: Rename is_stream_archived function.
Renames `is_stream_archived` function to `is_stream_archived_by_id`.
2025-08-05 13:41:08 -07:00
Kislay Verma
47905d7812 left_sidebar_navigation_area: Reduce the use of ??.
This fixes https://github.com/zulip/zulip/pull/35075#discussion_r2232052221.
Using an inline `??` seems to be the best choice.

Fixes part of #35494.
2025-08-05 13:38:41 -07:00
Sayam Samal
a34d033ec1 stream_list: Fix focus behavior for topic list search box.
This commit ensures that the focus on the topic list search box is only
triggered when the user clicks on the "SHOW ALL TOPICS" button, and not
when the narrow changes. This prevents unwanted focus behavior when
switching between different narrows/views which interfered with the
focus states of the compose box.
2025-08-05 13:21:53 -07:00
Aman Agrawal
8207eaab55 left_sidebar: Refactor to support user's navigation view preference.
Co-authored-by: Aditya Chaudhary <aditya.chaudhary1558@gmail.com>
2025-08-04 18:33:36 -07:00
Aditya Kumar Kasaudhan
a0ae465b46 sidebar: Refactor left sidebar navigation list import.
This commit refactors to import the full
`left_sidebar_navigation_area` module instead of
individual functions. This allows calling multiple
functions easily and prepares for upcoming navigation
view changes.
2025-08-04 18:33:36 -07:00
Prakhar Pratyush
4070f5e512 onboarding: Remove <b> from the headings of introduce zulip view modals.
This commit removes bold from the heading of:
* introduce inbox view modal
* introduce recent conversations view modal
2025-08-04 18:25:49 -07:00
Prakhar Pratyush
d73397a221 onboarding: Remove channel name from channel created modal heading.
This commit removes the channel name from the heading of the
first channel created modal.
2025-08-04 18:25:49 -07:00
Sahil Batra
524442bf44 streams-ui: Add UI to update and archive channel folders.
This commit adds edit and delete buttons in the dropdown
list for folder.

Fixes #35498.
2025-08-04 13:22:11 -07:00
Sahil Batra
da53d5b978 dropdown-widget: Handle button click in a separate click handlers.
This commit refactors code for DropdownWidget to handle clicks
on edit and delete buttons in a separate click event handler
and not in the handler for selecting one of the items in
dropdown.

This is important to make sure that selected value stored for
dropdown widget is not updated on clicking the icon.
2025-08-04 13:22:11 -07:00
Sahil Batra
e70d8c7a80 streams-ui: Reset folder dropdown if selected folder is archived.
This commit adds live-update code to reset the dropdown when user
is changing the folder for a channel or setting the folder for a
new channel and the selected folder is archived.
2025-08-04 13:22:11 -07:00
Sahil Batra
7be824d090 settings: Move function to set up folder widget dropdown. 2025-08-04 13:22:11 -07:00
Sahil Batra
e7cb472188 dropdown-widget: Pass aria-label for icon buttons in options.
This commit updates code to pass aria-label for icon buttons
in dropdown widget options so that they can be used in
dropdown_list.hbs template instead of directly defining them
in the template file.

We currently show buttons in saved snippets dropdown only
so defining the labels in template file worked correctly
but it is good to pass them as variables so that it is
simpler to add buttons for other dropdowns when required.
2025-08-04 13:22:11 -07:00
Maneesh Shukla
74148f2e0b
desktop-notification-banner: Remove the banner form the org settings.
The `update_desktop_notification_banner` line removed had been added in #34865,
to handle the case of opening the default user settings panel after previously opening
the personal; notifications settings panel, and is no longer required.
2025-08-04 10:02:07 -07:00
Lauryn Menard
7a9b78f1f5 settings: Add user setting to ignore channel folders in left sidebar.
Some checks failed
Check feature level updated / check-feature-level-updated (push) Has been cancelled
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-10.0, 10.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
Fixes #35573.
2025-08-01 09:18:19 -07:00
Maneesh Shukla
021af590e6 upload-stat: Redesign upload space stats banners.
Fixes: #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
da5c411054 banners: Redesign the invitation permission banners.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
13b78b7039 banners: Redesign mobile push notifications banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
b0241bfa3c banners: Redesign group info banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
3651748d31 banners: Redesign stream info banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
a93a015b21 banners: Redesign organization upgrade banners.
This commit redesigns the upgrade and sponsorship banners by adding
AVAILABLE_ON_STANDARD, UPGRADE_ACCESS_BANNER, and
UPGRADE_OR_SPONSORSHIP_BANNER.

Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Maneesh Shukla
e52ee6ee98 banners: Remove the permission banners from Settings/ Users.
This commit removes the permission banners from Settings / Users / Users
and Settings / Users / Deactivated.

Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Karl Stolley
6d4cd1b9d0 compose: Correct faulty logic for determining attention state. 2025-07-31 11:30:00 -07:00
Pratik Chanda
c62938a1b1 message_send: Fix update draft error when message send fails.
Currently, we save a draft copy in case message send fails on server
but this only saves a copy of message when it has savable message
length. Short message doesn't save a copy and throws an error.

This commit introduces a new option `force_save` to `update_draft`
and saves any message regardless of message length if passed true.
2025-07-30 18:14:19 -07:00
Sahil Batra
2a09a66f2d drafts-ui: Fix pressing "Enter" when there are no drafts.
This commit fixes an assertion error on pressing "Enter" in
drafts UI when there are no drafts.
2025-07-30 17:36:15 -07:00
Sahil Batra
df5669d546 stream-settings: Sort folders in dropdown by name.
Folders shown in dropdown are now sorted by name instead of ID.
2025-07-30 11:04:16 -07:00
Alex Vandiver
2491dc47e8 i18n: Swap three docs for ellipsis. 2025-07-30 13:45:53 +00:00
Evy Kassirer
033ef953db left_sidebar: Fully rerender stream list when count display policy changes.
Now that there are many counts to update, we may as well just rerender
the whole stream list.
2025-07-29 17:37:29 -07:00
Evy Kassirer
07b05f3c78 left_sidebar: Apply summary counter setting only to home view.
Fixes #35326.

Previously, the visibility of unread counts for both the home view and
the "CHANNELS" heading was controlled by the "Hide unread summary counts"
setting. Now, it controls only the visibility of unread counts in the
home view.
2025-07-29 17:37:29 -07:00
Evy Kassirer
ef052182b1 left_sidebar: Clean up hide_unread_counts vs hide-unread-messages-count.
Now the former is only used in the channels list (headers and inactive
toggles included) and the latter is only used for the home view.

Note that this changes some behavior, notably the header and inactive
toggles now show the masked dots when all unread markers in them are
also masked.
2025-07-29 17:37:29 -07:00
Tim Abbott
3c6c2c1d5a notify_local_mixes: Reorder for better readability.
No functional changes, just simpler conditionals.
2025-07-29 12:52:56 -07:00
Aman Agrawal
e5ca153673 message_view: Fix scroll jumps to top when user sends a message.
When navigating user to a `near` narrow if
`first_unread_msg_id_pending_server_verification`,
we didn't remove the `with` term, which results in
`is_conversation_view_with_near` check failing and hence
results in unexpected behaviour.
2025-07-29 12:46:16 -07:00
Aman Agrawal
3dec633ac4 compose_notifications: Extract function to show scroll to view banner. 2025-07-29 12:46:16 -07:00
Alya Abbott
641a436b44 preferences: Update inactive channels preference setting for new UI.
"Hide" is a better verb with the channel folders UI.

Also automatically hide inactive channels at 20+ susbscribed channels,
as we have more content in the left sidebar now.
2025-07-28 23:52:55 -07:00
Sahil Batra
db00ceaeb2 register: Pass channel folder max name and description length.
This commit adds "max_channel_folder_name" and
"max_channel_folder_description" fields to response.

Also updated webapp to use these fields instead of hardcoding
the values.
2025-07-28 23:12:58 -07:00
Evy Kassirer
769dc06704 left_sidebar: Rename OTHER CHANNELS folder to CHANNELS.
We're changing this so that in views like inbox (which
only shows locations with unreads), it feels a bit weird
for it to possibly only have a "DIRECT MESSAGES" and then
"OTHER CHANNELS" section, if your only unreads are in
non-pinned folders.

More discussion here:
https://chat.zulip.org/#narrow/channel/101-design/topic/channel.20folders.20in.20left.20sidebar.20.2331972/near/2231091
2025-07-28 22:10:14 -07:00
Sahil Batra
04a356b4a1 streams-ui: Focus on name input after opening folder creation modal. 2025-07-28 22:09:16 -07:00
Evy Kassirer
c9cee7ece2 left_sidebar: Don't scroll stream into view on folder update.
It's an administrator action to edit channel folder membership, so it
doesn't make sense to update the user view for this action.

Fixes #35493.
2025-07-28 17:47:03 -07:00
Prakhar Pratyush
fc6cd9a966 settings: Add require_e2ee_push_notifications realm setting.
This commit adds a realm setting:
"Require end-to-end encryption for push notification content".

This commit just involves backend & UI changes to add the setting,
the impact of this setting is in the next commit.

Fixes part of #35370.
2025-07-28 17:06:59 -07:00
apoorvapendse
a7664187df unreads: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
208372d0d2 recipient_row: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
30d8ba591a favicon: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
ceb9367bc4 recent_view: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
03a2d9f644 move_message: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
8ca2ec4363 inbox: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
Sahil Batra
3483c1dbcb server_events_dispatch: Handle channel_folder/update event. 2025-07-28 12:52:40 -07:00