Commit Graph

7892 Commits

Author SHA1 Message Date
Sayam Samal
ce97244fd8 popup_banners: Add fade-out and close logic to banner close button.
This commit adds the fade-out and close logic to the banner close button
and also moves the `fade_out_popup_banner` method to `popup_banners.ts`.
2025-03-14 10:02:03 -07:00
Sayam Samal
6a075554b6 banners: Restrict window resize event calls to navbar banners only.
The web/src/banners.ts module, was trigger the window resize event for
every banner, which led to unexpected UI bugs and performance issues.

This follow-up commit for 7a96cec774,
restricts the window resize event to only the navbar banners, where
there is a need to recalculate the navbar-fixed-container height and
adjust the UI accordingly.
2025-03-14 10:02:03 -07:00
Tim Abbott
7a96cec774 banners: Don't trigger spurious resize events.
Resizes are very disruptive, and are not required for most
banners. The one exception is the top-of-window banners, which ideally
would also not require a resize, but do impact the geometry of space
available to other components.
2025-03-13 17:41:47 -07:00
Aman Agrawal
bf508ce638 message_view: Notify user when the local first unread was incorrect.
Fixes #33570

When navigating to a narrow based on locally available unread
data with `old_unreads_missing`, we verify the calculated
first unread message id with server and if there is an unread message
prior to the one we calculated locally, we convert the current
narrow into a `near` narrow and show a banner with a button to
allow user to navigate to the correct first unread message.
2025-03-13 17:41:47 -07:00
harshbansal8705
f1e6371bf8 message_editing: Fix unclickable area in bouncing "...".
The bug occurred because clicking on .message-editing-animation was
not triggering the click on .edit-notifications. This commit prevents
this behaviour by setting its property pointer-events to none.

Fixes: #33950
2025-03-13 17:06:47 -07:00
Sayam Samal
955ddc011f inline_topic_edit: Make inline topic edit input field width dynamic.
This commit adds a hidden `topic_value_mirror` span element, and uses
that to dynamically set the width of the input field to the width of
the topic text inside it + some cushion.

Fixes #33844.
2025-03-13 15:58:26 -07:00
Sayam Samal
7753c6bbea inline_topic_edit: Update save button to neutral + quiet button style. 2025-03-13 15:58:26 -07:00
Kartikay5849
136be83502 mentions: Warn on non-silent group mentions with unsubscribed members.
Add a warning banner when a user mentions a group (non-silent) where none
of the members are subscribed to the current stream. The banner informs
the user that the mention won't notify anyone.

Fixes #33545.
2025-03-13 15:55:30 -07:00
Karl Stolley
4454811191 message_view: Better tolerate different opening Markdown elements. 2025-03-13 14:42:14 -07:00
Tim Abbott
219a3c9b09 modals: Move a misplaced comment. 2025-03-13 14:38:16 -07:00
Aman Agrawal
959981d2c9 navigation_tour: Set color of "Let's go" as per standard action btn. 2025-03-13 14:38:16 -07:00
Aman Agrawal
d1704deb52 onboarding_steps: Dim background of navigation tour video. 2025-03-13 14:38:16 -07:00
Prakhar Pratyush
5f3896710f onboarding_steps: Add 'navigation_tour_video' for new users.
This commit adds a one-time modal to display navigation tour
video to new users.

Includes an `NAVIGATION_TOUR_VIDEO_URL` server-setting to specify
the video's URL. When set to None, the modal is not displayed.

Fixes #29304.
2025-03-13 14:38:16 -07:00
Prakhar Pratyush
60498701a4 dialog_widget: Add support to ignore click on overlay.
This commit adds support to the DialogWidget to ignore
the clicks on the overlay and NOT close.

This will be helful in navigation-tour-video dialog widget.
2025-03-13 14:38:16 -07:00
Prakhar Pratyush
c70a3ffb0a populate_db: Mark onboarding steps as seen for existing users.
This commit updates populate_db to mark all onboarding steps as seen
for existing users to avoid unnecessary popups during development.

Developers should create a new user in development environment
to test the onboarding steps.
2025-03-13 14:38:16 -07:00
evykassirer
08ed639763 filter: Validate and parse sender:me when turning into a pill.
Fixes #31315.

