Commit Graph

63592 Commits

Author SHA1 Message Date
Ritwik
1651a85fb0 Popover menus: Fix disappearing popover on small screens.
The popover would go to the top of the screen and would disappear
when the screen height is small.

Fixes #29472
2025-03-06 09:19:45 -08:00
Sayam Samal
baaccd7c86 manage_user_modal: Update reactivate user button design.
This commit updates the "Reactivate User" button in the manage user
modal to use the new action button component.
2025-03-06 09:14:41 -08:00
Sayam Samal
0ddac6adbd manage_user_modal: Update deactivate user button design.
This commit updates the "Deactivate User" button in the manage user
modal to use the new action button component.

Fixes part of #33027.
2025-03-06 09:14:41 -08:00
Aman Agrawal
85d57780b8 reactions: Fix bottom border missing.
We align bottom border radius with that of the popover to get
border to appear around the bottom edges.

`height` was not required on `emoji-picker-popover` as the height
is already being limited by `.emoji-popover-emoji-map` which
is enough to get the scrolling effect on overflow.
2025-03-06 09:10:37 -08:00
Prakhar Pratyush
36793f53c6 composebox: Set compose_state.topic early to avoid placeholder issue.
Earlier, for 'realm_mandatory_topics=False' the compose_state.topic
was set much later in the 'update_topic_displayed_text' codepath.

It resulted in buggy placeholder behaviour because '$input.val()'
in 'update_placeholder_visibility' returned an outdated value.

This commit fixes the bug by setting compose_state.topic early.
2025-03-06 09:10:10 -08:00
Prakhar Pratyush
8d8c68fc28 composebox: Fix overlapping placeholder in recipient box for topic="".
Previously, `update_topic_displayed_text` used
`.show(10, update_placeholder_visibility)`, which introduced a delay
before updating the topic placeholder visibility.

This caused a bug where consecutive calls to
`update_topic_displayed_text` due to 'focus' and 'blur' on topic box
within a short duration resulted in setting the `visibility: hidden`
twice before the `visibility: visible` due to focus was set.

The delay resulted in overlapping placeholder.

This commit removes the delay to ensure immediate execution,
preventing inconsistencies.
2025-03-06 09:10:10 -08:00
Sahil Batra
116b32565e user-groups: Remove unused code.
This code is not needed since we no longer show the permissions
where group is used in error banner.
2025-03-05 22:39:11 -08:00
Sahil Batra
cfac9986b2 groups: Add "View permissions" button in deactivation error banner.
Follow-up for #33800.
2025-03-05 22:39:11 -08:00
Alex Vandiver
fa3983ac46 kandra: Add /static/onboarding-video/ static content. 2025-03-05 22:37:19 -08:00
Aman Agrawal
f57a3abd83 recent_view: Make icon change on hover for visibility indicator robust.
Using character index for changing icon is not reliable, so
we use `background-image` to change the icon being displayed here.
2025-03-05 21:58:15 -08:00
Aman Agrawal
e3f39abac6 typeahead: Fix alignment of secondary text in channel typeaheads. 2025-03-05 21:55:27 -08:00
Alya Abbott
42850649ee help: Document how to pin information in a channel description. 2025-03-05 17:01:58 -08:00
evykassirer
cd81643f3e user_popover: Use variable for sizes in user popover menu. 2025-03-05 17:00:35 -08:00
evykassirer
f3b2bcae88 status_circle: Remove stale comment. 2025-03-05 17:00:35 -08:00
harshbansal8705
6c1a69c736 message_editing: Make bouncing "..." open edit history modal on click.
Previously, clicking on the bouncing "..." (indicating an ongoing
edit) did not open the edit history modal, even when the message had
prior edits. This made it difficult for users to view the edit history
while an edit was in progress.

This commit updates the behavior so that if a message has an edit
history, clicking on the bouncing "..." will open the edit history
modal, just as clicking on the "EDITED" notice does. If no prior edits
exist, the indicator doesn't show any tooltip.
2025-03-05 16:23:50 -08:00
Aman Agrawal
fead8a798f emoji_picker: Fix opening as overlay when triggered via composebox.
This was happening since the conditions for `reference` being
hidden assumed that the reference was in message feed which
excludes the navbar and compose box area.

