Commit Graph

63435 Commits

Author SHA1 Message Date
Prakhar Pratyush
1462c8ac1b migration: Rename 'general chat' topic to empty string topic.
Zulip now supports empty string as a valid topic name.

For clients predating this feature, such messages appear
in "general chat" topic. Messages sent to "general chat" are
stored in the database as having a "" topic.

This commit adds a migration to rename the existing
"general chat" topic in the database to "".

Fixes parts of #32996.
2025-02-26 13:53:39 -08:00
Alya Abbott
d731f0d7a8 typeahead: Clarify that silent mention hint currently applies. 2025-02-26 13:38:16 -08:00
roanster007
b61fb243f7 typeahead: Re render header html for every update in user string.
Previously, the typeahead's header html used to be updated only
once -- after it is shown.

This caused stale state in compose box typeaheads -- when user
starts with an `@`, the typeahead is shown for the first time,
and the header html is rendered. Then when next character is
`_` (silent mention), the header html is no longer updated since
it is already updated once when `@` is used.

This is fixed by updating the typeahead everytime the user string
is updated.
2025-02-26 13:38:16 -08:00
Lauryn Menard
5e7f9ccb0b help: Update links for information about users to new intro article.
Updates "help/manage-a-user" links that are contextually for general
information about users to go to the new "help/introduction-to-users"
article.

Adds a link to "Manage a user" in the related articles section of
the new intro to users article.
2025-02-26 13:22:12 -08:00
apoorvapendse
8b9ba36465 copy_and_paste: Split copy and paste.
Note that the puppeteer tests only tested
copying whereas the node tests only tested
pasting, which is why the puppeteer tests
for pasting and node tests for copying are
absent after this split.
2025-02-26 13:15:50 -08:00
harshbansal8705
803988d206 sidebar_ui: Fix positioning of unread dot on left sidebar toggle button.
This commit fixes the inconsistent positioning of the unread dot
on the left sidebar toggle button. Instead of using fixed pixel
values, the position is now defined using a relative percentage,
ensuring consistent alignment.

The unread dot's dimensions are also expressed in ems for better
scaling and alignment at different font-sizes. And an unnecessary
(and confusing) 0 was removed from the templates.

Co-Authored-By: harshbansal8705 <harsh@harshbansal.in>
2025-02-26 13:13:51 -08:00
Aman Agrawal
6fc9762f5d left_sidebar: Change icon.
We use a different icon whose dashed line version is visible when
left sidebar is visible and solid line version is visible if
left sidebar is hidden.
2025-02-26 13:13:51 -08:00
Aman Agrawal
52e8b1e1a3 navbar: Move userlist-toggle to be the right most icon. 2025-02-26 13:13:51 -08:00
Karl Stolley
f212f78331 help_center: Update presentation of user circles. 2025-02-26 13:12:32 -08:00
Maneesh Shukla
606d1e9691 presence_data: Fix last_active_time for users with no last_active_time.
There's a rare possibility for a user to have no last_active_time. In
such a case, we always want to fall back to date_joined for displaying
"Last active" in the UI.

Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-02-26 12:51:57 -08:00
Mateusz Mandera
9649e0d7c0 presence: Fix for last active time for invisible mode.
Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-02-26 12:51:57 -08:00
Saubhagya Patel
23ad52f867 css: Remove margin-top from move messages count if empty.
This commit makes sure that the top margin is unset
from the move messages count paragraph if it is
empty, fixing the layout in the move topic modal.
2025-02-26 12:37:29 -08:00
evykassirer
47d92cf749 navbar: Remove too-wide fixed width for right portion.
This width should be set for .column-right at wider screens,
which it already is in another CSS rule, so this style was a
duplicate. The duplicate was causing issues because it was
overriding the `width:auto` that comes into play at narrower
screens when the buddy list isn't always visible. When the
header right column is too wide, it covers up the search button
and makes it not hoverable or clickable anymore. This fixes
that.
2025-02-26 10:37:11 -08:00
evykassirer
b5dc33be89 search: Fix bug where icon wasn't displaying on narrow screens. 2025-02-26 10:37:11 -08:00
Shubham Padia
e57c43b705 bots: Do not remove bot from inaccessible streams on owner change.
See
https://chat.zulip.org/#narrow/channel/101-design/topic/manage.20bot.20access.20feature.20removal
2025-02-26 09:30:24 -08:00
Tim Abbott
2c8d74735a postprocess_content: Drop invalid inline image elements.
These shouldn't exist without bugs in the Markdown processor, but at
least some ancient messages in chat.zulip.org seem to have them.
2025-02-25 22:40:36 -08:00
Shubham Padia
d18593b5be settings: Rename Filter x to Filter for channel and group settings. 2025-02-25 22:02:07 -08:00
apoorvapendse
395a0240f8 copy_and_paste: Remove redundant math rule.
We have made considerable progress in implementing
KaTeX copy and paste :)
2025-02-25 21:39:26 -08:00
apoorvapendse
7bc3a7a664 copy_and_paste: Fix typo in explanation comment. 2025-02-25 21:39:26 -08:00
apoorvapendse
ff8ffbc2fa copy_and_paste: Reuse execute_copy for clipboard. 2025-02-25 21:39:23 -08:00
apoorvapendse
0eabdfa9ad copy_and_paste: Improve copying within math blocks.
If you select just one expression,
it gets resolved to an inline expression
We just search for the closest .katex-display and
set its contents in the selection range, which is
basically it's immediate `.katex` child.

