Commit Graph

65734 Commits

Author SHA1 Message Date
Prakhar Pratyush
3c6a3b0d77 zilencer: Add endpoint to register push device to bouncer.
This commit adds a zilencer endpoint to let self-hosted
servers register push devices to whom mobile push notifications
will be sent.

POST "/api/v1/remotes/push/e2ee/register"
Payload: realm_uuid, push_account_id, encrypted_push_registration,
bouncer_public_key

The post request needs to be authenticated with the server’s API key.

Note: For Zulip Cloud, a background fact about the push bouncer is
that it runs on the same server and database as the main application;
it’s not a separate service.
So, as an optimization, we plan to directly call the
`do_register_remote_push_device` function and skip the HTTP request.
2025-07-14 14:52:38 -07:00
Prakhar Pratyush
5facec1cc3 zilencer: Remove 'user_uuid' parameter of 'get_remote_realm_helper'.
The 'user_uuid' parameter of 'get_remote_realm_helper' was only
used for logging when realm lookup fails, but we've never made
use of that detail in practice.

There is no strong reason to keep that.
2025-07-14 14:52:38 -07:00
Prakhar Pratyush
e10d413476 RemotePushDevice: Migrate token_kind from IntegerChoices to TextChoices.
Improves code readability by using string values ("apns", "fcm")
instead of integers (1, 2).
2025-07-14 14:52:38 -07:00
Sayam Samal
7a26c41c42 inputs: Remove JS logic to determine empty/non-empty input fields.
This commit removes the JavaScript logic that was used to determine
whether an input field was empty or non-empty. The CSS pseudo-classes
and selectors seem robust enough to handle the styling based on the
input state without needing additional JS logic at the moment, and
removing this JS logic simplifies the codebase and prevents potential
conflicts with the CSS styles.
2025-07-14 13:58:02 -07:00
Sayam Samal
4341453568 left_sidebar: Improve logic to detect empty filter input with pills.
This commit refines the logic for determining when the filter input with
pills is empty. The JS logic is removed from web/src/topic_list.ts,
as this new logic is now handled in the CSS, common across all filter
inputs with pills — resulting in a consistent and predictable behavior
for empty states on all the new filter inputs.
2025-07-14 13:58:02 -07:00
Sayam Samal
ac27299cc9 left_sidebar: Fix filter input alignment with common left sidebar grid.
This commit adjusts the left and right padding of the input element in
the filter topics input to account for the left and right borders.
This ensures that the text inside the input is aligned with the text in
other elements of the left sidebar grid.
2025-07-14 13:58:02 -07:00
Sayam Samal
c90190bcdb left_sidebar: Make icon column width scale with font size. 2025-07-14 13:58:02 -07:00
Sayam Samal
8b236e6f29 left_sidebar: Stretch filter inputs to fill available space on right. 2025-07-14 13:58:02 -07:00
Sayam Samal
5e92a57adb inputs: Fix input color values deviating from the design.
This follow-up commit fixes the incorrect input color values that were
introduced in the initial commit. This change is most visible in the
'hover' state where the values were incorrectly set to the same values
as that of the normal state, leading to a lack of visual distinction.
2025-07-14 13:58:02 -07:00
Sayam Samal
f3fc26c6ff left_sidebar: Standardize topic list filter input.
This follow-up commit replaces the current left sidebar topic list
filter input implementation with the redesigned input_wrapper
component.

This commit also serves as the base for supporting inputs using the
search_pill_widget, and thus adjusts the previously defined logic at
certain places to ensure that the input pills are handled and
displayed accurately.

Fixes part of #34476.
2025-07-14 13:58:02 -07:00
Sayam Samal
a4dd8e515d input_pill: Move input pill styles to app_variables.css.
This prep commit consolidates the input pill styles into
`app_variables.css` and uses the light-dark notation for the color
variables to avoid specificity issues that arose from `dark_theme.css`.
2025-07-14 13:58:02 -07:00
Sayam Samal
f4ec5f9741 topic_list: Fix and improve selectors related to the topic list filter. 2025-07-14 13:58:02 -07:00
Niloth P
c75a48b63b integrations: Remove Phabricator integration.
Phabricator has not been actively maintained since June 2021.
2025-07-14 12:03:48 -07:00
Sayam Samal
1c58dcddfa compose: Fix buggy tooltip hotkey hint placement in compose send button.
This commit eliminates a bug, introduced in commit
7bc04bb829, where the send button's
tooltip hotkey hint would have incorrect placement when the user had
triggered a tippy instance on the send button while it was disabled.

