Commit Graph

62157 Commits

Author SHA1 Message Date
Aman Agrawal
bb8a0ea1f4 stripe: Create customer if one doesn't exist.
Since this function can only be called by billing admins, it
is okay to allow them to create a customer if one doesn't exist.
2024-12-17 10:33:22 -08:00
Aman Agrawal
9b96b45841 recent_view: Fix transparent avatar background color being changed.
We don't set a background color for transparent avatars to avoid
changing what the avatar is supposed to be.
2024-12-17 10:28:50 -08:00
sanchi-t
4134cfe2bf css: Remove non-existent selector. 2024-12-17 10:28:32 -08:00
sanchi-t
92b8d66c3b css: Refactor theme colors for #recent_view.
This change moves the light and dark theme colors for
`#recent_view` element to CSS variables.
2024-12-17 10:28:32 -08:00
Aman Agrawal
0232eaba35 condense: Modify height offset to collapse messages.
The goal is to reduce the frequency with which unread messages are
collapsed and thus hard to actually read.

Fixes #31501.
2024-12-17 10:14:43 -08:00
Sahil Batra
a9bd614df3 default_streams: Remove get_default_streams_for_realm_as_dicts.
Since get_default_streams_for_realm_as_dicts function was only
used in tests, this commit removes it and updates the test to
use the function which returns Stream objects instead of dicts.

This commit also removes Stream.to_dict function which is no
longer used.
2024-12-17 09:40:10 -08:00
Sahil Batra
1182e7e350 streams: Pass only stream IDs for default stream groups data.
Clients do not use default stream groups feature now but they
should only require IDs when they use them and not the full
stream data since that is already available in streams and
subscriptions data.
2024-12-17 09:40:10 -08:00
Sahil Batra
1c933dd231 streams: Include only IDs in default streams data.
Clients do not need complete stream objects in the default
streams data since they already have that via streams and
subscriptions data.
2024-12-17 09:40:10 -08:00
Anders Kaseorg
a9b9ed6c5b run-dev: Support extra MIME types from zerver.lib.mime_types.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-17 09:34:29 -08:00
Anders Kaseorg
a6f5d24dc6 run-dev: Move out-of-place import statement.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-17 09:34:29 -08:00
Alya Abbott
3e7621f420 portico: Add help center links to /security. 2024-12-17 09:33:41 -08:00
Alya Abbott
c1c2463dbd portico: Improve channel permissions links. 2024-12-17 09:33:41 -08:00
Tim Abbott
36e44c57a1 github: Use British spelling for organization.
This is required by https://dir.floss.fund/validate.
2024-12-16 15:55:23 -08:00
Anders Kaseorg
1043e12df1 help-beta: Fix sidebar for allow-image-link-previews rename.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-16 13:38:05 -08:00
Anders Kaseorg
8da43b82fa help: Fix unescaped angle brackets.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-16 13:38:05 -08:00
Anders Kaseorg
21a085e390 generate_emoji_names_table: Update SORTED_CATEGORIES.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-16 13:12:01 -08:00
PieterCK
f988412394 slack_data_import: Support converting integration bot users.
Currently, we're unable to convert messages from Slack's integration
bots because this message subtype doesn't come from a Slack "user", that
is they don't have a Slack user profile.

This is a preparatory change to support converting Slack's integration
bot messages. This commit artificially creates Slack user data from the
integration bot's "profile" so that we can create a corresponding Zulip
user for them.

Part of #31311.
2024-12-16 13:09:57 -08:00
PieterCK
10946caa3d slack_data_import: Update how Slack user avatars are processed.
Previously, the Slack export converter can only process Slack's avatar
URL from Slack's "ca.slack-edge.com" server, which looks like this:

https://ca.slack-edge.com/T0CDRA6HM3P-U06NABE26M9-1173e04f818e-512

This commit adds support for converting any public downloadable image
URLs.

This is done to support importing Slack's integration bots and their
messages, which typically have PNG type file url:

https://avatars.slack-edge.com/2024-05-01/7057208497908_a4351f6deb91094eac4c_72.png
2024-12-16 13:09:57 -08:00
Maneesh Shukla
e856294da6 compose: Open the compose box with channel picker.
This commit changes the code in such a way that the
"Start new conversation" button open the compose box with the channel
picker open, as we do when no channels is selected.

Fixes #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Maneesh Shukla
b024e71dc0 compose: Add tooltip over compose-reply button.
This commit adds the tooltip content for disabled stream reply button.

Fixes part of #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Maneesh Shukla
d8c5dcb41d compose: Disable compose reply button.
This commit updates the logic to disable the reply button based on the
user's permissions in the stream.