We want to parse sender:me with the email when turning it into
a pill, but not before then so that "Sent by me" is still the
search string in the suggestions.
2025-03-13 13:54:14 -07:00
Sayam Samal
44db268fce alerts: Fix blueslip error overlay not interactable.
This is a follow-up to commit cd08c628ba,
and adds the missing `pointer-events: auto` property to the blueslip
error overlay. This makes the blueslip error overlay interactable again.
2025-03-13 13:14:18 -07:00
Prakhar Pratyush
280fd40892 inline_topic_edit: Improve placeholder when topic is not mandatory.
Earlier, we used to show "general chat" as the placeholder.

This commit adds support to show "Enter a topic (skip for general
chat)" as the placeholder when topic is not mandatory in the
inline topic edit input box.

We show "general chat" (as we show in compose topic input box)
when inline topic edit input box is not focused and topic="".

Fixes part of #33846.
2025-03-13 11:30:58 -07:00
Sahil Batra
7d5b655538 popovers: Keep font size of popover constant once it is opened.
When changing font size using controls in personal menu popover
and gear menu popover for spectators, font size of popover is
not change so that buttons do not shift.

Also, arrow shown with the popover is removed once font-size
is changed, as popover will be detached from the element which
was clicked to open it.
2025-03-13 11:08:20 -07:00
Vector73
b31024be47 saved_snippets: Add support for editing saved snippets.
Fixes #33708.
2025-03-13 10:58:36 -07:00
Aman Agrawal
224a3eed87 zulip_test: Expose function get message from id for debugging. 2025-03-13 10:37:03 -07:00
ubaidrmn
94d38a1557 information_density: Remove font size unit from tooltips.
This commit removes the font size unit from information density
tooltips, as a plain number (e.g., 16) feels more natural than
specifying a unit.
2025-03-13 10:24:05 -07:00
Tim Abbott
2c31de0a86 compose: Remove baseline override for recipient picker.
Some checks failed
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-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
After testing the previous commit a bit more, it appears to me that
the typo fix on `first-baseline` that I made was in error; what looks
good and matches the screenshots in the PR was having that line of CSS
be invalid/deleted.
2025-03-12 23:22:06 -07:00
Karl Stolley
e713bcb1db compose: Better align widget icons for long channel names. 2025-03-12 23:15:50 -07:00
Karl Stolley
57ebcc67bc compose: Isolate flex-align to recipient widget. 2025-03-12 23:13:24 -07:00
afeefuddin
6f196c7ec9 composebox_typeahead: Show CrossRealmBots in the typeahead list.
Fixes: #30817
Co-authored-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-03-12 23:11:53 -07:00
roanster007
2c548d4856 settings: Allow "resolve topic" permissions to be managed independently.
This commit separates the "resolve topic" permissions from the
topic editing permissions, through the introduction of setting -
"can_resolve_topics_group" which user group whose members
can resolve topics.

Fixes #21811
2025-03-12 19:32:35 -07:00
Sahil Batra
95eb883872 user_groups: Remove unnecessary function.
get_display_name_for_system_group_option function was used
to get the display name for "Nobody" group for DM permissions
setting in the dropdown menu. Now we use pill input for DM
permissions setting, so there is no need for that function.
2025-03-12 19:32:35 -07:00
Sahil Batra
a91eaacbd1 settings: Fix blinking of save-discard buttons when changing group setting. 2025-03-12 17:18:07 -07:00
Sahil Batra
beec3726dd settings: Don't show save-discard widget unnecessarily.
Previously, save discard buttons were shown even when
changing only the order of pills in the widget.