The reason behind this bug was the conflict between code in the
previously mentioned commit which set the tooltip content to
`display: block` to account for the inline italicized empty topic name
in the error message, and the need for `display: flex` to ensure the
hotkey hint was positioned correctly.
2025-07-14 11:36:19 -07:00
Anders Kaseorg
ea48a283b1 mypy: Add google-re2-stubs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-07-14 14:33:54 -04:00
Shubham Padia
de472a09f9 help-beta: Add footer to the new help center.
Fixes #35116.
We copied whatever logic we needed from documentation_main.html. We have
not added the policy footer case from that html file into our footer
since that case does not apply to the new help center yet.
We process and pass the support email in the build help center step.
2025-07-14 10:45:40 -07:00
Shubham Padia
37da139442 help-beta: Use CORPORATE_ENABLED instead of SHOW_BILLING_HELP_LINKS.
We should use the generic name of the env variable since we intend to
use it in places without the billing help links context.
2025-07-14 10:45:40 -07:00
Shubham Padia
124da4d588 help-beta: Nested lists should not have 1rem margin.
Fixes #35126.
2025-07-14 10:42:25 -07:00
Lauryn Menard
b24f82e152 help: Update out-of-date icons in help center instructions. 2025-07-14 10:41:17 -07:00
Lauryn Menard
64cdd13c18 help: Remove restore draft/scheduled message icons.
We updated these overlays to only require clicking the selected
draft or message to open them in the compose box.
2025-07-14 10:41:17 -07:00
Lauryn Menard
3bfa4afff9 help: Update docs for message header bar button changes.
These icons were updated in #34777.
2025-07-14 10:41:17 -07:00
Lauryn Menard
3e6492a0fd help: Fix description of edit channel name and description icon. 2025-07-14 10:39:50 -07:00
Lauryn Menard
4473a1ef89 help: Update mobile tabs for channel feed and topic list icons. 2025-07-14 10:39:19 -07:00
Tim Abbott
07bb806b28 streams: Extract access_requested_group_permissions.
This code will need to be called from both API endpoints for creating
channels soon.
2025-07-14 07:44:01 -07:00
apoorvapendse
cb487da45a streams: Set system_groups_name_dict in add_subscriptions_backend.
We need system_groups_name_dict in all cases.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-14 07:44:01 -07:00
apoorvapendse
e2f3b64b35 streams: Extract channel creation permissions check logic.
Prep commit to add the channel creation API
endpoint.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-14 07:44:01 -07:00
Vector73
3fecbe41c5 compose_recipient: Fix fade when narrowing to empty topic only channel.
Previously, narrowing to empty topic only channel keeps message list
faded even if the compose recipient to set to that channel. This commit
fixes this bug.
2025-07-11 16:00:11 -07:00
Vector73
741b38ecfa sidebar: Show "New message" tooltip for empty topic only channel.
Show "New message" tooltip for empty topic only channel instead
of "New topic" in left channel sidebar row.
2025-07-11 16:00:11 -07:00
Alya Abbott
e6845a9b9a help: Document new options for which messages are marked as read. 2025-07-11 15:55:35 -07:00
Tim Abbott
5b1ec00350 remove_single_newlines: Fix double-space issue.
The Flutter mobile apps don't collapse repeated spaces into single
spaces the same way HTML text does, so leading/trailing whitespace in
these automated messages end up rendering weirdly.

The regex previously didn't handle a corner case that appears in the
latest message.

Co-authored-by: Greg Price <greg@zulip.com>
2025-07-11 15:52:24 -07:00
Karl Stolley
77cd886e24 settings_overlay: Remove the settings-section show class on close. 2025-07-11 15:50:12 -07:00
Aditya Kumar Kasaudhan
f6f4e3886e navigation_view: Add "scheduled" to built-in view fragments.
It was missed in #32528.
2025-07-11 15:48:20 -07:00
Aditya Kumar Kasaudhan
76811e0171 event: Fix navigation view event schema validation.
This commit aligns navigation view event type with Python event schema
classes. The schema validation script constructs class names from event
types, so this commit ensures the navigation view event type match the
expected EventNavigationView class names.
2025-07-11 15:48:20 -07:00
Tim Abbott
c584478c76 api_docs: Fix malformed feature level typo. 2025-07-11 14:55:00 -07:00
Aditya Kumar Kasaudhan
0b37ef6a9b email: Bulk clearing of scheduled emails for multiple users.
This commit is a preparatory step for allowing organization owners to
reset user preferences, refactors the `clear_scheduled_emails` function
to support bulk operations.
2025-07-11 14:15:49 -07:00
Pratik Chanda
de18ff348c search_suggestion: Omit operand in pill for autocomplete suggestion.
Currently, topic autocomplete suggestion adds a `general chat` operand
value to the pill in suggestion dropdown description.