Fixes part of #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Aman Agrawal
0383730391 tooltip_templates: Remove unused data-view-code attribute.
This attribute is only usable on clickable targets as per the
existing click handler logic which these tooltips are not.
2024-12-16 09:04:18 -08:00
Lauryn Menard
a1121b39ad stripe: Rename should_schedule_upgrade_for_legacy_remote_server param.
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
Renames should_schedule_upgrade_for_legacy_remote_server parameter
to upgrade_when_complimentary_access_plan_ends in both
process_initial_upgrade and compute_plan_parameters, as well as
associated variable names and relevant code comments.
2024-12-15 09:15:07 -08:00
Lauryn Menard
1f2f0af257 stripe: Rename remote_server_legacy_plan param in initial upgrade.
Renames the remote_server_legacy_plan parameter in
process_initial_upgrade to instead be complimentary_access_plan,
as well as some relevant code comments in that function.
2024-12-15 09:15:07 -08:00
Lauryn Menard
7a0626aede stripe: Rename get_remote_server_legacy_plan.
Renames get_remote_server_legacy_plan to
get_complimentary_access_plan, as well as
associated variable names.
2024-12-15 09:15:07 -08:00
Lauryn Menard
20352aff9e stripe: Rename get_legacy_remote_server_next_plan.
Renames get_legacy_remote_server_next_plan to
get_complimentary_access_next_plan, as well as
associated variable names.
2024-12-15 09:15:07 -08:00
Lauryn Menard
b6f8c20772 stripe: Rename get_legacy_remote_server_next_plan_name.
Rename get_legacy_remote_server_next_plan_name to
get_complimentary_access_next_plan_name, as well as all
associated variables.
2024-12-15 09:15:07 -08:00
Lauryn Menard
713bef6ff5 stripe: Rename get_formatted_remote_server_legacy_plan_end_date.
Renames get_formatted_remote_server_legacy_plan_end_date to
get_formatted_complimentary_plan_end_date and associated
variable names.
2024-12-15 09:15:07 -08:00
Lauryn Menard
984fdf3eb9 upgrade: Update context variables to use "complimentary_access". 2024-12-15 09:15:07 -08:00
Lauryn Menard
23bd4a99f8 billing: Update class and id attributes to use "complimentary-access".
The "cancel-legacy-server-upgrade-button" class attribute was not
being used in CSS rules or frontend biling code, so these changes
remove it instead of renaming it.
2024-12-15 09:15:07 -08:00
Lauryn Menard
f63e5c9242 billing: Update context variables to use "complimentary_access". 2024-12-15 09:15:07 -08:00
Mateusz Mandera
94cc413016 docs: Renaming AzureAD to Entra ID, part two.
This is a follow-up to #32693, which missed a bunch of places due to
varying ways of typing Azure AD. (Azure AD, Azure Active Directory etc.)

In the diff there's an apparent inconsistency with renaming, in some
places renaming to just "Microsoft Entra ID" and in others
"Microsoft Entra ID (AzureAD)".
The idea is to add (AzureAD) in ordinary documentation, as it can help
clarity since many people still think of this as AzureAD, while sticking
with brevity and cleanliness of just using the official name in
marketing focused material.
2024-12-15 08:22:30 -08:00
Alya Abbott
426a5484bd help: Rephrase confusing note.
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
2024-12-13 20:10:59 -08:00
Alya Abbott
8a60b83c55 help: Rewrite channel permissions page.
- Explain channel types and other permissions in words.
- Drop tables of permissions.
2024-12-13 20:10:56 -08:00
Alya Abbott
e4a33f7c48 help: Move note about globe indicator for web-public channels. 2024-12-13 20:10:56 -08:00
Alya Abbott
423eab65a4 help: Document channel administrator feature. 2024-12-13 20:10:08 -08:00
Alya Abbott
146bc911c2 help: Remove extra info on "Create a channel" page.
Remove duplicate info to simplify maintenance.
2024-12-13 20:10:08 -08:00
Alya Abbott
bf7c9959c1 help: Split permissions to add and remove subscribers into 2 pages. 2024-12-13 20:10:07 -08:00
Lauryn Menard
6d89a1bdc0 templates: Add open graph title and description for web-public view.
Sets a title and description for open graph data that can be
used for URL/link previews for Zulip organizations that have
web-public channels.
2024-12-13 20:04:08 -08:00
Tim Abbott
6e58982d4b api_docs: Improve upload file API description. 2024-12-13 17:01:43 -08:00
Alya Abbott
8c712838aa updates: Add update message (level=11). 2024-12-13 15:35:44 -08:00
Maneesh Shukla
74d7f11923 password: Add cancel debounce feature. 2024-12-13 14:40:29 -08:00
Karl Stolley
327afd5273 user_circles: Introduce circle icons to Inbox. 2024-12-13 14:33:24 -08:00
Karl Stolley
1bad9a82cc user_circles: Introduce circle icons to Recent conversations. 2024-12-13 14:33:24 -08:00
Karl Stolley
75a82fa8a2 user_circles: Introduce circle icons to typeahead. 2024-12-13 14:33:24 -08:00
Karl Stolley
f25442bac2 user_circles: Introduce circle icons to group popover. 2024-12-13 14:33:24 -08:00
Karl Stolley
de3aa9e8dd user_circles: Introduce icons into layout-corrected user modal. 2024-12-13 14:33:24 -08:00
Karl Stolley
86c1cfcfbe user_circles: Introduce circle icons to popovers. 2024-12-13 14:33:24 -08:00
Karl Stolley
1113bd53b6 user_circles: Introduce circle icons in sidebars. 2024-12-13 14:33:24 -08:00
Karl Stolley
67a67897f9 user_circles: Introduce status-based hyphenated classes. 2024-12-13 14:33:23 -08:00