This commit updates get_group_setting_widget_value to
return member and subgroup IDs in sorted order, as
member and subgroup IDs in original values are also
sorted so the save-discard buttons are not visible
when only order is changed.
2025-03-12 17:18:07 -07:00
Sahil Batra
c62204ac50 settings: Fix live update of realm group settings.
For some settings, their value in "realm" object and the
corresponding dropdown or pill widget for them were not
being live updated on receiving the event.
2025-03-12 17:14:05 -07:00
evykassirer
fbee7db9f1 settings: Scale loading spinner with font-size.
This might be dead CSS, in that most spinners have their styles
overwritten by other CSS. But there are a lot of spinners and
this is hard to look into and know for sure (but it would be good
to as a followup eventually).
2025-03-12 16:32:15 -07:00
evykassirer
1c7d098bac settings_account: Remove change-email loading spinner.
We anyways keep the modal open while request is opened.
2025-03-12 16:32:15 -07:00
evykassirer
de6f15a565 settings: Move save check width to stylesheet and scale with font size. 2025-03-12 16:32:15 -07:00
evykassirer
82ee8ca7cc stream_settings: Center loading spinner, scale padding with font-size. 2025-03-12 16:32:15 -07:00
evykassirer
72a0779663 search: Increase line height for user pills.
Users' names were being cut off on the bottom if they
had descenders.

We're keeping the line height for reasons explained in
2025-03-12 16:31:17 -07:00
Alya Abbott
7a1b66d12f help: Document is:muted search filter better.
Messages in muted channels may not be muted, so the documentation
was previously not quite accurate.
2025-03-12 16:30:50 -07:00
Karl Stolley
a264ab2355 message_hover: Correct for non-existant span selector. 2025-03-12 13:09:58 -07:00
Karl Stolley
a2892e713c rendered_markdown: Scale code-span padding with font size. 2025-03-12 10:21:15 -07:00
Kislay Verma
28a277027b message_list_tooltips: Avoid showing undefined.
If the template_id of the message_control_button
is undefined, we do not render the tooltip at all.
This might happen, for example,
when a message is past its editable period and
the edit button is not displayed.
2025-03-12 09:28:01 -07:00
Aman Agrawal
b2c2e09122 user_group_settings: Use 2 user plus icon to add new user group. 2025-03-12 09:14:37 -07:00
Aman Agrawal
eae11d9056 user-group: Use 2 user cog icon for user group settings. 2025-03-12 09:14:37 -07:00
Aman Agrawal
6e65d3cb4b user-group-x: Modify icon to use 2 users instead of 3. 2025-03-12 09:14:37 -07:00
Tim Abbott
83b76e2357 user_groups: Fix only system groups being offered in prod. 2025-03-11 23:31:12 -07:00
opmkumar
4f462970e4 search: Add is-muted search operator.
Add the `is:muted` search operator.
`-is:muted` is an alias for the `in:home` operator.

Co-authored-by: Kenneth <Kenneth012004@outlook.com>

Fixes #16943
2025-03-11 23:18:07 -07:00
opmkumar
4becea3993 search: Fix -in:home muting logic.
Previously, mentions from muted channels were incorrectly excluded when
narrowing down to `-in:home`. Additionally, messages from all muted
topics were missing in the results.
This commit solves the above listed issues.

The relevant legacy logic being removed dates to when we didn't
support unmuting or following topics.
2025-03-11 23:18:07 -07:00
Lauryn Menard
0f5246400b message-edit: Use last_moved_timestamp for edited/moved indicators.
Use both the last_moved_timestamp and last_edit_timestamp to show
edited and moved indicators/tooltips in the message list view of
the web app, instead of parsing the message edit history array.

We still maintain and build the message edit history array as it's
used for calculating the narrow terms when there is a near operator
and a message has been moved to a different channel or topic.

Updates the tooltip for message edit indicators to include both
the moved and edited time if a message has been both moved and
edited.
2025-03-11 16:42:28 -07:00
Lauryn Menard
7c653165af message-edit-tooltip: Use message_container.modified to show tooltip.
When we build the message_container for the message list view, we
get a boolean value for showing the edit notice (saving, moved, or
edited) on the message, so we now use that for whether we show the
associated message edit tooltip as well.

Also, if the message is modified, then we either have a last edited
timestamp from the server or from a local edit, so it shouldn't be
undefined.
2025-03-11 16:42:28 -07:00
Tim Abbott
a63ab5379e user_profile: Fix action buttons attention field name.
These were missed in the migration in
325f077d3f.
2025-03-11 16:14:29 -07:00
Tim Abbott
a9f28ae2e8 settings: Fix inconsitent line height label. 2025-03-11 15:59:55 -07:00