To fix it, we only set `show_as_overlay_if_reference_hidden_at_trigger`
as `true` if the reference is inside the message feed.
2025-03-05 16:09:33 -08:00
Tim Abbott
be0bc77300 people: Remove is_current_user legacy helper.
This does lookups by email address, which is very much a legacy way to
do things, and could throw exceptions if trying to lookup details on
an unknown user ID.
2025-03-05 15:56:57 -08:00
Karl Stolley
6915ed51d5 specator_view: Avoid Search overlap with large Log in button. 2025-03-05 14:06:48 -08:00
evykassirer
7fa633faaf flatpickr: Use constant variable for font-size.
This is part of an effort to remove all pixel font sizes
from most stylesheets. We won't scale this with font size
because the flatpickr doesn't scale with font size.
2025-03-05 14:00:32 -08:00
Karl Stolley
7948055e88 video_thumbnails: Apply transition on both sides of hover state. 2025-03-05 13:59:58 -08:00
Karl Stolley
1b9f1d2163 videos: Present identical buttons for all video types.
This displays the same Play button with the same hover styles on
all videos, whether YouTube, embedded, or uploaded.
2025-03-05 13:59:58 -08:00
Karl Stolley
80dcd53b59 youtube: Request medium-quality preview images. 2025-03-05 13:59:58 -08:00
Karl Stolley
0ce3bbd09d markdown: Center scalable button on inline videos. 2025-03-05 13:59:58 -08:00
Alex Vandiver
412826e08b kandra: Add zulip-notify hooks for CZO. 2025-03-05 13:57:10 -08:00
Prakhar Pratyush
b155f37c6b topic_edit_typeahead: Typing "general chat" should suggest topic="".
This commit makes sure to suggest "general chat" (in italics)
topic on typing "general chat" in:
* rename topic input box
* inline topic edit input box
* 'New topic' input box in move topic modal
2025-03-05 13:56:21 -08:00
Prakhar Pratyush
4ab2c56b7b composebox: Typing "general chat" should suggest empty string topic.
This commit makes sure to suggest "general chat" (in italics)
topic on typing "general chat" in compose recipient box.
2025-03-05 13:56:21 -08:00
evykassirer
e9aa4d0b91 tippy: Remove default fixed font size.
Though it's difficult to confirm, we're pretty sure this is always
overridden. Regardless, we don't want to have fixed pixel font sizes
and it's better if the default is the default font size instead of
12px.

Further discussion:
https://chat.zulip.org/#narrow/channel/431-redesign-project/topic/broader.20range.20of.20font.20sizes/near/2113503
2025-03-05 13:54:19 -08:00
kash2104
53e173b54b i18n: Add translation mapping to EMOJI_CATEGORIES.
Fixes #21843.

Internationalize the emoji categories section labels.
Translating labels when displaying popover.
2025-03-05 11:35:38 -08:00
ubaidrmn
bfabdf3e1c message_edit: Fix broken preview.
Commit dd7cf277 added a condition in `render_and_show_preview`
function to skip rendering if the compose box’s preview mode
wasn’t active. This broke preview mode in message editing, as
it relies on the same function.

This commit fixes the issue by refactoring `render_and_show_preview`
to accept an element instead of hardcoding `#compose` when checking
for preview mode, and updates its usages accordingly.
2025-03-05 10:57:08 -08:00
evykassirer
bf3bf4b53a messagebox: Scale slow send spinner with info density. 2025-03-05 10:55:08 -08:00
Niloth P
4ace9e2e9e integration-url-modal: Update URL dynamically on input to text inputs.
Previously, the URL was updated only on "change" event, waiting for
a focus shift from the text inputs. Switched it to "input" so that the
user can see the effects of the changes they're making as they're doing
it.
2025-03-05 10:39:13 -08:00
Niloth P
c32e6f4940 integrations: Improve the branch filtering in Git-related integrations.
- Made the branch-filtering checks uniform across all the integrations,
by adding a helper function to git.py, and re-using it.
- Instead of checking if the name of the branch that generated the
event is a substring of the "branches" parameter, we now check if
there's an exact match.
For example, if there are two branches named "main" and
"release/v1.0-main", and the user wants to track pushes to only the
"release/v1.0-main" branch, they wouldn't have been able to
previously, it will always track pushes to both branches. There was no
way to filter out the smaller named branch when there were overlaps.
2025-03-05 10:39:13 -08:00
Niloth P
b7e79715cc integration-docs: Combine two macros that are always used together.
Edited the git-append-branches.md macro to match the previous
git-branches-additional-feature.md macro, and moved it inside the
webhook-url-with-bot-email.md macro, as it's only ever used
immediately after that macro.
2025-03-05 10:39:13 -08:00
Niloth P
30e7310495 integration-docs: Remove two outdated macros.
- generate-integration-url.md has been long replaced by the
generate-webhook-url-basic.md.
- webhook-url.md was only being used inside the above macro.
2025-03-05 10:39:13 -08:00
Niloth P
8f564b2053 integration-docs: Update branch filtering instructions.
Updated the Git-related integrations that support branch filtering:
- Removed the branch-filtering configuration option, and its macro.
- Added a new macro that integrates the branch-filtering instruction
with the Generate-URL step.

