Commit Graph

7840 Commits

Author SHA1 Message Date
Maneesh Shukla
37ec0a7c03 button_migration: Restyle buttons in channel and group settings.
Fixes part of #33130.
2025-03-11 14:08:34 -07:00
Maneesh Shukla
dd20743e66 settings: Remove unnecessary sea-green class from the dialog_change_password.
Fixes part of #33130.
2025-03-11 14:08:34 -07:00
Maneesh Shukla
5167ff640a organization_settings: Restyle remove button to make the UI consistent. 2025-03-11 14:08:34 -07:00
Maneesh Shukla
d0be7ec9f0 organization_settings: Restyle remaining sea-green button to action-button-quiet-brand.
Fixes part of #33130.
2025-03-11 14:08:34 -07:00
Maneesh Shukla
325f077d3f action_button: Rename type to attention to describe the attention level of the action button.
Currently, we are using type to describe the attention level of the
action button. We want to rename the type parameter to attention
as we need the type parameter separately for describing the type of
button.
2025-03-11 14:08:34 -07:00
Karl Stolley
c688c2742e compose: Refine the space occupied by the channel. 2025-03-11 13:51:25 -07:00
Maneesh Shukla
e3a1ad7a3c settings: Prevent redundant requests by modifying event handler.
Previously, all buttons within .subsection-changes-save were targeted,
potentially leading to multiple requests while a request was in
progress. This change ensures that the triggering element is properly
handled by preventing the default form submission action.
2025-03-11 12:45:57 -07:00
opmkumar
86eb69a68b hash: Fix logic for handling web public narrows.
Previously, `is_spectator_compatible` in `hash_parser.ts` ignored all
operators and operands beyond the first pair in a narrow.
This was fixed by iterating through each operator-operand pair individually.
2025-03-11 12:43:02 -07:00
Karl Stolley
5bf38e30e7 message_edit: Match button height to compose Send button. 2025-03-11 12:30:48 -07:00
Karl Stolley
0e34a753cd video_thumbnails: Precisely size, place play button. 2025-03-11 12:23:55 -07:00
Karl Stolley
a813b37694 recent_view: Hold unread header to a minimum width. 2025-03-11 12:22:49 -07:00
Maneesh Shukla
acabface1a domains_modal: Fix width of modal_text_input. 2025-03-11 12:20:36 -07:00
whilstsomebody
865d847492 dropdown_widget: Fix dropdown highlighting in inbox/conversations menu.
Previously, the dropdown had a bug where the first item
was highlighted regardless of the selected option.

This commit fixes the bug, ensuring that the
selected option is now correctly highlighted.

Fixes: #33066
2025-03-11 12:11:50 -07:00
Quan Nguyen
b4bb708c14
recent_conversations: Improve sorting behavior.
Refine sorting algorithm of recent conversation list so that
it works like spreadsheet sorting, with previous sorting orders
remembered.

Fixes #33289.
2025-03-11 10:48:31 -07:00
Harsh
48e8250e28 invite: Fix alignment of copy-invite-link button in invitation modal.
This commit makes width of multiuse_invite_link to full so
that it can take all the remaining space and copy invite link
button can be aligned properly.
- this also does changes copy_invite_link to render_copy_invite_link
to follow the naming conventions.
2025-03-11 10:15:01 -07:00
apoorvapendse
66ca78dbd3 compose_paste: Add test to verify pasting from Mac terminal.
For context, #33569 appears to have been fixed
unintentionally by #33691.

This just adds a test to verify the expected
behavior when it comes to pasting from the
Mac terminal as described by the reproduction
steps in #33569.

We might still end up with some edge case in
the future, that might not work as expected.

CZO: https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.93.82.20surprising.20line.20breaks.20when.20copy-pasting.20.2333569/near/2119422

Co-authored-by: Kislay Verma <kislayuv27@gmail.com>
2025-03-11 09:48:35 -07:00
Aravind
8dfecaf29b settings: Add help link to who can manage plans and billing.
We do the direct link to what's appropriate for the customer type.

For self-hosters, We link to the zulip.com copy of the self-hosted
billing documentation, so we don't link a stale copy of it.

