Commit Graph

63435 Commits

Author SHA1 Message Date
Karl Stolley
34d6d3948e left_sidebar: Use font metrics to adjust browse-more label. 2024-12-10 16:27:43 -08:00
Karl Stolley
bc37be5f40 left_sidebar: Match browse-more link grid to other sidebar row values. 2024-12-10 16:27:43 -08:00
Karl Stolley
0b940602c3 left_sidebar: Better structure and style browse-more line. 2024-12-10 16:27:43 -08:00
Maneesh Shukla
74708cfd03 settings_users: Remove an unused block of code.
This commits remove the unused block of code which involves
`failed_listing_users` when there is no users to list.

Since, this is a case which is not possible to occur because there
should always be at least one active user, i.e. yourself.
2024-12-10 15:45:30 -08:00
evykassirer
c067b06f8e compose: Clear preview area when starting a new draft. 2024-12-10 15:44:02 -08:00
Tim Abbott
dc58c8450f user_group_edit: Document group creator API details. 2024-12-10 12:11:59 -08:00
Varun Singh
010e2b9867 user_group_edit: Convert module to TypeScript. 2024-12-10 12:07:46 -08:00
Varun Singh
0ed81f6bef user_group_edit: Don't mutate data object.
Instead of mutating data object with fields
that it does not have at declaration, we should declare the
complete object once.
This is a prep-commit for upcoming TypeScript migration of module.
2024-12-10 12:07:45 -08:00
Varun Singh
6e06a452db settings_org: Consistenly pass arguments as jQuery objects. 2024-12-10 12:07:45 -08:00
evykassirer
7bd4016254 message_events: Convert module to typescript. 2024-12-10 10:52:01 -08:00
evykassirer
f241aa77c1 message_events: Don't accept undefined filter in filter_has_term_type.
Accepting an undefined Filter  has no advantage; every caller either
passes a defined Filter or has to later check for undefined anyway.
2024-12-10 10:52:01 -08:00
evykassirer
ca4e425031 message_edit: Don't validate stream message mentions for DMs.
This was passing typechecking previously because of an
incorrect assertion and NaN getting into `validate_stream_message_mentions`.
2024-12-10 10:16:27 -08:00
Alex Vandiver
2250ae3f0d migrations: Update user and realm preferences of zh_Hant to zh_TW. 2024-12-10 10:00:45 -08:00
Alex Vandiver
25069c8d47 i18n: Merge zh_Hant into zh_TW. 2024-12-10 10:00:45 -08:00
Anders Kaseorg
84d5ef1285 upload: Show text/plain uploads inline.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-10 09:51:57 -08:00
Sahil Batra
f4cbdd8c9c css: Remove unnecessary CSS for ".clear_search_button".
We can remove some of the CSS properties for
".clear_search_button" selectors because they
were being overridden by CSS set using more
specific selectors or by CSS set using
".bootstrap-btn" selector.

As a result, we can remove some the overriding
CSS as well where they were being used to set
default values.
2024-12-10 09:47:01 -08:00
Sahil Batra
c4058ffc22 user_profile: Use grid layout for stream search input.
This commit updates CSS to use grid layout for stream
search input in user profile modal so that we can have
clean CSS and do not have different values for padding,
right and margin properties at different places.

This also fixes the alignment of "x" button.

Also, the heading and search input were not aligned
perfectly, so changed the CSS to they align better.
2024-12-10 09:47:01 -08:00
Sahil Batra
835bedb515 recent-view: Use grid layout for search input.
This commit updates CSS to use grid layout for search input
in recent conversations view so that we can have clean CSS
and do not have different values for padding, right and margin
properties at different places.

This also fixes the alignment of "x" button.
2024-12-10 09:47:01 -08:00
Sahil Batra
1555e99abe settings: Use grid layout for search in stream and groups UI.
This commit updates the search input to in stream and groups
UI to use grid layout. This also helps in fixing the alignment
of the "x" button.
2024-12-10 09:47:01 -08:00
Maneesh Shukla
6a76fcfd0e settings: Disable the move-handle for new-choice-row.
This commit hides the move-handle for the new-choice-row in the
profile field choice editor, since the empty row can't be moved.

Fixes: #32612.
2024-12-09 17:00:14 -08:00
Lauryn Menard
752e8625d0 help: Add pick plan step for self-hosted invoice billing upgrade. 2024-12-09 10:11:59 -08:00
Aman Agrawal
0b2fdc4506 tippyjs: Fix user typeahead hidden when hovering over emoji name.
Hiding on popovers on hovering over emoji name is not required since
this just a tooltip and not a popover.
2024-12-09 10:02:50 -08:00
Aman Agrawal
4b82c3258f narrow: Fix unmuted and followed topics not visible in combined feed. 2024-12-08 18:34:28 -08:00
Aman Agrawal
276e547824 user_topics_ui: Rerender combined feed to make unmuted topics visible.
Since combined feed no longer contains a continuous history of
muted messages, we need to rerender it display the newly visible
messages.
2024-12-08 18:34:28 -08:00
Aman Agrawal
23cd8b8564 message_list_data: Use common logic for filtering msgs in-home. 2024-12-08 18:34:28 -08:00
Aman Agrawal
dcdd54fcea stream_muting: Fix stream msgs not displayed when stream in unmuted. 2024-12-08 18:34:28 -08:00
Aman Agrawal
91714b5f1b user_topics: Extract method to check if topic is visible in-home. 2024-12-08 18:34:28 -08:00
Jenna Jaehnig
0f59e2e788 portico: Load medium-sized avatar in preview.
This commit is to use medium-size avatar images when previewing avatars during the copy account settings flow. Before this commit, the avatar images were blurry when using the avatar from an existing account while joining a new realm. Now, the avatar is clear.

