Commit Graph

65408 Commits

Author SHA1 Message Date
Kislay Verma
9507b7b36f organization settings: Clean up labels for custom time limits.
We make the text "minutes" agree with the number
in the input field.
In the future, we could make the units configurable
as in the invitation modal.

Fixes #34692.
2025-06-24 10:12:15 -07:00
Varun-Kolanu
d5e9d81957 integrations: Add support for GitLab access token expiry events.
Fixes #34405.
2025-06-24 10:08:56 -07:00
Varun-Kolanu
9f5198bcd1 integrations: Add support for GitLab feature flag events.
Fixes part of #34405.
2025-06-24 10:08:56 -07:00
Evy Kassirer
ec65dad063 stream_pill: Fetch all subscribers before getting user ids for a stream.
Work towards #34244.
2025-06-23 17:04:47 -07:00
Vector73
c406db2480 stream_popover: Fix rename topic placeholder UI.
Previously, the placeholder in the "Rename topic" input
overlapped with the text when renaming the "general chat"
topic. Also, the placeholder was not updated to "general chat"
when the input was empty and lost focus. This commit fixes the bug.
2025-06-23 09:49:56 -07:00
Sahil Batra
8400c24665 groups: Make two fields of GroupPermissionSetting optional.
This commit makes require_system_group and allow_internet_group
fields of GroupPermissionSetting optional with default value of
False. "allow_internet_group" is False for all of the settings
and "require_system_group" is True for only two settings, so it
is better to not having to repeat them for every setting.
2025-06-23 09:49:11 -07:00
Shubham Padia
1e50a98b01 help-beta: Add TODO list to keep track of items before cutover. 2025-06-23 09:48:43 -07:00
Shubham Padia
35e4cf6bf6 help: Ordered list item should always be followed by an indented line.
Our help-beta conversion script expects text to be indented if the text
is part of the same list item. If it is not part of the same list item,
then it expects an empty line just after the list item. This commit
fixes existing instances for the same by searching for regex: `^1\.
.*\n(?!\n)(?!1\.)( {0,1}\S.*)`.

We do not want to add a lint rule for this, since not indenting is not
technically wrong. We will add a TODO list item in the conversion script
for help-beta in future commits.
2025-06-23 09:48:43 -07:00
Shubham Padia
a54d247111 help: Use 1. for numbered lists everywhere.
The conversion script for help-beta assumes that all items in a numbered
list start with 1. which was a wrong assumption. This commit attempts to
fix that. We are not introducing any lint step to tackle this since it
will be easy to just check for this again before the cutover happens.
We do not change this for `numbered-list-examples.md` since that example
shows how the current numbered lists work and we might still want to
show that. We can decide what to do with that file once the time of
cutover arrives.
2025-06-23 09:48:43 -07:00
apoorvapendse
b8e09b3c35 left_sidebar: Support channel-row clicks on the left.
Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/near/2192449.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-20 16:23:08 -07:00
apoorvapendse
1ce2c96eee topic-box: Support clicking on the left side.
Fixes:
https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/near/2191051.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-20 16:23:08 -07:00
apoorvapendse
0dcb2d110f pm_list_item: Support clicks outside the row-content.
Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/Clicking.20the.20right.20end.20of.20DM.20list.20items.20doesn't.20work/with/2189918
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-06-20 16:23:08 -07:00
Shubham Padia
2977bf364e help-beta: Use FlattenList component instead of hacky middleware.
We want to follow the Astro way of doing things and the middleware was
adding more magic + it was violating commonmark spec:
https://spec.commonmark.org/0.31.2/#example-301.

We insert FlattenList component where include files are being
treated as part of ordered lists. Astro renders included files as it's
own component, which would result in multiple ordered lists instead of
a single list if we did not use this component. See the astro component
file itself to know more how FlattenedSteps works.

We are not inserting FlattenList component for files with !!! tip
components, since we need to do it inside the include file. There are 4
such files at the time of writing this comment.
`is_include_only_ordered_list` makes sure of that. We can do the
conversion for it manually during cutover or in a followup PR.

All unordered lists at the time of writing this comment are standalone
components and we do not need to do any transformation for them.

We also changed the order of conversion of include and main files.
Include files are now being converted first to calculate
include_files_info.

