Commit Graph

64005 Commits

Author SHA1 Message Date
sanchi-t
43932cd6aa stream_edit: Update channel row in settings when channel is archived. 2025-03-14 11:29:51 -07:00
Sahil Batra
48aaeee6dd stream-settings: Refactor filter dropdown related code.
Variable for storing the dropdown widget is now
declared in stream_settings_components and this
commit also adds some helper functions to get
and set the filter value.

This is a preparatory commit to avoid import
cycles in further commits for fixing live
update when channels are archived.
2025-03-14 11:29:51 -07:00
Sahil Batra
c50e8fa406 stream-settings: Move functions to update stream privacy choices.
This is a preparatory refactor to avoid import cycles in future
commits for fixing live update behavior when archiving channels.
2025-03-14 11:29:51 -07:00
Sahil Batra
0c6ed6559a stream-settings: Refactor code to not store filter value in variable.
There is no need to store the archived status filter value in a
variable, instead value can just be derived by calling "value"
function on DropdownWidget.

This is a preparatory refactor for further commits which will fix
live-update behavior when archiving channels.
2025-03-14 11:29:51 -07:00
Aman Agrawal
3cfbf130a5 typeahead: Fix alignment of user group icon.
2px right margin was incorrectly added as -2px left margin needs
to be taken into account as well.
2025-03-14 11:07:33 -07:00
Aman Agrawal
a393d9d495 user_group: Use double user icon instead of tripe user icon. 2025-03-14 11:07:33 -07:00
Aman Agrawal
dde861e959 recent_view: Remove not required height and width values.
We don't need specific width / height here and it is okay for
this element to take child's size here which is scaled based
on font size.
2025-03-14 11:07:33 -07:00
Aman Agrawal
f53fc1b507 user_group_settings: Use icon with 2 users for editing group info. 2025-03-14 11:07:33 -07:00
Aman Agrawal
832963042c Revert "user_card_popover: Use airplane eye icon to view dms."
This reverts commit 0ddb572be8.
2025-03-14 11:07:33 -07:00
evykassirer
45c9747d4b hotkey: Fix upvote first emoji shortcut for custom emoji.
Fixes a bug introduced in #96eb49d, which broke the hotkey
for custom emoji.
2025-03-14 10:08:58 -07:00
Aman Agrawal
4029d80c01 compose: Use standard primary button colors for compose send button. 2025-03-14 10:07:05 -07:00
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
Tim Abbott
79ec259209 help: User final link for navigation tour video. 2025-03-13 16:04:26 -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
7cd0fc645b onboarding: Add navigation_tour_video_text in initial DM by welcome bot.
This commit adds a line in the initial DM sent to new users by
the welcome bot regarding the new 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
Alya Abbott
673309f3dc help: Remove outdated tip. 2025-03-13 13:50:39 -07:00
Alya Abbott
6cd45bac7a help: Document permission to resolve topics. 2025-03-13 13:50:39 -07:00
Alya Abbott
d541bf114a help: Document snippet editing. 2025-03-13 13:50:00 -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
Alex Vandiver
eca77631b4 kandra: Rename onboarding-video to navigation-tour-video. 2025-03-13 09:54:44 -07:00
Alex Vandiver
75cf33079a filters: Do not report AVATAR_SALT, or other salts. 2025-03-13 09:36:07 -07:00
Tim Abbott
2c31de0a86 compose: Remove baseline override for recipient picker.
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
Alya Abbott
cd131c4840 help: Document new font size and line spacing options. 2025-03-12 17:19:22 -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
0053c64f37 groups: Anonymous group member and subgroup IDs should be sorted.
We now return the members and subgroups ID list sorted for
settings that are set to anonymous groups. This is needed to
make sure we do not show save discard buttons when only pill
order is changed.
2025-03-12 17:18:05 -07:00