Fixes #32604.
2024-12-08 16:02:55 -08:00
Emil Grehn
83a121c7e4 compose_recipient: Rename funciton open_compose_recipient_dropdown.
Renames the function 'open_compose_recipient_dropdown'
to 'toggle_compose_recipient_dropdown'
to better describe what it actually does.
2024-12-07 22:00:08 -08:00
Aman Agrawal
e28dd0fbfb portico: Remove text centering on thanks page. 2024-12-07 21:58:57 -08:00
Tim Abbott
40c074c8b8 register: Fix missing translation tag on 'Email'. 2024-12-07 21:56:34 -08:00
Tim Abbott
c39cb05bf4 docs: Rewrite other Linux requirements text.
This is a bit clearer and more appropriate for the heading-based setup
of this page.
2024-12-06 14:37:48 -08:00
Karl Stolley
0200753978 dev_docs: Establish Other Linux tab. 2024-12-06 14:37:48 -08:00
PieterCK
6543dadd0f slack_import: Refactor a convert_slack_formatting.
This prep commit extracts the logic for converting Slack formatted text
into Zulip friendly markdown from `convert_to_zulip_markdown` into a new
helper function, `convert_slack_formatting`.

This is done to make reformating logic be reusable else where such as in
the Slack webhook or Slack incoming webhook.
2024-12-06 13:11:44 -08:00
PieterCK
4b472611d0 slack_import: Refactor a convert_slack_workspace_mentions.
This prep commit extracts the logic for reformatting Slack mentions into
Zulip mentions from `convert_to_zulip_markdown` into a new helper
function, `convert_slack_workspace_mentions`.

This is done to make the reformatting logic be reusable else where such
as in the Slack webhook or Slack incoming webhook.
2024-12-06 13:11:44 -08:00
PieterCK
ff4d5daef4 slack_import: Reorder functions used in convert_to_zulip_markdown.
This prep commit moves `convert_to_zulip_markdown` and
`convert_markdown_syntax` so that they appear after the various
helper functions used in the main logic for converting Slack
messages to Zulip's formatting. This adjustment aligns with code
style conventions, improving readability.

The change also prepares the codebase for reusing Slack text
reformatting logic in the Slack incoming webhook.
2024-12-06 13:11:44 -08:00
Tim Abbott
7f7698e9b9 popover_menus_data: Fix definitely typo. 2024-12-06 13:11:08 -08:00
Saubhagya Patel
181f5121fb popovers: Hide left sidebar actions popover for empty topics.
This commit changes the behavior of the topic actions popover
(displayed from the left sidebar via the `...` menu) to no
longer appear for empty topics (topics with no messages).
Instead, a message is displayed: "There are no messages in
this topic.", along with the topic visibility options and
the name of the topic.

Fixes: #32098.
2024-12-06 13:09:12 -08:00
Emil Grehn
57c8120a09 message_forwarding: Fix bug with forward message in combined feed.
Forward message previously didn't open the recipient dropdown
when forwarding from the combined feed.

This commit will also make the messages keep their original
channel or pm-recipient when forwarding from combined feed, to
be consistent with the behavior in the rest of the app.
2024-12-06 11:59:44 -08:00
Emil Grehn
06aab30133 message_forwarding: Make forward message keep original topic by default. 2024-12-06 11:59:44 -08:00
evykassirer
3910211518 buddy_list: Add ellipses cutoff for headers that overflow.
This is mostly for translations.
2024-12-06 11:55:57 -08:00
Alya Abbott
253e7d5dff help: Add a page on managing a user's group membership. 2024-12-06 11:54:16 -08:00
Alya Abbott
cdf31ae5d5 help: Update permissions note for subscribing users to channels. 2024-12-06 11:54:16 -08:00
Maneesh Shukla
d3e74f62e7 presence_data: Add fallback logic for date_joined. 2024-12-06 11:50:31 -08:00
Sahil Batra
118e6c36f8 message_send: Fix checking permission to send DMs.
This commit fixes the code to add a check for whether the
setting is set to an anonymous group or not before checking
if the setting is set to "Nobody" group by checking the
group name.
2024-12-06 09:23:45 -08:00
Prakhar Pratyush
3bad36ef8c queue: Rename queue_json_publish to queue_json_publish_rollback_unsafe.
This commit renames the 'queue_json_publish' function to
'queue_json_publish_rollback_unsafe' to reflect the fact that it doesn't
wait for the db transaction (within which it gets called, if any)
to commit and sends event irrespective of commit or rollback.

In most of the cases we don't want to send event in the case of
rollbacks, so the caller should be aware that calling the function
directly is rollback unsafe.

Fixes part of #30489.
2024-12-06 09:23:02 -08:00
bedo
1847086044 subscription: Remove unnecessary select_related fields and clean up.
Removes the unnecessary fields from bulk_access_users_by_email and
bulk_access_users_id, while also removing duplication of these lists
of fields.

"base_bulk_get_user_queryset", used when fetching a user
other than the acting user.

"base_get_user_queryset", used when fetching the acting user,
prefetching more fields.

There remains some inconsistency in the models.py functions that may
merit further investigation.
2024-12-05 17:02:07 -08:00
Anders Kaseorg
7466ee977f empty_feed_notice: Update “stream” to “channel”.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-05 16:54:38 -08:00
evykassirer
e36971c7e1 sidebars: Use pixels for the sidebar spacing.
This, as well as increasing the spacing by 5px, ensures that the left
sidebar bottom elements aren't overlapped by URLs that the browser
shows in the corner when hovering links.
2024-12-05 16:42:54 -08:00
evykassirer
2fdb47ab4d right_sidebar: Shrink invite user icon to line up text. 2024-12-05 14:33:23 -08:00