Relevant topic:
https://chat.zulip.org/#narrow/channel/19-documentation/topic/Stage.202.3A.20New.20syntax.20for.20imports
2025-06-20 16:18:16 -07:00
Niloth P
9fb06e81b7 integ-docs/hubot: Use a sample API key instead of a placeholder. 2025-06-20 16:04:26 -07:00
Niloth P
59839be9d6 integ-docs: Update the sample site URLs and bot emails.
To use the appropriate context properties.

This commit does not touch the integration docs that do not use the
new integration doc format, as this update will be included in their
format update sweep.
2025-06-20 16:04:26 -07:00
Niloth P
ae98bfe73e docs: Update the example Zulip URL to use "your-org.zulipchat.com".
The context property is not applicable for the developer docs, they
need to be manually updated to match the convention.
2025-06-20 16:04:26 -07:00
Niloth P
aa117366ef help-docs: Update the subdomain manually for Zulip Cloud examples.
Update to maintain consistency with the value of the context property
used in the other docs.

We avoid using the context property for these instances because we
always want them to show "your-org.zulipchat.com" irrespective of the
domain the docs are hosted in. Hence, the manual replacements.
2025-06-20 16:04:26 -07:00
Niloth P
dab97304f6 documentation: Add context properties for subdomain and host segments.
The subdomain and host parts are already used within zulip_url, api_url,
this commit adds them as context properties themselves, so that they
can be used in email addresses and URLs without the URI scheme,
increasing uniformity.

The new context properties `display_host` and `display_subdomain` are
usable in the Help, API docs and Policies.

Occurrences of `*.zulipchat.com` have been updated to use them.
2025-06-20 16:04:26 -07:00
Niloth P
c690177481 documentation: Update the subdomain value used in URL context variables.
From "yourZulipDomain" to "your-org".
2025-06-20 16:04:26 -07:00
Aman Agrawal
623fa98976 narrow_history: Remove invalid assertion.
Since non message views list channel topic list can have a defined
filter, we cannot assume that having `narrow_state.filter` set
implies `message_list.current` is defined.
2025-06-20 15:56:19 -07:00
Aman Agrawal
93c4dcbdc9 hotkey: Merge uses of M hotkey.
It was not a good idea to have the hotkey
fallthrough the `case` for user not being in message list.

We merge both the cases and also remove `M` from
`message_view_only_keys`.
2025-06-20 15:56:19 -07:00
Karl Stolley
062b83bfec compose: Rename classes, CSS vars to reflect attention level. 2025-06-20 15:54:59 -07:00
Karl Stolley
e19b815eaf compose: Rename functions to reflect attention level. 2025-06-20 15:54:59 -07:00
Swastik
ac509eaa66 css: Match arrow color with GIF popover.
Fixes #34772
Matched the color of the triangular tip with the GIPHY logo bar.
2025-06-19 17:52:11 -07:00
Aman Agrawal
b894daaa85 popovers: Remove horizontal scrollbar in GIPHY popover.
Also, center align it using margin instead of `position:relative`.
2025-06-19 17:52:11 -07:00
Karl Stolley
e0860a7635 compose: Experiment with adjusted privacy icon colors. 2025-06-19 17:21:20 -07:00
Karl Stolley
723db3d9a1 compose: Account for textarea focus in mute logic. 2025-06-19 17:21:20 -07:00
Karl Stolley
0c7e445649 compose: Highlight topic box on new-topic hover. 2025-06-19 17:21:20 -07:00
Karl Stolley
0d357d3ecc compse: Reduce transition timing, delay. 2025-06-19 17:21:20 -07:00
Karl Stolley
f1cde90a87 compose: Allow DMs to take muted-recipient logic. 2025-06-19 17:21:20 -07:00
Karl Stolley
d772623d04 compose: Add muted, hover styles for recipient row. 2025-06-19 17:21:20 -07:00
Karl Stolley
06696bc206 compose: Audition new-topic button in topic box. 2025-06-19 17:21:20 -07:00
Karl Stolley
966c8451df compose: Add functions to mute/unmute recipient row. 2025-06-19 17:21:20 -07:00
Karl Stolley
1ed8f577ed compose: Add temporary hover color on recipient borders. 2025-06-19 17:21:20 -07:00
Karl Stolley
a237f3284f compose: Add on show callback for recipient widget. 2025-06-19 17:21:20 -07:00
Karl Stolley
f5a661a462 compose: Rewrite picker as grid and adjust presentation. 2025-06-19 17:21:20 -07:00
Karl Stolley
5ca0c39125 compose: Reduce negative space in compose box. 2025-06-19 17:21:20 -07:00
Karl Stolley
11de082def compose: Reduce recipient-row height to 32px at 16px/1em. 2025-06-19 17:21:20 -07:00
Karl Stolley
00a2e13e07 compose: Suppress chevron on channel/DM picker. 2025-06-19 17:21:20 -07:00
Tim Abbott
ea68b7320a api docs: Clarify how the various presence APIs relate.
Co-authored-by: Greg Price <greg@zulip.com>
2025-06-19 15:20:15 -07:00
Tim Abbott
8179a31dc7 docs: Delete legacy presence subsystem page.
Everything on this page is now better explained in the API
documentation for presence.
2025-06-19 15:20:15 -07:00
whilstsomebody
01935c5be2 message_delete: Fix flaky 'do_delete_messages' function.
This commit fixes a flake in `do_delete_messages`, because of
which `test_do_delete_messages_grouping_logic` test occasionally
failed due to nondeterministic ordering of "delete_message" events.