This is correct if we've already picked a topic operator and have ""
as the current suggested topic value, but is wrong for the state where
we haven't yet.
2025-07-11 14:00:07 -07:00
Pratik Chanda
1c86238f4f search_suggestion: Change description_html for channel op suggestion.
Currently we suggest same description_html for channel operator
suggestion and channel operator,operand suggestion. When we
don't suggest any channel name for channel operator we should show
different description_html.

This commit corrects this behaviour.
2025-07-11 14:00:07 -07:00
Pratik Chanda
a12a6905c4 css: Remove extra column space for pills in suggestion.
This commit removes extra column space added to pills in suggestion
which is normally there for exit button. We don't have exit buttons
in suggestions so we remove this.
2025-07-11 14:00:07 -07:00
Rohan Gudimetla
26abfc4d91 markdown: Render inline audio files using the ![title](url) syntax.
Previouly, there was no option to play the inline audio files
within the web app without downloading or leaving the browser.

This commit adds option to render inline audio files that use
the syntax `![title](url)`.

Fixes #27007
2025-07-11 13:11:56 -07:00
Tim Abbott
cdeb7f137f compose_state: Strip leading newlines to match server.
This fixes a bug where if you send a message with leading newlines,
you can't edit it until you've reloaded the browser.
2025-07-11 13:06:32 -07:00
Vector73
babf54d2f6 stream_popover: Rename update_topic_input_placeholder_visibility.
Renames `update_topic_input_placeholder_visibility` to
`update_topic_input_placeholder` as it seems more appropriate after
refactoring.
2025-07-11 12:35:05 -07:00
Vector73
49a516a3db stream_popover: Refactor updation of topic input placeholder. 2025-07-11 12:35:05 -07:00
PieterCK
6bf6249d56 users: Fix check_valid_bot_config bug.
Currently `check_valid_bot_config` checks if `config_options` has a
falsy value to determine whether an integration is invalid or not. But,
what it actually does is check whether an exists in WEBHOOK_INTEGRATIONS
and it has at least one WebhookConfigOption.

It should instead, check if `config_options` is `None` to determine
whether an integration is invalid or not.
2025-07-11 12:34:46 -07:00
Sahil Batra
e633ba5c71 settings-ui: Align items to center in stream and group rows.
This commit updates CSS to use flex layout to correctly
align items in stream and group rows to center and avoid
using top margins.
2025-07-11 12:33:45 -07:00
Sahil Batra
e79218692f settings-ui: Use relative sizes for stream and group rows.
This commit updates CSS to use relative width and height of
icons, margins and paddings for stream and group rows in
left panel.
2025-07-11 12:33:45 -07:00
Vector73
ae9336a904 api_docs: Fix missing display_recipient object in API docs.
The `display_recipient` object was not rendered in the API docs
because the case where `items` key was inside `oneOf` block was not
handled in the "api_return_values_table_generator.py".
2025-07-11 12:32:21 -07:00
Vector73
71342169ff stream_settings: Update organization default dropdown labels.
Updates labels for organization default options in "topics policy"
and "message retention policy" channel settings.

Fixes #35212.
2025-07-11 12:31:03 -07:00
Mateusz Mandera
99b97ea883 saml: Don't put group_memberships_sync_map in the session.
In 40956ae4c5 we implemented group sync
via SAML during sign in and sign up. The sign up implementation used a
session variable group_memberships_sync_map to plumb through the sync
information to the registration codepath, to execute group sync after
user creation.

We can use a more robust approach instead, and just amend groups on the
`PreregistrationUser` object that's going to be used for registration.
2025-07-11 10:18:58 -07:00
Lauryn Menard
08e9853850 help: Add mobile instructions for viewing status emoji and message.
Updates the documentation for the user profile in mobile as well.
2025-07-10 18:45:52 -07:00
Alya Abbott
57321a6a4a updates: Add Zulip update announcement (level=18). 2025-07-10 18:42:47 -07:00