Fixes #33922.
2025-03-11 09:46:25 -07:00
Apoorva Pendse
54fd02b173 compose_tooltip: Remove delay for invalid messages.
Does what 714def080f
was trying to do without the side effects.
Fixes: 714def080f
2025-03-11 09:41:22 -07:00
Aman Agrawal
834e69d17c compose_actions: Fix send button disabled without any error.
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
Reproducer:
* Upload a file.
* Close compose box before upload is finished.
* Open compose box.

Send message button is disabled without any error in this state.
Fixed by resetting the send button state when compose box is closed.
2025-03-10 21:53:10 -07:00
apoorvapendse
ef863258c2 compose_paste: Remove title formatting more carefully.
We now start to consider text nodes
with valid content to determine
whether we should remove the styling.

Fixes: #31218.
2025-03-10 17:01:13 -07:00
evykassirer
0e152a128f message_edit: Scale resolve topic spinner with font size.
This commit also changes the width of the spinner so that the
resolve icon and spinner take up the same width.
2025-03-10 16:43:45 -07:00
Sahil Batra
e2d9d069e0 settings: Remove dense_mode setting. 2025-03-10 16:07:37 -07:00
Sahil Batra
c8b1de6076 gear_menu: Allow spectators to change font size and line height. 2025-03-10 16:07:37 -07:00
Sahil Batra
c6e840531f settings: Update UI for information density settings.
This commit adds new UI for controlling font size and
line height settings in settings panel.

Fixes #33186.
2025-03-10 16:07:37 -07:00
Sahil Batra
6f6059da73 personal_menu: Support changing information density settings.
This commit adds UI in personal popover menu for user to change
font-size and line-height.

Fixes part of #33186.
2025-03-10 16:07:37 -07:00
Sahil Batra
63ef84d9a3 popovers: Decrease width of theme switcher in spectators menu.
Matches the width of other items in the menu.
2025-03-10 16:07:37 -07:00
Sahil Batra
222843578e settings: Fix save-discard behavior in default user settings.
Save discard widget behavior was not correct for
"General" subsection of user default settings as the
proposed value for color scheme was a string which
was being compared to the numerical current value
and thus check_realm_default_settings_property_changed
always returned true for "General" subsection.
2025-03-10 16:07:37 -07:00
Kartikay Nusture
aead403f66 bot: Set Incoming webhook the default bot type.
This commit sets "Incoming Webhook" as default bot type
when opening the "Create New Bot" modal.

Fixes: #33740.
2025-03-10 15:55:16 -07:00
evykassirer
a64a20ce38 information_density: Resize page components when changing font size.
Discussion here:
https://chat.zulip.org/#narrow/channel/431-redesign-project/topic/Weird.20bug.20possibly.20involving.20calc/near/2113977
2025-03-10 15:38:35 -07:00
Tim Abbott
6066675e3c clipboard_handler: Improve fallback text copying links.
There's no reason we need to make up weird fallback text when we're
specifically trying to copy a given link; we can just use the original
link when we determine we can't add special formatting.
2025-03-10 15:33:08 -07:00
Tim Abbott
e9dde4ba9c copy_messages: Fix browser copy code paths for Firefox.
On Firefox, with `dom.event.clipboardevents.enabled` set to false, the
previous code path (shared with the fancy "copy link" code that tries
to add extra content types) would fail.

Fix this by reverting part of 37b5d539a0.

The comments in this code were correct that we just want to let the
browser handle the copy event. We can do that by just returning the
right value to the hotkey code path such that it won't do
preventDefault, without using deprecated execCommand or doing anything
else special.