In case the focus and anchor belong to different
katex-displays, we restore the original selection
to prevent triggering the inline selection which
would end up selecting only one of the n expressions
you selected.
2025-02-25 18:21:07 -08:00
Apoorva Pendse
37b5d539a0 copy_and_paste: Fix copy pasting LaTeX using navigator.clipboard.
We use getRangedAt(0), since we don't support multiple selections.
So only the HTML/text of the first selection is considered.
See: https://stackoverflow.com/questions/23934656/how-can-i-copy-rich-text-contents-to-the-clipboard-with-javascript/71850835#71850835

Fixes:
https://chat.zulip.org/#narrow/channel/9-issues/topic/pasting.20LaTeX/with/2099736.
2025-02-25 18:21:07 -08:00
Saubhagya Patel
f9825142c8 settings: Add frontend to change allow_edit_history to integer field.
This commit implements the frontend of migrating the
`allow_edit_history` setting to `message_edit_history_visibility`.
This allows organizations, to have an intermediate setting to
view only the "Moves" history of the messages.

Fixes #21398.

Co-authored-by: Shlok Patel <shlokcpatel2001@gmail.com>
Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-02-25 18:18:23 -08:00
Saubhagya Patel
d0c5c1cacb settings: Add backend to change allow_edit_history to integer field.
This commit implements the backend of migrating the
`allow_edit_history` setting to
`message_edit_history_visibility_policy`.
This allows organizations, to have an intermediate setting to
view only the "Moves" history of the messages.

We still pass `realm_allow_edit_history` in `/register` response
though for older clients with its value being set depending on the
value of `realm_message_edit_history_visibility_policy`. We set
`realm_allow_edit_history` to `False` if the
`realm_message_edit_history_visibility_policy` is "None", and
`True` for "Moves only" or "All" message edit history.

Fixes part of #21398.

