Commit Graph

63435 Commits

Author SHA1 Message Date
Lauryn Menard
c4e3ccafa2 stripe: Delete fixed price plan offer if customer on comp access plan.
Updates delete_fixed_price_plan to use the same structure as
configure_fixed_price_plan. If there is a customer plan and it's
billable, then we delete the configured CustomerPlan object. If
there is no customer plan or it's a complimentary access plan, we
delete the configured CustomerPlanOffer object.
2025-02-28 17:42:04 -08:00
evykassirer
9ad3159e48 buddy_list: Don't show most sections with no users in them.
Instead of showing the "None" empty message, just hide the whole section
instead. Notably this uses the total user counts and not the number of users
rendered, so it's possible we'll still show the sections when they're partially
loaded or if they have inactive users (in which case we'd show the "view more"
links).

The exception is the "THIS CHANNEL" section which we always want to show,
since it can be confusing to see other sections without this section
present. More conversation on that here:
https://chat.zulip.org/#narrow/channel/101-design/topic/right.20sidebar.20design.20tweaks/near/2099241
2025-02-28 17:41:47 -08:00
evykassirer
30334e75d3 search: Scale message feed banner text with em.
This commit also changes the font-size to 1em, instead
of 16px at 14px.
2025-02-28 17:38:54 -08:00
Tim Abbott
2dd2476f1c version: Update version following 10.0-beta1. 2025-02-28 17:23:02 -08:00
Tim Abbott
404a321799 Release Zulip Server 10.0-beta1. 10.0-beta1 2025-02-28 17:12:41 -08:00
Tim Abbott
d02527b1a8 zulip_updates: Tweak channel permissions text. 2025-02-28 17:12:25 -08:00
Tim Abbott
c25ad00477 docs: Bump versions and drop legacy details in release lifecycle.
I don't think a user-facing document needs to spend limited attention
on a versioning scheme change from 5 years ago.
2025-02-28 17:12:25 -08:00
Tim Abbott
15409c05e2 docs: Bump versions in upgrade page examples. 2025-02-28 17:12:25 -08:00
Tim Abbott
9508877fbc docs: Modernize PostgreSQL upgrade instructions. 2025-02-28 17:12:25 -08:00
Tim Abbott
8a44d77eda docs: Delete Trusty to Xenial upgrade documentation.
I don't believe there's anyone still running 2.0.x versions.
2025-02-28 17:12:24 -08:00
Tim Abbott
b9cbbbcb35 docs: Rewrite server configuration page.
- Restructure the introductory content to be more focused on the
  overview.

- The bottom content was a stale duplicate of the bottom of the
  installer page, dating from when this was a required step after
  running the installer.

- Most of the longer-form sections were duplicates of sections of
  either the installer page or the introductions of dedicated pages on
  the topic. Remove these in favor of new entries in the popular
  settings area.

- Mention storage as a popular setting to configure.

- Remove deleted Twitter integration from popular settings list.
2025-02-28 17:12:24 -08:00
Tim Abbott
42743a8259 i18n: Update translations from Transifex. 2025-02-28 16:46:41 -08:00
Tim Abbott
dd9f239926 settings: Hide realm topic summarization setting.
We don't yet have the documentation that would allow organization
administrators to make decisions about what value to use for this
experimental setting.
2025-02-28 16:46:01 -08:00
Anders Kaseorg
22de8cfea3 counts: Fix current_month_accumulated_count_for_user bounds.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-28 15:15:21 -08:00
Tim Abbott
1044af0015 api: Clarify semantics of sender_id for message edit typing. 2025-02-28 13:23:52 -08:00
opmkumar
c97fd1bca5 api: Rename edit typing endpoint to /messages/{message_id}/typing.
This is more consistent with how other URLs work in Zulip.

Replaces `/message_edit_typing` with `/messages/{message_id}/typing`.
The `message_id` parameter, previously passed in the request body,
is now included in the URL path.
2025-02-28 13:20:46 -08:00
Alya Abbott
61db2bc158 integrations: Update GitHub intergation for new configuration UI. 2025-02-28 13:04:42 -08:00
Prakhar Pratyush
32263b4b8d buddy_list: Fix missing 'THIS CONVERSATION' section for 'general chat'.
Earlier, 'THIS CONVERSATION' section was missing in the right sidebar
when narrowed to empty string topic.