The new macro `generate-webhook-url-with-branch-filtering` builds off of
the `generate-webhook-url-basic` macro, adding only the branch filtering
instruction. But, it does not re-use the macro, instead duplicates it,
to avoid the newline break that would be added otherwise.
2025-03-05 10:39:13 -08:00
Niloth P
136b852749 integrations: Use branch-filtering UI for Git-related integrations.
The integration-URL modal uses the branch-filtering UI for the
integrations that have the config option "branches".

Fixes: #33738.
2025-03-05 10:39:13 -08:00
Niloth P
0df3dcdde9 integration-docs: Remove unnecessary instruction from Wekan doc.
A branch filtering instruction that has nothing to do with Wekan has
been present in the Wekan doc since the addition of the integration.
2025-03-05 10:39:13 -08:00
Niloth P
ec04aaf797 integrations-url-modal: Add URL parameter for filtering by branches.
Use the config option "branches" to enable the UI for filtering
branches.

Fixes: #33736.
2025-03-05 10:39:13 -08:00
userAdityaa
15516e6a6d user_profile: Align privacy icons with stream names in popover.
This commit resolves the misalignment issue for the privacy icons and
stream names along with their horizontal alignment with the subscription
button. The icons were previously not properly placed with the text,
causing a visual discrepancy.

While we're at it, we replace the first-of-type/last-of-type styles
with normal classes elements, which is more performant and readable.

Fixed #31521.

Co-authored-by: Aditya Kumar Kasaudhan <74228301+Aditya8840@users.noreply.github.com>
2025-03-05 10:35:27 -08:00
userAdityaa
aee8449d64 user_profile: Rename classes for user and group lists.
- Replace stream with channel.
- Use dashes in names.
- Fix some very confusing wording.
2025-03-05 10:35:27 -08:00
Saubhagya Patel
9d726699e1 zerver: Use Pydantic for MessageEditHistoryVisibilityPolicyEnum.
This commit ensures the `message_edit_history_visibility_raw`
parameter is validated using the policy names defined in the
`MessageEditHistoryVisibilityPolicyEnum`, used in the
`update_realm()` function in the `zerver/views/realm.py` file.

Follow up of #32840.
2025-03-05 10:32:40 -08:00
Aman Agrawal
c0c0ca394d css: Add more space next to privacy icon in dropdowns. 2025-03-05 10:27:45 -08:00
evykassirer
e13f59a13a input_pill: Don't wrap words mid-word unless they're wider than input. 2025-03-05 10:21:52 -08:00
Aman Agrawal
47ba1ed737 user_card_popover: Use airplane eye icon to view dms. 2025-03-05 09:50:44 -08:00
Alex Vandiver
a9337e7641 nagios: Change the cron jobs to exit 0 for all ok/warning/critical.
The cron jobs are potentially wrapped by Sentry, which logs "cron
failures" and sends emails.  We would like those failures to only be
when the cron job itself failed to run successfully -- not when the
underlying metric is outside of its normal range.  We would like to
differentiate a failure of the monitoring infrastructure from a
failure of what it is monitoring.

Swap to return 0 on everything except "unknown" results.
2025-03-05 09:49:36 -08:00
Alex Vandiver
34f0e3b621 cache: Do not fail the request on cache-set failures.
Failure to update the cache should log an exception but continue.
2025-03-05 09:48:58 -08:00
Alex Vandiver
c4701fa8d5 cache: Switch delete_user_profile_caches to using an iterator. 2025-03-05 09:48:19 -08:00
Alex Vandiver
e54dab50f2 cache: Switch cache_delete_many to deleting 10k at a time.
This also switches to making use of the input possibly being an
iterator, to only store 10k of the keys at once.
2025-03-05 09:48:19 -08:00
Alex Vandiver
67bea1f103 cache: validate_cache_key in cache_delete_many may get other prefixes. 2025-03-05 09:48:19 -08:00
Maneesh Shukla
ae6acd9f05 presence_data: Skip fetching presence_data in user_card_popover for spectators. 2025-03-05 09:46:18 -08:00