Fixes #33912.
2025-03-10 15:33:08 -07:00
Tim Abbott
acaddc2d4e copy_messages: Rename select_div for clarity. 2025-03-10 15:33:08 -07:00
Tim Abbott
26355df8e9 copy_messages: Extract restore_original_selection.
The previous naming scheme was rather confusing.
2025-03-10 15:33:08 -07:00
Karl Stolley
54b0ba0248 compose: Hold DM picker, topic marker to top recipient line. 2025-03-10 13:39:47 -07:00
Harsh
b7a943b8cb left_sidebar: Hide menu option for home view if all messages are read.
This commit hides sidebar menu option button instead of showing
it with "Mark all messages as read" option, for home view when
there are no unread messages.
2025-03-10 13:08:39 -07:00
Apoorva Pendse
56293b19fc user_groups: Persist the edit group view post deactivation.
Fixes:
https://github.com/zulip/zulip/pull/33820#issuecomment-2705912743.
2025-03-10 12:45:49 -07:00
apoorvapendse
be6cc5e56e user_groups: Show group name for smaller widths.
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AFdeactivated.20group.20indicator.20disappears/near/2113197
2025-03-10 12:45:49 -07:00
apoorvapendse
27ac91a8c8 user_groups: Add deactivated icon on top title.
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AFdeactivated.20group.20indicator.20disappears/near/2112723
2025-03-10 12:45:49 -07:00
apoorvapendse
525efb7c73 user_groups: Remove fa-ban icon for deactivated group settings.
prerequisite: #33812
2025-03-10 12:45:49 -07:00
Harsh
eb013580a5 user_groups: Add banner for settings for a deactivated group.
This commit adds a banner at the top of the group settings panel, to
make it super clear when a group is deactivated.

Fixes: #33803.
2025-03-10 12:42:44 -07:00
Harsh
db53482685 user_groups: Disable permission tab for deactivated groups.
Since there can't be any permissions to display there, it seems not
helpful.
2025-03-10 12:42:25 -07:00
Sayam Samal
6043063d21 alerts: Fix alert popup not closing in portico.
The alerts in portico were not being closed since the class responsible
for hiding them — `home-error-bar` was defined in `web/styles/zulip.css`
which isn't being shared with portico. This commit moves this class to
`web/styles/alerts.css` which is shared with portico, and fixes the bug.
2025-03-10 11:21:11 -07:00
Sayam Samal
2c84f60bbc popup_banners: Add loading indicator to connection error banner button.
This commit adds a loading indicator to visually communicate that the
retry button in the connection error banner has executed the retry
sequence.
2025-03-10 11:21:11 -07:00
Sayam Samal
80a352dc02 buttons: Add loading indicator to buttons. 2025-03-10 11:21:11 -07:00
Sayam Samal
3275fcc96e popup_banners: Redesign connection banner to use new banner component.
This commit serves as the base commit for redesigning the alert banners
by migrating them to use the new banner component. We use a new name
to refer to these banners — "Popup banners", which is more descriptive
about their behavior.

The Popup banners are appended to the container in a stacking order,
i.e., the most recent popup banner appears on the top and the oldest one
is sent to the bottom of the stack. These banners also inherit the
animations from the alert banners for visual appeal.

This commit also fixes the bug where clicking on the "Try now" button
in the popup banner resulting from an error in the `/json/messages`
endpoint resulted in call to restart_get_events in server_events.js
instead of load_messages in message_fetch.ts.

Fixes #31282.
2025-03-10 11:21:11 -07:00
Sayam Samal
cd08c628ba alerts: Modify alert-box container to use flex layout.
This is prep commit for the alert banner redesign, which adds flex
layout to the alert-box container and modifies the animations logic to
work with the new layout.
2025-03-10 11:21:11 -07:00
evykassirer
602d0f4914 right_sidebar: Remove invite users icon at bottom of buddy list.
Discussion here:
https://chat.zulip.org/#narrow/channel/101-design/topic/right.20sidebar.20design.20tweaks.20.20.2332976/near/2115335
2025-03-10 09:47:00 -07:00
Vector73
0ba3b787cf settings_config: Fix hardcoded numbers for plan_type and org_type. 2025-03-10 09:36:30 -07:00
Vector73
c049259d07 user: Remove is_billing_admin user property.
Removed `is_billing_admin` user property as it is no longer used since
billing permissions are now determined by `can_manage_billing_group`
realm setting.
2025-03-10 09:36:30 -07:00
Vector73
158fd58cde settings: Add "can_manage_billing_group" realm setting.
Added "can_manage_billing_group" realm group permission setting
to control who can manage billing and plans in the organization.

Fixes #32745.
2025-03-10 09:36:30 -07:00