Commit Graph

62144 Commits

Author SHA1 Message Date
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.
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. 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
Karl Stolley
b641fe2912 user_circles: Remove unused .user_circle_empty_line selector and styles. 2024-12-13 14:33:23 -08:00
Alya Abbott
a04759f7f9 funding: Add a funding.json file.
See https://floss.fund/funding-manifest/ for details.
2024-12-13 13:36:51 -08:00
Karl Stolley
27c6d5c836 dark_theme: Extend higher-contrast color to sidebars. 2024-12-13 13:36:20 -08:00
Karl Stolley
a13008b1d3 dark_theme: Adjust message colors for higher contrast. 2024-12-13 13:36:20 -08:00
Aman Agrawal
7e0705913d footer: Fix footer items mis-aligned in Russian.
Change alignment of footer rows to flex-start a bit earlier.
`1280px` is chosen since that's the standard `max-width` for
the screens on the page and that is width around which the
massive gap before the first item on the footer is diminished which
allows us to left align the elements.
2024-12-13 13:02:06 -08:00
Kislay Verma
b6d8bf3a80 navbar_alerts: Add alert to update time zone.
If the user has enabled the option to automatically offer to update
their profile time zone with the browser's time zone, we show an alert
offering that.
Clicking on "Yes" updates the timezone.
Clicking on "No, don't ask again" disables (unchecks) the option.

A feedback toast is displayed to indicate the success/failure of the
request.

The alert is also shown if the user has not set their time zone.

Fixes #16957.
2024-12-13 12:58:09 -08:00
Kislay Udbhav Verma
a2c6c11296 timerender: Track browser time zone.
We add a variable `browser_time_zone` to track the same
separately from `display_time_zone`.

This is used to check whether the user profile time zone matches
the browser's time zone, as a part of #16957, and will later be
used in #16958.

We also add methods to check whether a given timezone is the same
as that of the browser, making use of the browser's own
canonicalization process.

Tests are added to ensure that the time zone comparison
logic works for timezones observing DST.

Fixes part of #16957
2024-12-13 12:58:09 -08:00
Kislay Verma
a817671809 settings_ui: Add checkbox for toggling field.
Added a checkbox to toggle the option to automatically offer
to update the time zone with the browser time zone,
which is handled by the user profile field
"web_suggest_update_timezone".

A tooltip is also attached explaining the feature.

Fixes part of #16957
2024-12-13 12:58:09 -08:00
Kislay Verma
00df8a593d user_settings: Add field web_suggest_update_timezone.
This field tracks whether the user should be shown an
alert offering to update their profile time zone to the
time zone of the browser in case they differ.

The field is added to RealmUserDefault and UserProfile
models with a default value of True.

Fixes part of #16957
2024-12-13 12:58:07 -08:00
Vector73
143ca5065e api: Remove user object from reactions objects in the API.
Removes deprecated `user` object from reactions objects returned by
the API as it is redundant because of the presence of `user_id` field in
the API and is not used by any clients now.
2024-12-13 09:58:25 -08:00
Karl Stolley
eed844caef compose: Maintain circular shape for conversation arrow. 2024-12-13 09:48:41 -08:00
Aman Agrawal
f452d64d64 topic_list: Scroll user to the selected topic in left sidebar.
Fixes #32601
2024-12-12 18:41:34 -08:00
Aman Agrawal
0af738269a stream_list: Ignore left sidebar scroll until initial fetch is complete.
Since the initial fetch has a lot of messages, it can add many topics
to the left sidebar which can move the selected topic out of the view.

Note that `has_scrolled` is triggered even for the scrolls not triggered
by user since it is not easy to differentiate between the two events.
So, it is okay to ignore it initially.
2024-12-12 18:40:19 -08:00