Commit Graph

63435 Commits

Author SHA1 Message Date
Anders Kaseorg
9ca13fb0a5 attachments: Extract attachment_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
b19a556982 stream_types: Remove email_address from ApiStreamSubscription.
Commit 432001656e removed this from the
backend.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
536938eea6 reactions: Remove local_id from ReactionEvent.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Alya Abbott
9261bc6eb3 contributor docs: Improve guidelines on how to get help. 2024-12-30 09:39:17 -08:00
Alya Abbott
710425c7dd contributor docs: Rename streams -> channels in contributing guide. 2024-12-30 09:39:17 -08:00
Sahil Batra
8815e7ac79 user_groups: Remove incorrect comment.
There was a comment mentioning get_all_realm_user_groups
was only used in tests, but we now use it to get potential
subgroups of a group, so that comment is removed.
2024-12-30 09:37:32 -08:00
Sahil Batra
f498201141 group-settings: Allow system groups as subgroups when creating groups.
System groups should be shown in typeahead when adding members
to a group during its creation.
2024-12-30 09:37:32 -08:00
Anders Kaseorg
58822372d5 typos: Fix typos caught by typos and mwic.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-24 19:15:36 -08:00
Anders Kaseorg
ed6dc25710 help-beta: Fix sidebar for change-a-users-role rename.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-23 13:01:27 -08:00
Anders Kaseorg
f0aa6e0a05 help-beta: Fix sidebar for roles-and-permissions rename.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-23 13:01:27 -08:00
Anders Kaseorg
18218f3100 help-beta: Fix sidebar for review-your-organization-settings removal.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-23 13:01:27 -08:00
Anders Kaseorg
b1111acf23 help-beta: Fix sidebar for quote-and-reply rename.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-23 13:01:27 -08:00
Alex Vandiver
3eb501fa18 requirements: Require some swap space if installed on < 5GB RAM. 2024-12-22 06:52:06 -08:00
Anders Kaseorg
2709e7a636 requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-21 21:06:53 -08:00
Anders Kaseorg
63aaafb94a send_email: Parse emails in a way mypy 1.14 understands.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-21 21:06:53 -08:00
Anders Kaseorg
0bb0d3598b scim: Add None check for email_new_value.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-21 21:06:53 -08:00
Anders Kaseorg
19b8cde27f ruff: Fix PLC0206 Extracting value from dictionary without calling .items().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-21 21:06:53 -08:00
Anders Kaseorg
5bad79dd5b openapi: Depluralize Subscription schema name.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-20 16:15:45 -08:00
Anders Kaseorg
c1abeb050f openapi: Depluralize Attachment schema name.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-20 16:15:45 -08:00
Karl Stolley
5e8070222e modals: Style formatted time descriptions to match move modal. 2024-12-19 09:07:44 -08:00
Karl Stolley
c505e23d8c modals: Better style move-count indicator. 2024-12-19 09:07:44 -08:00
Karl Stolley
a81bb51a82 modals: Structure heading as grid to allow line wrapping. 2024-12-19 09:07:44 -08:00
qnhn22
e97572e30b settings: Improve presentation of auto-follow topics settings.
Fixes #32761
2024-12-19 09:06:16 -08:00
Tim Abbott
f2e1c1eae8 landing_nav: Use absolute URL for case studies.
We need absolute links here for self-hosted systems, at least until we
fix this navigation content appearing on /integrations on self-hosted
systems.
2024-12-18 23:37:54 -08:00
opmkumar
5b0c55fda3 realm: Add option to schedule data deletion while deactivating.
Introduce a feature to schedule realm data deletion time during realm
deactivation. This includes a server-level setting to configure the
minimum and maximum allowed deletion days.

Co-authored-by: Ujjawal Modi <umodi2003@gmail.com>
Co-authored-by: Lauryn Menard <lauryn@zulip.com>

Fixes #24677.
2024-12-18 23:06:12 -08:00
Anders Kaseorg
219c3b56df tests: Continue execution after blueslip.reset failures.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-18 21:39:22 -08:00
Karl Stolley
42f210ee26 move_modals: Better structure and style stream/topic references. 2024-12-18 17:10:45 -08:00
Karl Stolley
af209822a4 move_modals: Update language in headings.
Now that we're able to wrap these to multiple lines, this feels like
the cleanest way to present what we're doing.
2024-12-18 17:10:45 -08:00
Sayam Samal
7f1629f05e user_group_popover: Fix extra gap when group description is empty.
Previously, when the group description was empty, the group description
element still existed as an empty element which resulted in an extra
gap between the group name and the members count.

This commit fixes this by conditionally rendering the group description
element in the handlebar template.
2024-12-18 17:08:34 -08:00
Sayam Samal
7a27e0aadd user_group_popover: Fix misaligned icons in user group member list.
Previously, due the uneven width between the icons and the user
presence indicator, the icons and presence indicator were misaligned
with each other.

This commit uses the grid and subgrid layout systems to fix this
misalignment issue.
2024-12-18 17:08:34 -08:00
Sayam Samal
86c0be1cb4 buttons: Add icon-only button styles.
This commit adds the icon-only button styles to the codebase along with
appending this new button style to the storybook-style page in
`/devtools/buttons` to view and test the icon-only button component.

The redesigned icon button component, uses the `icon-button` class to
follow Zulip's no-abbreviation policy, and to avoid conflicts with the
pre-existing `button` and bootstrap `btn` classes.

