Commit Graph

8452 Commits

Author SHA1 Message Date
Aman Agrawal
a9b51f80ba people: Defer loading user data during app load.
This should greatly reduce the symptoms of a bug where a stale
realm_users cache (missing a newly created user) results in the web
client missing the new user and throwing exceptions.
2025-05-20 13:55:48 -07:00
Aman Agrawal
f94b1d444e echo: Use ID instead of email to access user data.
This is required for just testing the changes and not
required for working of the app.
2025-05-20 13:55:48 -07:00
Evy Kassirer
e2b90176ee buddy_list: Clear search bar when the narrow changes. 2025-05-20 13:16:04 -07:00
Sahil Batra
ba1780c6b2 hash_util: Redirect '#groups/new' to '#groups/your' on limited plans.
This commit adds code to redirect '#groups/new' to '#groups/your'
if realm is on limited plan like we do when user does not have
permission to create groups.
2025-05-20 10:45:13 -07:00
Sahil Batra
bc61a5ed08 groups-ui: Live update UI to create groups.
This commit adds code to live update the UI when
can_create_user_groups setting changes.

The elements that are live updated are -
- Icon button at the top left panel
- Button shown in right panel when no group
is selected.
- Text shown in right panel mentioning whether
user has permission.

We do not live update the text shown when left
panel is empty as it is somewhat complex to
handle all conditions correctly for it.
2025-05-20 10:45:13 -07:00
Sahil Batra
737f5f4cd3 admin: Remove unused variable.
We now have new groups UI, so there is no way to pass
the can_create_user_groups variable to settings template.
2025-05-20 10:45:13 -07:00
Sahil Batra
72e2605b98 stream-settings: Fix duplicate IDs.
"stream-advanced-configurations" was being used as ID for
advanced configurations section in both stream edit and
creation UI, which is not correct as ID should be unique.

This commit fixes it by removing the ID and instead using
class in selectors. Also, there was some unused CSS, as
we do not have dropdown widget buttons in advanced
configurations section, written using the duplicate ID so
removed that as well.
2025-05-20 10:40:19 -07:00
Sahil Batra
a2d4913cc0 stream_ui_updates: Fix live-update of web-public option.
In update_web_public_stream_privacy_option_state, when showing
and hiding the web-public option, "hidden" prop was set while
hiding the option and ".show()" was called to show the option.

Now once the UI was live updated by calling "show" setting
hidden attribute again to hide did not work because
"display: block" CSS applied by calling "show" kept the
option visible. This commit updated code to show the option
by setting "hidden" attribute to "false".
2025-05-20 10:40:19 -07:00
Sahil Batra
bc89d96893 stream-settings: Fix duplicate IDs.
This commit fixes the use of "stream_permission_settings"
as ID for "Channel permissions" subsection in both
stream edit and creation UI, which was not correct since
ID should be unique.

To fix this ID was removed from the element and following
changes are done -
- $("#stream_settings") element is now used as a container
for live update functions for stream edit UI.
- "stream-permissions" class is used to access the element
instead of ID.
- Advanced configurations container also had "stream-permissions"
class before, and that was removed in this commit so that
"Channel permissions" container can be identified uniquely
and thus some CSS changes were needed.
- Also, fixed "update_stream_privacy_choices" function to
not use ":visible" in selectors.
2025-05-20 10:40:19 -07:00
Sahil Batra
0e3b036d71 groups-ui: Do not open group in right panel when leaving.
Previously, when leaving the group by clicking "checkmark"
icon in group row, group details were opened in right panel
as well due to event propagation.

We keep the behavior of opening the group in right panel
after joining the group by clicking on "+" icon in the
group row.

For narrow widths, left panel is kept open while joining
or leaving the group, same like we do for stream settings.
2025-05-20 10:37:59 -07:00
Sahil Batra
8e64e67e94 groups-ui: Fix exiting from creation UI for mobile widths.
When clicking on "Cancel" button in the footer in stream
creation UI, left panel should be shown for mobile widths.
Previously, it resulted in a buggy view showing both left
and right panels.

This change makes the behavior consistent with what we
have for streams UI.