This commit fixes the bug.
2025-02-28 13:02:22 -08:00
Alya Abbott
dfe189f189 help and integrations: Update doc on using Zulip via email. 2025-02-28 10:42:29 -08:00
Shubham Padia
3fb2695a32 message: Add is_modifying_message argument to bulk_access_messages.
Although, currently there are no scenarios where we are using
bulk_access_messages for edit. But we might do so in the future, and
it's better to have an explicit argument called is_modiying_message in
that case, so that the person making that change makes a conscious
decision of setting that property.
2025-02-28 10:10:33 -08:00
Shubham Padia
0def74b097 message: Make is_modifying_message a mandatory kwarg.
This is valuable so that one is forced to explicitly make a decision
on what is correct when adding new callers. Past experience tells us that
not having to explicitly show the decision leads to people introducing
security bugs in PRs that the maintainer has to catch in review, and our
goal for access control code should be that security bugs are hard to write.
Fixes #33688.
2025-02-28 10:10:33 -08:00
Shubham Padia
1a84a30759 typing: Add archived stream tests for typing and message_edit_typing.
Fixes part of #33688.
2025-02-28 09:27:28 -08:00
Shubham Padia
7f08278ce0 typing: Don't send typing notification if you can't send message.
We did not add any checks for `message_edit_typing` since it is not
possible to get to that state in the UI for an archived channel's
messages.
Fixes part of #33688.
2025-02-28 09:27:28 -08:00
Shubham Padia
da7354ca89 message: Make is_modifying_message a mandatory kwarg.
This is valuable so that one is forced to explicitly make a decision
on what is correct when adding new callers. Past experience tells us that
not having to explicitly show the decision leads to people introducing
security bugs in PRs that the maintainer has to catch in review, and our
goal for access control code should be that security bugs are hard to write.
Fixes part of #33688.
2025-02-28 09:27:28 -08:00
Shubham Padia
0f7982e4c8 test_markdown: Add content and metadata access asserts.
It's good to verify the claims we are making in the comments before the
actual test code block.
2025-02-28 09:03:38 -08:00
Sayam Samal
48dae579b2 alerts: Remove --base-font-size-px and allow font-size to be inherited.
This is a follow-up commit to d1de4457dc,
which had set the font-size for the alert popups to --base-font-size-px.

This removes that line of code, as it was pointed out by Tim Abbott
that the web/styles/alerts.css file was also being shared with portico
through the web/src/bundles/common.ts bundle, but the
--base-font-size-px variable doesn't exist there.

