Commit Graph

8096 Commits

Author SHA1 Message Date
Sayam Samal
703acbaccc user_profile_modal: Update remove/unsubscribe buttons to action button.
This commit updates the remove and unsubscribe buttons in the user
profile modal to use the action button component.

Fixes part of #33027.
2025-04-04 12:26:36 -07:00
Sahil Batra
928c04df31 settings: Disable checkbox in permissions panel.
This commit adds code to disable checkbox in permissions panel
if unchecking the checkbox will set the setting to nobody group
and that setting can't be set to nobody group,

Fixes part of #33730.
2025-04-04 11:06:05 -07:00
Sahil Batra
c433e6b830 group-settings: Live update when can_manage_all_groups is changed.
Groups UI is now live updated when can_manage_all_groups is
changed.
2025-04-04 11:06:05 -07:00
Sahil Batra
9c2a2c97b5 group-settings: Refactor live update code.
This commit refactors code to live update UI when group
permission settings are changed. This change makes the code
cleaner and also makes sure we do not update the UI multiple
times when multiple settings are changed in a single request.
2025-04-04 11:06:05 -07:00
Evy Kassirer
450fbb7f48 peer_data: Process partial_subscriber data.
Work towards #34244. This shouldn't change production at all,
since we only send partial_subscribers when a dev flag is set.
2025-04-04 11:01:03 -07:00
Karl Stolley
76401a19c9 settings_tables: Prevent header/icon collapse onto second line. 2025-04-04 10:59:28 -07:00
Karl Stolley
728b9f18df settings_tables: Simplify table header background colors.
By moving the header background to <thead>, we achieve two things:

1. We avoid a bug in Chrome where the table background bled through
   between header cells.
2. We no longer need `!important` on the data-sort hover, because
   there is no longer a color set there.
2025-04-04 10:59:28 -07:00
Karl Stolley
e5a00b3163 settings_tables: Set variables for header colors. 2025-04-04 10:59:28 -07:00
Saubhagya Patel
62745ddccb message_move: Fix new_topic_name in topic already exists warning.
In the move topic modal, the `new_topic_name` input is disabled if
the user doesn't have permission to move messages between topics.
This commit fixes a bug where `new_topic_name` is undefined since its
input is disabled. This causes `show_topic_already_exists_warning()`
to throw an AssertionError. Hence, the warning is not shown.

Specifically, this bug occurs when a user moves a topic to an
already existing topic in a different channel when he has permission
to move messages between channels but not between topics.
2025-04-03 17:45:17 -07:00
Saubhagya Patel
57c1a12853 message_move: Pass stream_widget_value to update submit button state.
In the move topic modal, the stream ID from the dropdown widget
should be passed to `update_submit_button_disabled_state()`
function instead of `current_stream_id`. This fixes a bug where
the submit button was incorrectly disabled after editing the
move topic input.

Specifically, when selecting a different channel and an existing
topic, the submit button remains enabled initially. However, if a
character is removed and then retyped in the move topic input,
the submit button becomes disabled incorrectly.
2025-04-03 17:45:17 -07:00
Saubhagya Patel
725fd707fe message_move: Initialize ResizeObserver for Rename topic modal.
This commit fixes a bug where the Rename topic modal did not resize
when the "topic already exists" warning was shown or hidden. This
caused the topic edit typeahead for topics in a channel
with similar prefixes to be misaligned.
2025-04-03 17:45:17 -07:00
kash2104
3243d278e2 user-card-tooltip: Open user card when user-card-tooltip visible.
Without hovering on the name or profile picture user-card-tooltip
was visible but on_click user card does not open.

To fix it message-avatar class is added in the
register_click_handlers function.
2025-04-03 17:44:14 -07:00
Sayam Samal
0e7a5c1774 user_profile_modal: Use icon button component for modal header buttons.
This commit updates the modal header buttons to use the icon button
component.

Fixes part of #33027.
2025-04-03 17:35:05 -07:00
Sayam Samal
47419fbfc3 settings: Update add/remove buttons on channel/group creation.
This commit updates the "Add" and "Remove" buttons in the channel/group
creation modal to use the action button component.

