Commit Graph

66287 Commits

Author SHA1 Message Date
Alex Vandiver
e73dd3d51f move_topics_modal: Remove spurious   characters. 2025-08-11 14:39:14 -07:00
Karl Stolley
7a2116ab5d compose: Suppress low-attention styles with keyboard focus. 2025-08-11 14:37:56 -07:00
Prakhar Pratyush
870591e2e5 test_urls: Skip api_docs/unmerged.d/ while testing api doc pages.
We missed to skip `api_docs/unmerged.d/` in 9ec15e99bd,
resulting in test failure in pull requests where it is present.
2025-08-11 14:37:31 -07:00
Karl Stolley
7dce8df4e8 left_sidebar: Avoid clipping tall glyphs in DM groups, topics. 2025-08-11 14:36:38 -07:00
Tim Abbott
9ca22320cd stream_list: Extract ui_util.get_left_sidebar_search_term.
This will support it being accessed from all the sidebar modules.
2025-08-11 14:22:32 -07:00
Tim Abbott
ae04cdee78 left_sidebar: Rename stream-search-and-add for global search.
This will be more readable once we've moved the search input.
2025-08-11 14:22:32 -07:00
Tim Abbott
0ccfb7fdf0 left_sidebar: Rename stream-list-filter for global search.
This will be more readable once we've moved the search input.
2025-08-11 14:22:32 -07:00
Tim Abbott
041597e006 left_sidebar: Rename stream_search_section for global search.
This will be more readable once we've moved the search input.
2025-08-11 14:22:32 -07:00
Aman Agrawal
ec73181405 sidebar_ui: Migrate function to avoid circular import. 2025-08-11 14:22:32 -07:00
Aman Agrawal
56bca6d56d pm_list: Remove dependency on sidebar_ui.
This is to remove cyclic dependency between pm_list and sidebar_ui
in future commits.
2025-08-11 14:22:32 -07:00
Aman Agrawal
f359e357b8 left_sidebar: Use hidden-by-filters to hide top left row items. 2025-08-11 14:22:32 -07:00
Aman Agrawal
845ee604a8 left_sidebar_navigation_area: Extract function to expand views. 2025-08-11 14:22:32 -07:00
Sahil Batra
6292b03b33 overlays: Handle restoring messages in inaccessible streams.
On trying to restore a draft or a scheduled message in a
stream that is no longer accessible, compose box is opened
without selecting any stream with dropdown open.

Previously, it raised an AssertionError.
2025-08-11 12:55:50 -07:00
Sahil Batra
f1f317c8c3 schduled-msgs-ui: Fix messages scheduled in inaccessible streams.
If there are scheduled messages in a stream that is no longer
accessible, just keep the stream name empty for the message in
the scheduled messages overlay. Previously, there was an
AssertionError when trying to open the scheduled messages
overlay and it was opened empty.
2025-08-11 12:55:50 -07:00
Tim Abbott
941a91bc6c Revert "compose_actions: Clean up unnecessary rewire."
This reverts commit 56faf6b22a.

I need to merge another PR that wasn't updated.
2025-08-11 12:55:50 -07:00
Alex Vandiver
80e900c45e docs: PostgreSQL 17 support was backported to 10.x.
In 85b2e6a1e9.
2025-08-11 12:37:27 -07:00
Kislay Verma
798f7391f3 stream_list_sort: Improve test by using type-correct data.
We use `make_stream` to use type-correct objects in the test.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
56faf6b22a compose_actions: Clean up unnecessary rewire.
We organically create a user group so that the
pertinent code paths are accessed.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
c134cc398f tests: Add library function to create user groups.
This is done to ensure the objects exactly match
the schema/types during tests.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
e4b0af5536 compose_actions: Improve tests by using lib functions.
We use the `make_stream` and `make_user` functions to
make the objects type-correct.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Kislay Verma
f209c65af3 composebox_typeahead: Clean up override_rewire.
We replace the rewires with `peer_data.set_subscribers`.
This also adds the passed stream_id to the set
`fetched_stream_ids`, which allows us to eliminate the
mocking of `channel.ts` in the test file. The mock was
earlier required because of a call to
`peer_data.maybe_fetch_stream_subscribers` in
`compare_people_for_relevance`.

Fixes part of #32326.
2025-08-11 11:57:49 -07:00
Sayam Samal
ff70cb8059 user_status: Add INTERACTIVE_HOVER_DELAY to status emoji picker tooltip. 2025-08-11 11:54:18 -07:00
Sayam Samal
9b979d4072 user_status: Add active state styling to status emoji picker.
This commit adds the active state styling to the status emoji picker,
when the status emoji picker popover is open.
2025-08-11 11:54:18 -07:00
Sayam Samal
cdea8e9d51 user_status: Improve custom user status picker input styling.
As a follow-up to the previous commit, this commit improves the styling
of the custom user status picker input.

The changes in this commit adjust the styling of the input field towards
the new redesigned inputs while shying away from using the input
component to avoid the complexity involved in including the status
emoji selector in the input component.
2025-08-11 11:54:18 -07:00
Sayam Samal
405c8f094d hotkey: Trigger click on target of "trigger-click-on-enter" element.
This commit fixes the "trigger-click-on-enter" functionality to
correctly trigger a click event on the element that has the class
"trigger-click-on-enter". The "currentTarget" was incorrectly used,
which referred to the element that the event handler is bound to,
instead of the actual target of the event.
2025-08-11 11:54:18 -07:00
Sayam Samal
6f6e3b9f48 user_status: Improve selectable default user status options styling.
This commit improves the styling of the default user status options in
the status picker modal by adding hover, focus and active state styles
similar to that of the popover menu options.

