Commit Graph

61845 Commits

Author SHA1 Message Date
Anders Kaseorg
5d94541b6d dependencies: Downgrade @uppy/tus from 4.1.4 to 4.1.3.
It seems 4.1.4 is causing the client to ask the server to delete each
upload immediately when it succeeds.

https://chat.zulip.org/#narrow/channel/9-issues/topic/broken.20image.20uploads/near/1989833

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 21:58:59 -08:00
Anders Kaseorg
9f4b4a0c8a message_actions_popover: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 17:36:59 -08:00
Aman Agrawal
1aee0ef98b stream: Use is_recently_active to check active status. 2024-11-27 17:31:06 -08:00
Aman Agrawal
81c345483e message_edit: Update stream active status when moving messages.
Update the active status of new stream where the messages are moved
into, if appropriate.

Tested by deleting all messages in a stream. Running the command
to update stream status to mark it inactive. Then moving messages
into the stream to check if the status is updated correctly to active.
2024-11-27 17:31:06 -08:00
Aman Agrawal
50256f4831 stream: Add field to track active status of stream. 2024-11-27 17:31:06 -08:00
Aman Agrawal
b2b233f0a7 test_subs: Remove query length check.
Quoting Alex:

This test came in during d6ef94f63f,
where the gross query was caused by a bare `select_related()`.
7d0c12aa3a
has enforced that we do not allow that construction anymore,
so IMHO this weird limit test should be removed,
rather than bumping it up every time we add something
useful to the query.
2024-11-27 17:31:05 -08:00
Anders Kaseorg
49f2d08006 message_scroll: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 17:12:22 -08:00
Anders Kaseorg
93185dd7a6 stream_popover: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 16:55:00 -08:00
Anders Kaseorg
d763cbfa2c stream_popover: Read propagate_mode via the existing .serializeArray().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 16:55:00 -08:00
Anders Kaseorg
6083cf69c8 stream_popover: Fix get_options_for_dropdown_widget filtering.
get_options_for_dropdown_widget returns an object with a stream:
StreamSubscription key, not the stream itself.

