Commit Graph

64417 Commits

Author SHA1 Message Date
Karl Stolley
bd4d172408 dev_docs: Better present images in tables. 2025-04-24 11:23:38 -07:00
Lauryn Menard
79061c08d2 demo-orgs: Disable invite user modal before owner sets email.
Until the owner of a demo organization sets an email, the submit
button on the invite user modal is now disabled.

The input div for email addresses is also disabled, which wasn't
disabled before because it's not an input element on the form.
2025-04-24 09:48:38 -07:00
Lauryn Menard
9a2f4c7e15 demo-orgs: Hide setup tips in invite modal if email not set.
In the invite users modal, if the demo organization owner hasn't
yet added an email to their account, hide the banners with tips
for setting up organization information before inviting users.
2025-04-24 09:48:38 -07:00
Aman Agrawal
9d3279caf4 models: Add request_timestamp field to ScheduledMessage table.
This just records the time when the user created the
request to schedule a message or set a reminder.

This would be unused but is future-proofing against a world
where we decide to edit the strings or UI to show when you
asked for the thing.
2025-04-24 09:43:58 -07:00
Mohammad Reza Kianifar
7907c5f846 refactor: Rename huddle to direct_message_group in email templates.
The huddle database table was renamed to direct_message_group.
This commit updates all references to huddle in the missed_message
email templates and locale files.
2025-04-23 17:45:03 -07:00
Alex Vandiver
49d2c1010a thumbnail: Add a tool to re-thumbnail spinners, or process old images. 2025-04-23 17:41:51 -07:00
Tim Abbott
4bab0538fd attachments: Use early return and improve comments. 2025-04-23 17:34:09 -07:00
Alex Vandiver
eae18738a6 signup: Add optional Altcha to realm registration. 2025-04-23 17:18:40 -07:00
Karl Stolley
f434c9d913 dev_docs: Add instructions for preparing icon files. 2025-04-23 17:06:35 -07:00
Karl Stolley
025ead514b dev_docs: Finesse language on icons guidance. 2025-04-23 17:06:35 -07:00
Shubham Padia
700da670cf attachments: Allow seeing attachments to users with content access.
Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/Can't.20view.20images.20in.20private.20channel.2E
2025-04-23 12:43:54 -07:00
Shubham Padia
6baa106460 test_subs: Add check_subscription_exists helper.
Fetching a subscription and then checking if it exists was taking too
much space in a test and making it feel convoluted. We're planning to
check it more in future commits.
2025-04-23 12:43:54 -07:00
Shubham Padia
ca50b5dac7 attachments: Do not fetch complete owner object.
We just need to compare the user profile id and the owner id, we will
save 1 query call this way.
2025-04-23 12:43:54 -07:00
Karl Stolley
a7996c1bd6 thumbnails: Remove right-to-left rules obviated by flexbox. 2025-04-23 10:53:05 -07:00
Karl Stolley
bcddd71cca thumbnails: Add minimal flexbox definition. 2025-04-23 10:53:05 -07:00
Karl Stolley
ad75ab590a thumbnails: Structure adjacent images into galleries. 2025-04-23 10:53:05 -07:00
Lauryn Menard
4d1bfe6537 demo-orgs: Disable corporate upgrade and sponsorship pages.
Use a shared error template for demo organizations when rendering
the upgrade or sponsorship pages.

Demo organizations must be converted into a permanent organization,
i.e., not be automatically scheduled for deletion, to either apply
for a sponsorship/discount or upgrade to a paid plan.
2025-04-23 09:23:24 -07:00
Niloth P
14173b757f github webhook: Support all actions on discussion events.
Previously, only the action value `created` was supported.
Now, all 16 are supported.

Fixes: #26064.
2025-04-22 13:20:14 -07:00
Karl Stolley
75ed0c9383 compose: Preserve decorated-stream layout in picker.
In addition to preserving the space between the icon and
stream name, this also moves the ellipsis to the DOM node
for the channel name itself.
2025-04-22 11:26:12 -07:00
Karl Stolley
d5822a04be decorated_channels: Present names in DOM nodes. 2025-04-22 11:26:12 -07:00
Karl Stolley
3671a6a39c decorated_channels: Rename privacy-icon class. 2025-04-22 11:26:12 -07:00
Karl Stolley
1c55004cda decorated_channels: Rename partial as 'decorated_channel'. 2025-04-22 11:26:12 -07:00
Shubham Padia
b8ba174455 users: Return true for admins for is_moderator.
This change is for consistency with how is_admin works.