Removing the font-size property from the alert box doesn't affect its
styling since it still inherits the `--base-font-size-px` from the body
in the Zulip Web App.
2025-02-28 09:03:00 -08:00
Sayam Samal
d1de4457dc alerts: Enable font scaling in alert banners. 2025-02-27 23:22:04 -08:00
Aman Agrawal
7e16a4e778 test_message_summary: Fix failing tests.
Tests were failing due to credit usage being capture in the next
month instead of current if the current time is last day of the
month. To fix this, we mock current time to not be the last day
of any month.
2025-02-28 12:10:16 +05:30
Alya Abbott
986837af01 updates: Add update message (level=13). 2025-02-27 16:55:34 -08:00
evykassirer
ffe6e0fa35 reactions: Stop using height: fit-content for emoji picker.
This fixes a bug introduced in b2c5eed70d
and discussed here:
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20triangle.20next.20to.20emoji.20button/near/2105156
2025-02-27 15:21:04 -08:00
evykassirer
79a8b10407 modal: Scale channel email widget and email header with font size. 2025-02-27 14:40:48 -08:00
Anders Kaseorg
f8b027a4e2 copy_messages: Remove clipboard.write usage.
The clipboard.write API requires new permissions and can throw
NotAllowedError under certain circumstances in the browser (and always
in the current version of Zulip Desktop).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-27 14:24:54 -08:00
Karl Stolley
0ee4ab3601 compose: Correct alignment, ellipsis on general chat placeholder. 2025-02-27 13:30:09 -08:00
Anders Kaseorg
b3e0253eec eslint: Unify JavaScript and TypeScript configs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-02-27 13:29:41 -08:00
Alya Abbott
6f272d99d1 help: Remove outdated admin-only banners. 2025-02-27 13:27:44 -08:00
Alya Abbott
c3ffb60ebb help: Update for new channel management permissions. 2025-02-27 13:27:44 -08:00
Alya Abbott
1a63c46b14 help: Move channel types into an include file. 2025-02-27 13:27:44 -08:00
Alya Abbott
b6ff852d89 help: Add note about permissions to subscribe to channels. 2025-02-27 13:27:44 -08:00
Alya Abbott
0b86598e71 help: Add "subscribe to a channel" link to sidebar. 2025-02-27 13:27:44 -08:00
Alya Abbott
eb1cc50e65 help: Document new "who can subscribe" channel setting.
Also clean up link labels for "who can subscribe other users".
2025-02-27 13:27:44 -08:00
Alya Abbott
71aad4d4a4 help: Rename mislabeled include file. 2025-02-27 13:27:44 -08:00
Prakhar Pratyush
b1ddb2d5a9 compose_banner: Fix automatic visibility policy banner rendering.
Earlier when a new user sent a message in empty string topic,
it resulted in an error while displaying the automatic new
visibility policy banner.

'topic_name' was missing.

This commit fixes the bug.
2025-02-27 11:41:15 -08:00
Karl Stolley
390ab9d7c5 sidebar_vdots: Scale vdots areas to maintain square target. 2025-02-27 11:37:05 -08:00
Karl Stolley
ecbcfd23d5 right_sidebar: Perfectly align all right-sidebar vdots. 2025-02-27 11:37:05 -08:00
Karl Stolley
5b28684a72 right_sidebar: Improve available space in buddy list. 2025-02-27 11:37:05 -08:00
Sahil Batra
c2f1b3673e register: Optimize computing realm group setting values.
We do not fetch all the realm group settings using
select_related for register data now since it takes a
lot of time in planning phase. This commit updates
the code to fetch all the members and subgroups data
in user_groups_in_realm_serialized so that we do not
need to access each setting group individually.

user_groups_in_realm_serialized is updated to send the
required data accordingly.

Fixes #33656.
2025-02-27 10:03:28 -08:00
Sahil Batra
643182ce42 user_groups: Refactor code in user_groups_in_realm_serialized.
Following improvments are done in user_groups_in_realm_serialized-
- Members and subgroups are fetched using a single query using
union.
- Query to fetch groups now does not fetch setting fields since
we already have the members and subgroups of all the setting
groups and we can check if setting group was a named group
or not directly without checking named_user_group field of
UserGroup object as we have IDs of all named groups of the realm.
2025-02-27 10:03:28 -08:00
Sahil Batra
75b5d43a91 groups: Rename AnonymousSettingGroupDict to UserGroupMembersDict.
This change is done because we would use the same data structure
for named user groups as well in future commits.
2025-02-27 10:03:28 -08:00
Prakhar Pratyush
1ac7c2b942 migration: Handle conflict in UserTopic when topic="" pre-exists.
When a channel has both "general chat" and "" topic and a user
has visibility policy configured for both the topics, then
the migration to rename "general chat" to "" resulted in error
as it violated '(user_profile_id, stream_id, lower(topic_name)'
unique constraint.

This commit fixes the error.

For each row with topic="general chat", we create a new row
with topic="". On conflict we update the visibility policy
of the existing row -- we prefer the visibility policy of
'general chat' topic over "" as we're renaming 'general chat'
to "" so the configured policy of 'general chat' should be
preferred and any "" topic created wouldn't be intentional
or would be for testing purpose as it is not announced yet.

Finally, we delete the rows with "general chat" topic.
2025-02-27 09:44:27 -08:00
Aman Agrawal
eaec4fca50 typeahead: Show ellipsis for overflowing primary text.
Fixes #31392
2025-02-27 09:25:59 -08:00