Introduced by commit fcac413138
(#26067).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 16:55:00 -08:00
evykassirer
1e542b8f7a buddy_list: Always update section hiddenness on populate.
We need to do this even when searching users, because it's
possible to change narrows while searching for users.
2024-11-27 16:52:49 -08:00
Anders Kaseorg
0048dfabd0 admin: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 16:46:35 -08:00
Niloth P
ff99302dfe integrations: Trim trailing whitespace in integration categories. 2024-11-27 16:37:04 -08:00
evykassirer
2db0a851e1 buddy_list: Fix bug where participants weren't filtered on search.
This was introduced in ebe15dcf25 where I
mistakenly had us include _all_ participants  _always_ even if there was filter
text present. This commit fixes that.
2024-11-27 16:27:40 -08:00
evykassirer
381faf36b3 buddy_list: Don't use transparent background for header hover. 2024-11-27 16:26:53 -08:00
Anders Kaseorg
46f74cc39e navigate: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 15:55:50 -08:00
Tim Abbott
94fb342418 docs: Clarify up existing WSL environment discussion. 2024-11-27 14:44:46 -08:00
Apoorva Pendse
67a60829e6 docs: Add WSL rebuild steps.
Previously, the rebuild steps for WSL in the recommended setup guide
incorrectly just included the Vagrant instructions.

This commit fixes the issue by adding the appropriate steps to delete
the WSL instance using `wsl --unregister` in the docs.

Additionally, it includes steps to rebuild the development database,
which is a much faster alternative for folks who just want that.

Fixes #32402.
2024-11-27 14:33:18 -08:00
Apoorva Pendse
5fd872ba3f docs: Add note to use fresh instance of WSL.
This change ensures that developers use a fresh WSL instance when setting up the Zulip environment locally. Doing so helps prevent dependency and versioning conflicts.
2024-11-27 14:30:17 -08:00
Tim Abbott
3d5dbefcb5 settings: Rename misleadingly named user list template. 2024-11-27 14:28:17 -08:00
sujal shah
74f3036d19 settings_bots: Fix deactivation icon and you indicator.
The deactivation icon was incorrectly showing for both active bots and
active users in the admin settings panel, due to parameters
incorrectly not being passed through to the partial template.
2024-11-27 14:25:45 -08:00
evykassirer
a939fcad2e buddy_list: Fix calculation for has_inactive_users_matching_view. 2024-11-27 14:23:27 -08:00
evykassirer
cb91ca3a07 buddy_list: Separate logic for display/hide of sections.
This also fixes a bug where the code to hide the matching
view container didn't run when we early-returned from
`render_section_headers`. Now it always runs in
`display_or_hide_sections`.
2024-11-27 14:23:27 -08:00
evykassirer
2937031f83 buddy_list: Refactor to use hide_participants_list to match hide_headers. 2024-11-27 14:23:27 -08:00
evykassirer
c17babd0e7 buddy_list: Render view user links after filling screen.
We need to have the lists of rendered users so we can check if
we should be showing the links. This commit fixes a bug where
we showed the "view all subscribers" link even if all subscribers
were visible on the screen.
2024-11-27 14:23:27 -08:00
evykassirer
d0c402ac0f buddy_list: Add style-change options to buddy list popover. 2024-11-27 14:08:46 -08:00
Anders Kaseorg
550287b33c navbar_menus: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 13:59:19 -08:00
Anders Kaseorg
34ccf15daa popover_menus: Fix boolean | undefined types.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 13:59:19 -08:00
Anders Kaseorg
cf7e420847 templates: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 13:52:21 -08:00
Anders Kaseorg
19f5ea8832 css_variables: Convert module to TypeScript.
This is okay now due to #32327.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 12:24:58 -08:00
Pratik Chanda
fb0ae31206 typeahead: Remove empty user groups from typeahead suggestion.
Earlier, user groups with deactivated users or empty groups would
show up in the typeahead suggestion.

This commit removes empty user group while iterating over each group
items.

Fixes: zulip#30890.
2024-11-27 10:26:44 -08:00
Alya Abbott
510af0e0fc help: Document adding users to groups via invitation modal. 2024-11-27 09:56:33 -08:00
Alya Abbott
c40cbd4623 help: Improve subgroups documentation. 2024-11-27 09:56:33 -08:00
Anders Kaseorg
cac3bca409 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:54:56 -08:00
Anders Kaseorg
9a4728425d eslint: Migrate to flat configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:54:56 -08:00
Anders Kaseorg
7950696081 eslint: Remove unused web/third configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:54:56 -08:00
Anders Kaseorg
eeb78fe3a4 eslint: Remove @babel/eslint-parser remnant.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:54:56 -08:00
Anders Kaseorg
cc7b667d57 message_list_tooltips: Fix observer type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:54:56 -08:00
Anders Kaseorg
bb174e9b64 gear_menu: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-27 09:34:49 -08:00
Anders Kaseorg
aa0dd44234 eslint: Remove incorrectly duplicated configuration for help-beta.
`help-beta/**.ts` does not work in ESLint, and the duplication is
unnecessary.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-26 19:46:02 -08:00
Anders Kaseorg
111afd3207 help-beta: Fix TypeScript module configuration.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-26 19:46:02 -08:00
Sahil Batra
ba48e01064 settings: Make the empty panel text darker in light theme.
Text shown for empty left and right panels in stream and group
settings UI was too faded in light theme, so we make the text
a little darker.

Fixes #32212.
2024-11-26 15:10:55 -08:00
evykassirer
cda30ec1cb buddy_list: Fix incorrect id name for popover. 2024-11-26 15:06:43 -08:00
Niloth P
a350de447b integrations: Make client_name a kwarg.
All integrations currently use their name as their client name as
well. Removed the redundancy of declaring the same name twice, while
retaining the support for client names.
2024-11-26 15:03:47 -08:00
Niloth P
a3b572f9cd integrations: Remove redundant display_name values. 2024-11-26 15:03:45 -08:00
Niloth P
2ad19ff05e integrations: Update Beeminder example screenshot. 2024-11-26 12:43:31 -08:00
Niloth P
d6fe41878e integrations: Fix $ position in Beeminder message template. 2024-11-26 12:43:31 -08:00
Lauryn Menard
a0bbc62f2b support: Add fixed-price plan configuration to Cloud support view.
Adds ability to configure a fixed-price plan and to delete a
configured fixed-price plan in the Cloud support view.

Updates the invoice processing to send reminder emails to the
billing support email for these Cloud fixed-price plans about
renewals since we now are able to configure them via our support
panel.

Updates function to get the billing session for stripe webhook
events to handle an intial upgrade for a custom generated invoice
for a fixed-price plan for a Cloud organization, which won't have
a user_id in the invoice metadata.
2024-11-26 12:42:39 -08:00
Lauryn Menard
89b5e850b2 support: Implement setting a current plan end date for Cloud support.
Prep for implementing fixed-price plan offers in Cloud support view.
2024-11-26 12:42:39 -08:00
Lauryn Menard
6376fb7fec support: Remove count check of keys in Cloud support view.
This check made sense before the support view expanded with the
billing system work over this past year. As we continue to expand
the actions/features of the support views, it's likely we'll have
cases where we're passing more values for particular features.

Prep for implementing fixed-price plan offers in Cloud support view.
2024-11-26 12:42:39 -08:00