API design discussion at https://chat.zulip.org/#narrow/channel/378-api-design/topic/Should.20is_moderator.20have.20admins
2025-04-22 11:24:49 -07:00
Shubham Padia
50fbaa4da6 popover_menus_data: Remove unused is_moderator from topic context. 2025-04-22 11:24:49 -07:00
Prakhar Pratyush
ccc82976dc unread_data: Ensure deterministic ordering of unread message rows.
Earlier, in `get_raw_unread_data` the ordering was applied inside
the CTE.

Once we leave the CTE scope and do a join, SQL makes no promise
about preserving the row order unless we re-specify ORDER BY in
the outer query.

Since, there was no ORDER BY clause in the outer query it was
resulting in a random ordering of the entries. This bug was caught
by `test_unreads_case_insensitive_topics` failing in a flaky way.

This commit fixes the bug.
2025-04-22 10:36:59 -07:00
Alex Vandiver
6b3143d7fc send_email: Add a flag to force all emails through the queue.
Sending emails synchronously is useful because it reports
configuration errors -- but it also means that occasional failures can
result in ugly 500's, since those don't retry.

Add a setting which forces all email to go through the `emil_senders`
queue, so it can be retried as needed.
2025-04-22 10:26:25 -07:00
Saubhagya Patel
9f1744511b css: Remove .thinner class from Settings.
This commit removes the `.thinner` class from the
"Play animated images" setting in Preferences > Information,
and from the "Home view" setting in Preferences > Navigation.
The `.setting-next-is-related` class, used in combination with
the `.thinner` class, is also removed as it is not needed.
We no longer use the `.thinner` class.
2025-04-22 09:33:59 -07:00
Lauryn Menard
19f60b203d api-docs: Add note about realm being present in fetch_event_types.
Adds "Present if realm is present in fetch_event_types" to the
fields in the POST /register response that are added to the state
data via fetch_initial_state_data in the if block for "realm".
2025-04-21 14:58:26 -07:00
Ines Falcato
8d96b7879f keyboard_UI: Allow use of e hotkey for spectators.
Previously, when in anonymous login, pressing the "view original
message" button showed the original message and allowed copying it.
However, the corresponding keyboard shortcut ('e') did not work as
expected and a login pop-up appeared instead.

Now, by fixing the UI features' permissions for anonymous users, by
adding "edit_message" as a feature they can perform, they are allowed
to use the 'e' keyboard shortcut as intended.

Fixes #33838
2025-04-21 14:36:10 -07:00
apoorvapendse
18fdbc1519 message_header: Use topic permalink.
Fixes:
https://chat.zulip.org/#narrow/channel/137-feedback/topic/star.20topics/near/2154280.
2025-04-21 12:08:37 -07:00
apoorvapendse
1285151be8 compose_validate: Show disabled save tooltip when message is long.
Fixes:
https://chat.zulip.org/#narrow/channel/101-design/topic/validation.20tooltip.20in.20message.20edit.20same.20as.20compose.3F/near/2149696.
2025-04-21 12:07:45 -07:00
Lauryn Menard
cb3dc88dcf corporate: Show "Fixed" as rate for fixed-rate plans in activity charts. 2025-04-21 11:18:40 -07:00
Karl Stolley
3767c2d98e corporate: Update GetApp, Capterra badges. 2025-04-20 07:43:27 -07:00
Prakhar Pratyush
bf95e9bcae test_push_notifications: Split HandlePushNotificationTest to a new file.
This commit moves `HandlePushNotificationTest` to a new
`test_handle_push_notification.py` file.

It helps in making it easier to work with `test_push_notifications.py`
which was 4000+ lines of code.
2025-04-17 10:55:05 -07:00
Prakhar Pratyush
f98c36210a test_push_notifications: Move PushNotificationTest to test_classes.py.
This is a prep commit which moves the `PushNotificationTest` class
from `test_push_notifications.py` to `test_classes.py` as we plan to
import it and reuse it in other files.