There is no change in behavior for wider screens.
2025-05-20 10:37:59 -07:00
Sahil Batra
6d40c6629f group-settings: Fix hiding empty panel text.
The selector used to check whether there is any group
row visible was incorrect and thus the empty list
text was shown incorrectly.
2025-05-20 10:37:59 -07:00
Sahil Batra
7833ea0bb5 user_group_edit: Fix typo in class name.
"hide-deactivated-user-groups" was incorrectly written in
"hide-deactived-user-groups".
2025-05-20 10:37:59 -07:00
Kislay Verma
e04f232f63 organization_settings: Fix label text. 2025-05-20 07:04:20 -07:00
yatinsharmaa12
452a93f72b styles: Improve the style of login page at narrow screen. 2025-05-19 16:38:33 -07:00
Alya Abbott
dd7e871b11 portico: Add partnership program page. 2025-05-19 16:36:26 -07:00
Aman Agrawal
b11047789a self-hosting: Properly fix content in feature box at all widths.
Also moves height properties outside the nested styles for easy
overriding by other pages.
2025-05-19 16:36:26 -07:00
Tim Abbott
4d4a73c492 util: Clarify format_array_as_list_with_highlighted_elements.
This should avoid my having to look up the relevant Intl APIs to
understand this function in the future.
2025-05-19 00:08:29 -07:00
bedo
465a0ef0d0 message_util: Rename "get_messages_in_topic".
Follow-up commit.

This renaming clearly conveys that
fetched messages are cached.
2025-05-19 00:08:29 -07:00
bedo
f9e6bef47b move_topic_modal: Add unsubscribed participants warning banner.
Fixes #33627

In Move messages and Move topic modals,
Show a warning banner if any of current topic participants
are NOT subscribed to the destination stream.

Inside the banner, Show participant names if
number of conversation participants
is <= 5; otherwise, show only the count.
2025-05-19 00:08:29 -07:00
Sayam Samal
e5db9614eb buttons: Add hover state styles to focus state styles.
This commit adds the button hover state styles to focus state styles,
as focusing on the button with the keyboard is a similar action to
hovering over it with a mouse.
2025-05-18 22:43:28 -07:00
Sayam Samal
1732848baa buttons: Improve button outline on focus.
This commit improves the button outline on focus by changing the color
of the outline to black-on-light and white-on-dark, and tweaking the
outline width and offset.
2025-05-18 22:43:28 -07:00
Anders Kaseorg
ccfb50d4dd eslint: Enable no-jquery/no-sizzle.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
b5aed2a8db views-util: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
78b75e818a user_group_edit: Avoid jQuery sizzle extensions :hidden, :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
8325a51750 unread_ops: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
6c0e7b20f7 tippyjs: Avoid jQuery selector extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
642e22fbc1 stream_create: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
acf23f73a6 sidebar_ui: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
c248459af2 search_pill: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
21fc5d71e1 tests: Move tests out from the middle of the Typeahead mock.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
09bc4d90d3 search: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
551c12a732 signup: Avoid jQuery sizzle extension :hidden.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
ecfc3cb9a4 integrations: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
77a92100df popover_menus_data: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
efefa9f6ad playground_links_popover: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
d8ba3b4ea7 navbar_menus: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
1289e39cd5 messages_overlay_ui: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
bfacb87cc9 message_edit: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
abeba00569 message_actions_popover: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
b0a5b79190 left_sidebar_tooltips: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
26f664be69 hotkey: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
b2c1625b0d emoji_picker: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
4e852f1039 compose_send_menu_popover: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
f3cb557fb2 compose_validate: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
7c6d040fd8 compose_recipient: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
a6a0bda258 compose_banner: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Anders Kaseorg
a360ffd7f6 compose: Move needs-empty-compose class to parent.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-05-18 16:22:15 -07:00
Maneesh Shukla
4a03d73d8d presence_data: Add fallback logic for users with no presence data. 2025-05-16 15:32:50 -07:00
whilstsomebody
a4e7621a2c stream_edit: Add loader to reactivate and deactivate stream modals
This commit adds a loading spinner to the confirmation modals for
reactivating and deactivating streams.

Fixes: #33917
2025-05-16 11:39:40 -07:00