The root cause was that the dictionaries used to group private
and stream messages for deletion (`private_messages_by_recipient`
and `stream_messages_by_topic`) were not sorted before generating
the events. While the `message_ids` within each event were already
sorted, the order of the events themselves could vary based on
the insertion order of the dictionaries, especially when running
tests in different sequences.

We now sort both `private_messages_by_recipient` and
`stream_messages_by_topic` before emitting events, ensuring
consistent ordering.
2025-06-19 15:03:59 -07:00
Evy Kassirer
1ebfa6bae3 stream_types: Sort stream_schema. 2025-06-19 14:25:41 -07:00
Evy Kassirer
4313648ca5 streams: Add subscriber_count to page load data. 2025-06-19 14:25:41 -07:00
Tim Abbott
e298eddefc inbox: Fix calls to is_complete_for_stream_id.
The call from the inbox code was asking the wrong question -- it wants
to know if we've fetched full topic data to know whether to ask for
it. The new name for the function moved in
7d55ad3c13 helped reveal it.

There also was a mention in a comment that was half-baked; wrote the
comment properly.
2025-06-19 13:05:15 -07:00
Lauryn Menard
2abe4ad18b help: Add edit message tip for mentions notifications.
Updates the "Mention a user or group" article to have a tip that
links to the section on how message notifications work for mentions
when editing a message's content.
2025-06-19 12:49:20 -07:00
Lauryn Menard
0fde715a24 devlogin: Filter placeholder realms from a subdomain change.
Showing these realms in the drop down list of realms is not helpful
for developers, so we filter them out of the list. Realms that are
deactivated without a redirect are still listed.
2025-06-19 12:49:03 -07:00
Prakhar Pratyush
7970e1fa45 streams: Fix error while sending notice in deactivated stream.
Sending messages to a deactivated stream is not allowed with
the exception of notices sent in "channel events" topic.

Earlier, notice sent to a deactivated stream when it is
deactivated was working correctly but it was resulting in
an error in the following cases:
* Renaming stream
* Changing stream description
* Changing message retention period
* Changing posting permission
* Changing access permission

This commit makes sure to send notice successfully in those cases.
2025-06-19 12:47:54 -07:00
Prakhar Pratyush
4515c29d44 topic_list: Fix missing 'show all topics' when messages not cached.
Earlier, when number of topics displayed in the topic list
widget was at max `topic_list_data.max_topics` and
first_message_id of stream >= first_cached_message_id.
There was a possibility of a few topics missing for messages
which were sent when the user wasn't subscribed.

We were neither displaying 'show more topics', nor fetching it
from server to update the list asyncronously.

This commit fixes that bug to display 'show all topics' in that
case and also initiates an API call in parallel to fetch all topics
for that stream and update the topic list asyncronously if topics
were actually missing.

Fixes #28949.
2025-06-19 12:43:02 -07:00
Prakhar Pratyush
7d55ad3c13 topic_list: Move and reorganize couple of functions to topic_list.ts.
A prep commit to move `is_complete_for_stream_id` and
`all_topics_in_cache` from `stream_topic_history` to `topic_list`
as it is specifically used while building topic list widget.

As it makes more sense to use `is_complete_for_stream_id` instead of
`all_topics_in_cache` directly, we reorganize to put it inside
`is_complete_for_stream_id`.

We rename `is_complete_for_stream_id` to
`is_full_topic_history_available` for clarity.

It'll also help to avoid tackling circular import issue
while resolving #28949.

No functional change in this commit.
2025-06-19 12:43:02 -07:00