This commit also renames `PushNotificationTest` to
`PushNotificationTestCase` to align with our naming convention
in `test_classes.py` to name classes, which act as a parent class
with helper methods and no actual test within itself, with a
"TestCase" suffix.
2025-04-17 10:55:05 -07:00
Prakhar Pratyush
644efeaa14 test_push_notifications: Rename TestPushApi and it's test methods.
`TestPushApi` was not a great name to reflect what it specifically
tests.

Renamed it to `TestAddRemoveDeviceTokenAPI`. It's test methods
are also renamed for clarity.
2025-04-17 10:55:05 -07:00
Prakhar Pratyush
393423c3a0 test_push_notifications: Split AnalyticsBouncerTest to a separate file.
This commit moves `AnalyticsBouncerTest` to a new
`test_zilencer_analytics.py` file.

It helps in making it easier to work with `test_push_notifications.py`
which was 5000+ lines of code.
2025-04-17 10:55:05 -07:00
Lauryn Menard
b074288bac upgrade: Remove demo_organization_scheduled_deletion_date page param.
The demo_organization_scheduled_deletion_date has never been used
on the upgrade page, and currently raises a Zod error as what is
being sent for the value of that page param is a datetime object,
and not the datetime object converted to an integer.

We really only need the boolean value that checks if the demo
organization scheduled deletion date is not None for the upgrade
page logic, which is set in the context dict for that page, but
not in the page params.
2025-04-17 10:49:02 -07:00
Lauryn Menard
f511383c3d banner-links: Remove underline from links in navbar banners.
Updates the "banner-link" class, which is currently only used
in the demo organization deletion info banner so that the link
text is not underlined when the user is not hovering over the
link text.
2025-04-17 10:48:33 -07:00
Lauryn Menard
7e1625d58b showroom-banners: Update desktop notifications banner text.
Updates the desktop notificaiton banner example in the devtools
showroom for the banner redesign to have the current banner text
that's used in navbar alert.
2025-04-17 10:48:33 -07:00
Lauryn Menard
48c9a86962 api-version: Bump API version for prev_content_sha256 parameter.
This parameter was added to the PATCH /messages/message_id endpoint
in commit e2e0603689.
2025-04-17 10:47:37 -07:00
Niloth P
22c80117f5 integrations: Add OpenSearch incoming webhook integration.
Co-authored-by: merlinz01 <158784988+merlinz01@users.noreply.github.com>
2025-04-16 14:05:29 -07:00
Niloth P
7e3218ee45 generate-integration-docs-screenshot: Support plain/text payloads.
All *.txt fixtures were assumed to only contain URL parameters,
now fixtures with plain/text payloads are also supported.
2025-04-16 14:05:29 -07:00
Tim Abbott
b76cf0c388 message_edit: Remove useless message_id XHR parameters.
The message ID is passed in the URL.

Caught by reviewing ignored_parameters_unsupported.
2025-04-16 14:05:12 -07:00
Kislay Verma
e2e0603689 message_edit: Check previous message content to prevent races.
Similar to group based setting values, we expect
the client to send the previous content alongwith
the edited content to the edit message endpoint.
We reject the request incase the previous content
doesn't match the current message content, which
could happen in case two users simultaneously edit
a message - which will be implemented in #33051.
2025-04-16 14:05:12 -07:00
Kislay Verma
5b5be39b19 exceptions: Create base class ExpectationMismatchError.
This class will be inherited by all errors related to
some sort of mismatch from the expected value.

This is a prep commit for #33051, as a part of which we
add a new exception class for message content mismatch.
2025-04-16 14:05:12 -07:00
Karl Stolley
1f19ea6454 message_feed: Remove unnecessary opacity value. 2025-04-16 13:17:19 -07:00
Karl Stolley
3278fc36ca variables: Correct instances of misspelled 'message'. 2025-04-16 13:17:19 -07:00
Sayam Samal
b5e41e1ca0 css: Use CSS variable for bookend and date row spacer lines. 2025-04-16 10:44:51 -07:00
Sayam Samal
71609a3032 message_row: Consolidate date row and bookend styles to message_row.css. 2025-04-16 10:44:51 -07:00