Commit Graph

63651 Commits

Author SHA1 Message Date
Alya Abbott
38c235bdca contributor docs: More guidance on explaining your PR vs. prior ones. 2025-03-03 13:58:19 -08:00
Alya Abbott
2995b71107 help: Improve explanation of Zulip's topics for users from other apps. 2025-03-03 13:27:49 -08:00
Maneesh Shukla
97b210d533 organization_settings: Restyle "Deactivate organization" button.
This commit restyles the "Deactivate organization" button in the
organization profile and account_settings page. The button is now styled
as a action-button-quiet-danger.

Fixes part of #33130.
2025-03-03 12:43:59 -08:00
Maneesh Shukla
b5dec3258f personal_settings: Restyle the profile, account & privacy settings btns.
This commit restyles the profile, account and privacy settings buttons
as follows:

- "Preview profile": action-button-quiet-brand
- Pencil for email editing: icon-button-brand
- "Change your password": action-button-quiet-brand
- "Deactivate account": action-button-quiet-danger
- "Manage your API key": action-button-quiet-brand

Fixes part of #33130.
2025-03-03 12:43:59 -08:00
Maneesh Shukla
78bd2dd5c0 personal_settings: Restyle "Add a new bot" and "Add alert word" button.
This commit restyles the profile, account and privacy settings buttons
as follows:

- "Add a new bot": action-button-quiet-brand
- "Add alert word": action-button-quiet-brand

Fixes part of #33130.
2025-03-03 12:43:59 -08:00
Maneesh Shukla
8a571a7ca2 button_properties: Add aria-label to buttons and aria-hidden to icons. 2025-03-03 12:43:59 -08:00
Vector73
ad3886e142 docs: Document new create-api-changelog tool. 2025-03-03 11:40:29 -08:00
Sahil Batra
118eaffd3a groups: Update how we show members count in group pills.
Instead of showing count as "N users", we just show the
count in parentheses now.

Fixes #33628.
2025-03-03 10:38:10 -08:00
Aman Agrawal
81901e86ed recent_view: Avoid rendering rows before user scrolls to them.
This is just a bug fix based on observation that we would only
be updating rows that are rendered and not all of them. This can
potentially lead to rows being rendered twice but is hard
to observe since newly updated topics usually are the top of the
recent view.
2025-03-03 10:26:31 -08:00
Aman Agrawal
f7a6d6467b presence: Fix exception on trying to get user from ID.
We don't always know about every user id. So, our code should
reflect the same.

Fixed by refactoring the function to use User object a function
parameter and let the called get the user object if possible.
This reduces duplicate calculation to get user object too.
2025-03-03 10:06:04 -08:00
Sayam Samal
0a2d17f7fa typeahead: Prevent opening typeahead on click for topic edit fields. 2025-03-03 10:04:16 -08:00
Sayam Samal
a265fe2bc2 typeahead: Add showOnClick option to customize input click behavior.
Previously, via commit ecf557eab9, the
logic for the click action on the input field was added to the typeahead
to aid with the interaction when the user changes the position of the
cursor — targeted at the compose box where there could be multiple
instances of typeahead.

This commit adds an option to disable the rendering of typeahead when
the user navigates within the input element via clicks — suitable for
single input elements where we don't expect multiple typeaheads.
2025-03-03 10:04:16 -08:00
Tim Abbott
d4da66b6af migrations: Fix typo in migration 0669. 2025-03-02 23:59:13 -08:00
Aman Agrawal
bb4d77b9f5 tooltip: Remove dead code related to old tooltips system. 2025-03-02 22:59:28 -08:00
Aman Agrawal
7ae1a2c480 css: Scale scroll to bottom icon with font-size. 2025-03-02 22:59:06 -08:00
Aman Agrawal
60ff4f1375 css: Center icon using flexbox instead of position.
This will help us better center it on different font sizes.
2025-03-02 22:59:06 -08:00
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