A button using this new style, should use the following classes,
  - First, the base `icon-button` class which defines the structure
  and behavior of the button. (Required)
  - Second, a `icon-button-square` class, to be used in conjecture
  with the `icon-button` class which provides the style for the squared
  button style of icon button. (Optional)
  - Third, a modifier class like `icon-button-neutral` which
  defines the colors for the particular icon button type. (Required)
2024-12-18 16:59:43 -08:00
PieterCK
c6fd0ba424 integrations: Clean up duplicate functions.
This commit makes the Slack incoming webhook use the original
`convert_slack_formatting` and `convert_slack_workspace_mentions` from
`slack_message_conversion.py`. Previously those were not refactored out
into two smaller functions yet.

Fixes part of #30827.
2024-12-18 16:14:20 -08:00
PieterCK
a194d62093 integration-doc: Fix typo/wrong in Slack token scope list.
This commit deletes the duplicate `users:read` token scope from the list
of token scopes.
2024-12-18 16:14:20 -08:00
PieterCK
f2599bf33d integrations: Do check_token_access only initially.
Previously the `check_token_access` is called for every request we get
from Slack webhook, this may introduce significant latency.

This commit moves `check_token_access` to the same condition for when we
need to handle Slack challenge handshake so that we only do API token
check once per URL registered.

Additionally, we now check for the specific scopes that we need to run
the Slack webhook integration (SLACK_INTEGRATION_TOKEN_SCOPES).

Fixes part of #30827.
2024-12-18 16:14:19 -08:00
PieterCK
a746be807f slack_import: Make check_token_access more flexible.
Previously, the `check_token_access` function had a hardcoded
`required_parameters` variable because it was only used in the Slack
data importer. This commit refactors `required_parameters` into a
function parameter, enabling the function to check a Slack token’s scope
for other purposes, such as Slack webhook integration.

Additionally, this commit changes the Slack API call in
`check_token_access` from `teams.info` to `api.test`. The endpoint is
better suited for this purpose since we're only checking a token’s scope
using the response header here.
2024-12-18 16:11:31 -08:00
Alya Abbott
51b9a7f43e help: Note that channel names can include Unicode emoji.
Also add a tip about links in channel descriptions.
2024-12-18 15:15:55 -08:00
Alya Abbott
0d4eca2032 help: Note that you may need a separate account for a call. 2024-12-18 13:20:50 -08:00
Karl Stolley
a58e4d7be6 channel_descriptions: Hyphenate long words in lieu of arbitrary breaks. 2024-12-18 13:18:14 -08:00
Karl Stolley
52968f3729 subscriptions: Correct alignment of privacy icon. 2024-12-18 12:23:28 -08:00
Karl Stolley
fb34d936c4 privacy_icon: Correct misplaced closing quotation marks. 2024-12-18 12:23:28 -08:00
Maneesh Shukla
a01de323a5 compose: Modified compose logic to hide warning banners.
- Modified compose logic to hide warning banners when error banners
(e.g., no post permissions) are visible, removing irrelevant information
during critical errors.

Fixes #25575.

Co-authored-by: joshyhz <joshyap.dev@gmail.com>
2024-12-18 11:40:42 -08:00
Maneesh Shukla
f6053ed15b compose_banner: Return boolean value from append function.
To prepare for changes that introduce the possibility of
an append failing.

Fixes: #25575.

Co-authored-by: joshyhz <joshyap.dev@gmail.com>
2024-12-18 11:40:42 -08:00
PieterCK
dd306e8d80 channels: Prevent moderation_request_channel to be public.
This commit ensures that the channel for `moderation_request_channel`
cannot be set to public when updating it's settings.

Fixes part of #20047.
2024-12-18 11:36:22 -08:00
PieterCK
943fbb76fe settings: Add realm-level setting moderation_request_channel.
This commit introduces a new non-operational
`moderation_request_channel` field to the server/API. This setting will
support a feature allowing users to flag or report abusive content
(harassment, spam, etc.).

Fixes part of #20047.
2024-12-18 11:36:19 -08:00
Aman Agrawal
238c35f2af message_events_util: Remove unnecessary callback.
All callbacks want to add messages, so we just directly do that.
2024-12-18 10:21:48 -08:00
Aman Agrawal
525ae3aaff message_list: Fix message list missing messages.
Since we allow calling `add_messages` without checking fetch status,
it can lead to non-contiguous message history due to latest message
being added to a message list without previous messages being
fetched.

To fix it, we only allow adding new messages via message_fetch
which properly sets `anchor` to the last message in the list
before fetching and adding messages to the list.
2024-12-18 10:21:48 -08:00
Aman Agrawal
9e519f8c18 message_fetch: Fix incorrectly set fetch status.
We update the fetch status before reaching here, so it was
incorrect to return before adding messages to the message
list data since it is always cached.
2024-12-18 10:21:48 -08:00
Aman Agrawal
a95f419650 message_fetch: Improve check for if message list is cached.
Combined feed is no longer cached by default, so this is the
correct check for if the message list is cached or not.
2024-12-18 10:21:48 -08:00
Aman Agrawal
57b0cab706 requirements: Add litellm as a common dependency. 2024-12-18 08:59:20 -08:00
apoorvapendse
852fc42317 setup_docs: Fix wording for WSL2 python environment.
This is valid because the WSL2 python environment
has to be always activated manually.
2024-12-18 08:56:27 -08:00