Fixes #35005.
2025-08-11 11:54:18 -07:00
Karl Stolley
d21a4ad5db left_sidebar: Make highlighted new-channel area clickable. 2025-08-11 11:49:59 -07:00
Evy Kassirer
4585d87cec stream_list: Always show expanded muted/inactive channels. 2025-08-11 11:45:45 -07:00
Evy Kassirer
bb43cfe9c7 stream_list: Show toggle button above muted/inactive channels. 2025-08-11 11:45:45 -07:00
Evy Kassirer
cf5e7a27ba left_sidebar: Include unmuted counts in muted channels in toggle count. 2025-08-11 11:45:45 -07:00
Evy Kassirer
fd08149993 left_sidebar: Use icons for the inactive/muted toggle.
Finishes #35552.
2025-08-11 11:45:45 -07:00
Evy Kassirer
c56ddf9ba4 left_sidebar: Combine muted and inactive channels.
Part of #35552.
2025-08-11 11:45:45 -07:00
Evy Kassirer
3ced9a1ad3 left_sidebar: Don't fade inactive channels (unless muted).
Part of #35552.
2025-08-11 11:45:45 -07:00
Alex Vandiver
ef5796a05b docs: Explain how and when to terminate manage.py process_queue --all. 2025-08-11 11:08:07 -07:00
Evy Kassirer
2be9494f02 buddy_list: Skip collapsed section users during keyboard navigation.
Reported here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20sidebar.20keyboard.20nav.20doesn't.20skip.20collapsed.20sections/near/2214081
2025-08-11 10:43:32 -07:00
Evy Kassirer
c456bf855d buddy_list: Collectively store user_ids and is_collapsed in section type. 2025-08-11 10:43:32 -07:00
Karl Stolley
66f942f1c4 compose: Preserve high-attention row on invalid DMs. 2025-08-11 10:36:21 -07:00
Karl Stolley
1cc453ee8e compose: Consider unpilled input in setting attention level. 2025-08-11 10:36:21 -07:00
Karl Stolley
8a217d8cc7 compose: No longer update attention on recipient change.
This is superfluous with attention being calculated on
focus and blur events.
2025-08-11 10:36:21 -07:00
Karl Stolley
aae826744e compose: Restore low-attention recipient row when narrow matches. 2025-08-11 10:36:21 -07:00
Maneesh Shukla
224fd3df6b banners: Fix asymmetric margin on banners.
This commit fixes the asymmetric margin on banners by conditionally
rendering the action buttons only if buttons are present. Otherwise,
empty action buttons were being rendered in the DOM, applying the gap
property between the banner label and the empty action buttons.

Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/asymmetric.20margin.20on.20banner.
2025-08-11 10:28:57 -07:00
Shubham Padia
00f0b58ee4 starlight_help: Use Zulip favicon for the new help center.
The favicon should ideally change for self-hosted organizations if they
have configured it. We track the work for this in #35681 to look at
after the cutover.
2025-08-11 10:25:04 -07:00
Evy Kassirer
259fd250ed stream_list: Update unread counts when building the sidebar.
This bug was introduced by 8817284f7a
which should have included this line.
2025-08-11 10:15:15 -07:00
Aman Agrawal
6d9b282b86 inbox: Match style of inbox view unread count folder to left sidebar. 2025-08-11 10:14:42 -07:00
Mateusz Mandera
f119c33789 delete_in_topic: Don't fetch .recipient for each message in a loop.
The grouping logic in `do_delete_messages` calls
`message.is_stream_message()` in a loop, which needs to access
message.recipient. This is obviously super inefficient if .recipient
hasn't been prefetched for the message objects.

`delete_in_topic` is the only function that calls `do_delete_messages`
with many messages, so this is the only spot we need to fix, to address
the immediate bug.
Of course a better improvement would be to fix `do_delete_messages` to
do something smarter than naively accessing message.recipient in a loop.
2025-08-11 10:08:40 -07:00
apoorvapendse
6203861529 zerver: API to create channel.
Fixes #16206.

Co-authored-by: Sahil Batra <sahil@zulip.com>
Co-authored-by: Steve Howell <showell@zulip.com>
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-08 19:29:17 -07:00
Tim Abbott
6ef2591b47 test_invite: Fix a test failing with old databases. 2025-08-08 18:59:37 -07:00
Saubhagya Patel
bb5c87e306 bots: Add a setting to customize the Welcome Bot message.
This commit includes the following changes:
- Add an administrator setting to customize the Welcome Bot
message when sending an invitation.
- Add an API endpoint to test the customized Welcome Bot message
by sending a copy of the message to the administrator.

Fixes #27663.

Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>
2025-08-08 18:59:37 -07:00
Saubhagya Patel
4cafe5f77c invite: Extract CommonInvitationData into a type.
This commit extracts the data returned by the
`get_common_invitation_data()` function in `web/src/invite.ts`
into a new type named `CommonInvitationData`.

Prep commit for #27663.
2025-08-08 18:59:37 -07:00
apoorvapendse
ab48666358 navbar: Use _html variables in template.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-08 18:58:06 -07:00