Fixes part of #33027.
2025-04-03 17:33:09 -07:00
Alex Vandiver
c7da412b3b web: Sync content of Django and nginx error pages.
Also edit the text to more clearly explain the situation.
2025-04-03 17:09:46 -07:00
Karl Stolley
815dccdb7f snippets: Better distinguish snippet content in dropdown. 2025-04-03 16:44:36 -07:00
Karl Stolley
0c7e4d88f7 bootstrap: Remove vendor-prefixed placeholders.
These conflict with our own, standard styles in app_components.css.
2025-04-03 13:35:06 -07:00
Karl Stolley
31d3eba256 bootstrap: Preserve useful styles on button, input. 2025-04-03 13:35:06 -07:00
Karl Stolley
a9fa087f60 bootstrap: Rescue cursor definitions on label, button. 2025-04-03 13:35:06 -07:00
Karl Stolley
0fb2783c68 bootstrap: Remove font-size, line-height values superseded in zulip.css. 2025-04-03 13:35:06 -07:00
Karl Stolley
86623941a3 bootstrap: Remove font-family superseded in zulip.css. 2025-04-03 13:35:06 -07:00
Karl Stolley
2326cf443c bootstrap: Clean up HTML5 definitions part of UA stylesheets. 2025-04-03 13:35:06 -07:00
Karl Stolley
40fbb59310 bootstrap: Remove legacy ms-viewport media query. 2025-04-03 13:35:06 -07:00
Karl Stolley
9c47f3487e bootstrap: Remove redundant margin: 0 input media queries. 2025-04-03 13:35:06 -07:00
Prakhar Pratyush
41df472d41 corporate: Replace /try-zulip with /?show_try_zulip_modal.
This commit removes the `/try-zulip` landing page.

The URLs are replaced with `chat.zulip.org/?show_try_zulip_modal`,
which leads to display a modal for spectators.

Fixes #34181.
2025-04-03 13:01:48 -07:00
Prakhar Pratyush
f64d7b6e28 home: Add a modal to replace /try-zulip landing page.
This commit adds a modal which will be displayed when
a spectator visits `/?show_try_zulip_modal`.