Co-authored-by: Shlok Patel <shlokcpatel2001@gmail.com>
Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-02-25 18:18:23 -08:00
userAdityaa
d9589eba2c banner: Aligned the username icon for topic header.
This commit fixes the alignment of the user emoji
in the topic header. Previously, the icon in the
user's name was slightly cut off at the top. This
issue was resolved by setting the line height to 19px.
2025-02-25 15:54:47 -08:00
evykassirer
e903c018ec user_status: Convert margin to padding for taller hover highlight. 2025-02-25 15:54:14 -08:00
evykassirer
1899ac9766 user_status: Scale emoji with user's font-size. 2025-02-25 15:54:14 -08:00
Karl Stolley
1f8b2b9046 stars: Placehold container width in local echo. 2025-02-25 15:53:26 -08:00
Shubham Padia
a80b2e478c get_streams: Return metadata access streams in include_all.
This parameter is no longer restricted to realm administrators. Any
user can get the streams they have metadata access to by setting this
parameter to true.
2025-02-25 14:25:43 -08:00
evykassirer
23bbaf0578 user_profile: Override default width of input, to avoid overflow. 2025-02-25 14:09:47 -08:00
Alya Abbott
f7860249a9 help: Add introduction to users page. 2025-02-25 13:26:41 -08:00
Alya Abbott
4c9e9155ff help: Tweak user profile help page. 2025-02-25 13:26:41 -08:00
Alya Abbott
376d30fd0e help: Reorganize user card properties to match current UI. 2025-02-25 13:26:41 -08:00
Alya Abbott
ba5f7db498 help: Note that user cards show deactivation status. 2025-02-25 13:26:41 -08:00
Alya Abbott
4aa83de15b help: Add article on viewing group members. 2025-02-25 13:26:41 -08:00
Alya Abbott
0f1473a7fd help: Reorganize left sidebar, especially admin sections. 2025-02-25 13:26:41 -08:00
Alya Abbott
b84124ba2c help: Document fancy HTML pasting of Zulip links. 2025-02-25 13:26:41 -08:00
Sahil Batra
7d0cef6911 streams: Do not fetch can_add_subscribers_group unnecessarily.
In public_stream_user_ids function, which is used to get users
who can access public streams, there is no need to fetch members
of can_add_subscribers_group as we eventually exclude guests
from them and we have already included all non guest users of
the realm.
2025-02-25 13:17:15 -08:00
Sahil Batra
d29ac45b99 streams: Remove unused code for can_add_subscribers_group label.
Text shown in parentheses with label for can_add_subscribers_group
was removed in befe49c293.
2025-02-25 13:17:15 -08:00
Sahil Batra
166d9282b8 streams: Use can_subscribe_group setting for checking permission.
This commit adds code to use can_subscribe_group setting in webapp.

Fixes part of #33417.
2025-02-25 13:17:15 -08:00
Sahil Batra
62478f900d streams: Modfiy stream permissions to use can_subscribe_group.
Fixes part of #33417.
2025-02-25 13:17:15 -08:00
Sahil Batra
bafec11c61 streams: Add new can_subscribe_group permission setting.
Fixes part of #33417.
2025-02-25 13:17:15 -08:00
evykassirer
c1c321fd34 settings: Scale zulip icons with font size. 2025-02-25 13:16:07 -08:00
evykassirer
63fe461bb4 subscriptions: Align header icon with flex.
This will help with keeping the icon centered when we update
it to change size with font-size settings.

This CSS technically also applies to user groups but I don't
think there are any icons used there.
2025-02-25 13:16:07 -08:00
evykassirer
77c4de0cb2 settings: Remove dead CSS for globe icon.
Any globe icon that matches this rule gets font-size
from .large-icon .zulip-icon above, so this font-size
is never used.
2025-02-25 13:16:07 -08:00
Tim Abbott
7f391b8530 css: Move message_length_toggle styles to message_row.css.
The main goal is to have it in the right file, but also it doesn't
need to be nested as it was.
2025-02-25 12:26:57 -08:00
Tim Abbott
e1ce78770a css: Consolidate bookend styles. 2025-02-25 12:26:57 -08:00
Aman Agrawal
f5dfc43ce9 bookend: Only show links on the last bookend.
Fixes #33060.
2025-02-25 12:26:57 -08:00
Aman Agrawal
f19cf73ef8 bookend: Add button to subscriber user to channel from bookend.
Add a "Subscribe" link at the end of the
"You are not subscribed to {channel}."
divider, that subscribes the user to the current channel.
2025-02-25 12:26:57 -08:00
Anders Kaseorg
f8bbf228ef pyproject: Remove py3dns.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-25 11:53:08 -08:00