When a user visits `/?show_try_zulip_modal` and is a spectator,
we set a new `show_try_zulip_modal` field in `page_params` to
`true` (in all other cases, it's `false`).

Based on the `show_try_zulip_modal` page param, the web client
shows the modal.

Fixes part of #34181.
2025-04-03 13:01:48 -07:00
Aman Agrawal
b8651e78e7 upload: Fix send button disabled when compose is closed during upload.
While uploading a file, if you close the compose box, and reopen
it, compose send button remains disabled due to upload in progress
being true.

To fix it, we update upload status for compose when upload is
cancelled.
2025-04-03 12:57:14 -07:00
Anders Kaseorg
f2a171a881 Revert "css: Remove unused transition property."
This reverts commit 7d08f32ebb.

The commit message is factually incorrect, and the change broke our
fade-out transitions.  visibility can be transitioned, and there is a
specific rule for what that means.  This is critical for transitioning
opacity in the fade-out direction: if you fail to also transition
visibility, then the element disappears immediately regardless of
opacity.

https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#interpolation

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-04-03 10:59:08 -07:00
Aman Agrawal
7d08f32ebb css: Remove unused transition property.
`visibility` cannot be animated since it is a boolean.

This fixes composition failure error in Chrome dev tools when
these animations are triggered that the animation has
no visible change.
2025-04-03 10:44:33 -07:00
apoorvapendse
82f4ec0d6c message_row: Restore copy button in edit textbox.
Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/missing.20copy.20button.20for.20View.20Original.20Message/near/2142823
2025-04-02 13:47:22 -07:00
whilstsomebody
22341c18db popover: Hide unexpired invitation count when it is 0.
In deactivate user confirm dialog, we hide the count of
unexpired invitations of a user when the count is zero.

Fixes: #34265
2025-04-02 13:15:06 -07:00
Karl Stolley
492541f1e2 recent_view: Place new sort arrows. 2025-04-02 13:14:07 -07:00
Karl Stolley
ede630a6dd settings: Add new sort arrows to all settings tables. 2025-04-02 13:14:07 -07:00
Karl Stolley
a1bba7a453 message_row: Better flexibly align hover controls. 2025-04-02 09:43:58 -07:00
Karl Stolley
11fdd5f005 message_row: Restore padding to senderless content box. 2025-04-02 09:43:58 -07:00
Karl Stolley
46b33f0d26 message_row: Better target first children. 2025-04-02 09:43:58 -07:00
Kislay Verma
426b97a2e5 popover_menus: Fix bug in user card shortcut.
When hovering over the user avatar, the tooltip
"View user card" appears. If this tooltip appears
over the currently selected message, then pressing
`u` once doesn't show the user card popover, rather
it only hides the tooltip. It is on the second press of `u`
that the user card appears.

This commit fixes that.

We also add some comments to help clarify this code path.
2025-04-01 18:19:33 -07:00
Karl Stolley
465971171d rendered_markdown: Adjust content blocks for link focus ring. 2025-04-01 17:47:06 -07:00
Aman Agrawal
203cc69969 navigate: Fix up keypress behaviour when a long prev message.
Fixes #32970

When navigating from a short message to a tall message via up
keypress, we used to jump to the top of the message. This
doesn't align with user's expectation that up / down keypress
will let them see the entire message feed.

To fix it, we can `page_up` which scrolls up the correct amount
and then our message selection logic kicks in to select the
correct message on screen.
2025-04-01 14:51:01 -07:00
Karl Stolley
ca1e56d91b compose: Prevent picker from collapsing. 2025-04-01 11:22:14 -07:00
Aman Agrawal
7d5d79909c buddy_list: Don't update user list in right sidebar for spectators.
When adding new messages, we were updating buddy list which
resulted in insertion errors.

Fixed by not updating the right sidebar in case of spectators.
2025-04-01 09:09:12 -07:00
Aman Agrawal
6daf130a42 hotkey: Disable user search hotkey for spectators.
Since we don't have any user data in spectator view, triggering
user search can lead to unexpected results.
2025-04-01 09:09:12 -07:00
Evy Kassirer
9dc5d19082 stream_data: Remove undefined check for never undefined user_id. 2025-03-31 09:41:45 -07:00
Kunal Sharma
c6e40e70b7 saved_snippets: Remove "new-style" class from add/edit modals. 2025-03-31 09:21:43 -07:00
Aman Agrawal
83d917853e apps: Provide arm64 app build by default for macOS.
This reduces confusion amount users when they download the
intel version and it works super slow. Downloading the arm64
version on an intel mac would just not work.

Users who use intel macs have a habit now (atleast me) to look
for `Intel` version of software when downloading an app. So, made
`Intel` bold to help that process.
2025-03-28 16:45:07 -07:00
Kartikay5849
1e4eec9803 ui: Update unread banner text and button label.
Changes banner text to "This conversation also has older unread
messages. Jump to first unread message?"
Updates button label from "Jump to first unread" to "Jump".
2025-03-28 16:43:39 -07:00
whilstsomebody
846d771084 left_sidebar: Use opaque hover color to avoid topic bleedthrough. 2025-03-28 16:43:09 -07:00
Karl Stolley
67da4d5a2b left_sidebar: Display bot icon, status emoji as inline block. 2025-03-28 14:12:56 -07:00
Karl Stolley
131e031f1c left_sidebar: Present two-line DM rows. 2025-03-28 14:12:56 -07:00
Niloth P
cabea0ea9a invite: Update email pill widget's usage.
- Rename the variable "pills" to "email_pill_widget". To conform better
with other pill widgets.
- Re-use the email pill creation function.
- Directly access `item.email`, skipping function call.
2025-03-28 09:58:39 -07:00