Commit Graph

66233 Commits

Author SHA1 Message Date
Mateusz Mandera
254b0ff477 scim: Add support for Groups. 2025-08-08 17:29:11 -07:00
Tim Abbott
a0b8e916c5 channel_folders: Fix prettier issues in last commit. 2025-08-08 16:55:33 -07:00
Tim Abbott
40118c9a7c channel_folders: Sort get_channel_folders by order. 2025-08-08 16:43:17 -07:00
Sahil Batra
e7d9a8954c stream-settings: Sort folder options in dropdown by "order" field. 2025-08-08 16:29:02 -07:00
Sahil Batra
6e3be8d83c settings: Reset the order when re-ordering request fails. 2025-08-08 16:29:02 -07:00
Sahil Batra
f7e9f37edc settings: Fix re-ordering folders when there is an archived folder.
This commit updates webapp code to include archived folder IDs as
well in the "order" list passed when re-ordering folders.

Also, updated API documentation to mention that archived folder IDs
should also be included.
2025-08-08 16:29:00 -07:00
Sahil Batra
b746bb5fc1 settings: Show rendered markdown folder description.
This commit adds code to show markdown formatted description
in "Channel folders" panel instead of raw text.
2025-08-08 15:40:31 -07:00
Maneesh Shukla
340b6adab4 topic-filter-input: Remove text-overflow property.
This commit removes the text-overflow property from input fields.
Chrome has a bug where truncation indicators in scrollable contenteditable
divs do not adjust when scrolling to the rightmost part of long text.
This behavior is related to https://issues.chromium.org/issues/41245282.
Firefox handles this correctly, but to ensure consistency, we will rely
on the default behavior of input fields, hiding overflowed text without
adding ellipses.

Fixes part of #35284.
2025-08-08 14:29:22 -07:00
Maneesh Shukla
6e43d34a34 topic-filter: Replace usage of search_pill.
Add topic_filter_pill to use for topic filtering instead of search_pill.

Fixes part of #35284.
2025-08-08 14:29:22 -07:00
Maneesh Shukla
15f2c65986 settings-preferences: Create left sidebar section.
This commit removes the following settings from the Settings/Preferences
Information section and adds a new section in the Settings/Preferences
called as Left Sidebar section:

- Show unread counts for
- Show unread count total on home view
- Show counts for starred messages
- Group channels by folder in the left sidebar
- Hide inactive channels

Fixes #35601.
2025-08-08 14:00:11 -07:00
Karl Stolley
8b059ec025 ui_util: Extract do_new_unread_animation for re-use. 2025-08-08 13:52:51 -07:00
Karl Stolley
4289cb67e5 left_sidebar: Change animation for new unread mentions.
Fixes #34473

Co-Authored-By: Aman Agrawal <amanagr@zulip.com>
2025-08-08 13:52:51 -07:00
Lauryn Menard
035874dea9 corporate: Remove zulip-mobile linkifier from dev community page.
Part of #35643.
2025-08-08 13:06:31 -07:00
Lauryn Menard
7953fd95a0 docs: Update links to go to zulip-flutter instead of zulip-mobile.
Updates the mobile beta testing link to go to the help center
instructions for installing a beta release of the mobile app.

Part of #35643.
2025-08-08 13:06:31 -07:00
Lauryn Menard
63c087dc84 help: Update links and examples to use zulip-flutter repo.
The one remaining link is for the instructions to download the
legacy app APK file for Android.

Part of #35643.
2025-08-08 13:06:31 -07:00
Alya Abbott
0e979009d8 help: Document message reminder note feature. 2025-08-08 12:59:08 -07:00
Karl Stolley
d089c42c98 markdown: Reduce space when paragraphs precede lists. 2025-08-08 12:06:55 -07:00
Evy Kassirer
a644874e76 stream_list: Add folder ids to StreamListSection object.
Followup to
https://github.com/zulip/zulip/pull/35075#discussion_r2232041259
2025-08-08 12:05:05 -07:00
Evy Kassirer
8817284f7a channel_folders: Move unreads code from left_sidebar_navigation to stream_list. 2025-08-08 12:05:05 -07:00
Evy Kassirer
8a862f3933 stream_list: Use switch statement for stream list row type. 2025-08-08 12:05:05 -07:00
Evy Kassirer
8a9a3a1c74 channel_folders: Use a set for get_all_folder_ids.
Followup to
https://github.com/zulip/zulip/pull/35075#discussion_r2237294397
2025-08-08 12:05:05 -07:00
Shubham Padia
5f9860776f test_docs: Remove help specific tests and port rest over to /api.
We do not test relative links here since relative links were only
used in the old help pages. We should probably remove the logic
for relative links after we have done the official cutover to the
starlight help center: #35654.
2025-08-08 11:59:29 -07:00
Shubham Padia
075809b93e test_middleware: Remove help related tests.
Help center is going to cutover to using starlight. We won't have that
help center running during our backend tests for now, that will be done
after cutover. Remove help related opengraph tests. We have replaced
instances from api_docs wherever possible, but for most of the cases, an
equivalent was not found in api_docs.

There is no api_docs file that starts with `{settings_tab` or an
admonition or `{start_tabs}` and thus we need to remove those tests.

test_settings_tab was not testing what it said it was testing,
deactivate-your-account.md did not start with `{settings_tab` anymore.
That was changed in 584124bb45.
2025-08-08 11:59:29 -07:00
Shubham Padia
9ec15e99bd test_urls: Use /api instead of /help pages for some tests.
We are going to move the help center to starlight soon and the tests
won't be able to access that help center until we solve things in a
followup issue. We move some of the urls being tested from /help to /api
to not loose coverage on those tests.
2025-08-08 11:59:29 -07:00
Shubham Padia
33f602fa98 help-beta: Add MDX formatting to the linter. 2025-08-08 11:59:29 -07:00
Shubham Padia
3e60b16ac1 starlight_help: Move help-beta over to starlight_help.
We are starting the cutover process and starlight_help is the directory
we have agreed on to place our new help center project. We do not want
to use `starlight_help` as the URL for the project, but this commit
changes the url from `help-beta` to `starlight_help` temporarily since
we can only change URL once we get rid of the current help center
project. That will be done in a future commit.
2025-08-08 11:59:29 -07:00
Evy Kassirer
fb49e5e420 left_sidebar: Make muted mention indicator more faded than unmuted. 2025-08-08 11:54:59 -07:00
Alya Abbott
e712f02c91 help: Document channel folder management functionality.
Updates the left sidebar and relative settings link in both the
current and new help center documentation.

Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2025-08-08 07:19:57 -07:00
Alya Abbott
631db46f92 help: Consistently document linkifier and profile field actions. 2025-08-08 07:19:57 -07:00
Evy Kassirer
ee877ebbc5 left_sidebar: Let current_section_id_for_stream return undefined.
Fixes this issue from Sentry:
https://zulip.sentry.io/issues/6778533249/events/9e2a25e419bc4dc2b7a207c5a482f943/?project=4504556882821120
2025-08-07 18:29:42 -07:00
Maneesh Shukla
c9fd9ade11 buttons: Rename sticky-bottom-option to sticky-bottom-option-button.
Fixes part of #35006.
2025-08-07 18:21:39 -07:00
Maneesh Shukla
6815a65a18 buttons: Redesign sticky-bottom-option button.
This commit removes "button" and "rounded" class from the button and
add the required rules to the pre existing sticky-bottom-option class.

Fixes part of #35006.
2025-08-07 18:21:39 -07:00
Tim Abbott
f287a82743 webhooks: Add nocoverage comment for unused MAPPING.
This code path isn't used yet; I expect we'll get to remove this when
we start using it for a specific integration in the near-ish future.
2025-08-07 17:39:05 -07:00
Niloth P
7022811349 integrations: Add URL option and UI for mapping messages to Zulip channels.
This commit adds a "mapping" URL option preset that adds "Matching Zulip
channel" option to the stream dropdown widget. When that option is
chosen from the dropdown, it adds another parameter to the integration
URL -- "&mapping=channels".

This "mapping" parameter is meant to be used by integrations like Slack
to identify whether the user wants to map Slack channels to different
Zulip channels or different topics within a single channel.

This adds an icon for the `mapping`s' drop down option in the "Where to
send notification" drop down field.

Co-authored-by: Pieter CK <pieterceka123@gmail.com>
Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2025-08-07 17:19:03 -07:00
PieterCK
3863f4d6a5 integrations: Add IGNORE_PRIVATE_REPOSITORIES preset WebhookUrlOption.
This refactors the `ignore_private_repositories` URL option to be a
preset because it can be used by other "version-control" integrations.
2025-08-07 17:19:03 -07:00
PieterCK
57ff908af9 webhook_common: Add a method to build preset WebhookUrlOption.
This adds `WebhookUrlOption.build_preset_config` method which builds
pre-configured WebhookUrlOptions objects. It can be used to abstract
commonly used WebhookUrlOption settings or to construct special
settings that have additional logic and UI in the web-app modal for
generating an incoming webhook URL.

Currently, one such setting is the "branches" url option. This setting
is meant to be used by "versioncontrol" integrations such as GitHub,
Gitea, etc. It adds UI that lets the user to choose which branches of
their repository can trigger notifications. So, we refactor those
integrations to use `build_preset_config` for the "branches" option.

Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2025-08-07 17:19:03 -07:00
Kislay Verma
f0a88d51cc message_reminders: Add support for notes.
This commit adds the ability for users to include notes
with their message reminders.

Fixes #35070.

Co-Authored-By: Aman Agrawal <amanagr@zulip.com>
2025-08-07 17:13:12 -07:00
Lauryn Menard
45d4df8dc2 help: Fix Markdown syntax for setting no default code block language. 2025-08-07 16:53:19 -07:00
Sahil Batra
52b21127e2 settings: Refactor class names for folder rows.
This commit removes unused classes in folder row elements
and updated used class names to use "-" instead of "_"
following the convention we follow usually.
2025-08-07 16:51:50 -07:00
Sahil Batra
21be0e58aa settings: Add code to live update "Channel folders" panel. 2025-08-07 16:51:50 -07:00
Prakhar Pratyush
f4f21bbbc6 onboarding: Fix focused to compose recipient box when modal is closed.
When a new user visits zulip for the first time:
* they are narrowed to DM with welcomer bot
* shown a navigation_tour_video in a modal

Earlier, when the modal was closed the compose recipient box
was focused instead of the compose textarea.

Reason:
`narrow_to_dm_with_welcome_bot_new_user` triggers a focus change from
(see `compose_actions.show_compose_box` with `opts.defer_focus = true`).

We start initializing this modal while the focus transition is in
progress, resulting in a flaky behaviour of the element that will
be in focus when modal is closed. Because the modal maintains the
focus position before and after toggling modal.

This commit fixes the issue by explicitly setting the focus to
ompose textarea when the modal is closed.
2025-08-07 09:28:24 -07:00
Sahil Batra
358f67a086 stream-list: Sort folder sections as per the folder order. 2025-08-06 18:58:15 -07:00
Sahil Batra
c127a0ae9f settings: Add UI to manage channel folders.
Fixes part of #35545.
2025-08-06 18:58:15 -07:00
Maneesh Shukla
7732aa0423 upgrade-banners: Refactor upgrade banners.
Instead of defining three separate banner objects with mostly identical
properties, dynamically construct the buttons array and intent based on
user permissions and organization type.

Also changes "Upgrade to access" button text to just "Upgrade" for
consistency.
2025-08-06 17:16:19 -07:00
Sahil Batra
fac28bf800 streams-ui: Move folder related UI functions to new file.
This commit moves function for creating, editing and archiving
folders in a new file channel_folders_ui.ts so that they can
be defined separately than the files for stream settings UI.
2025-08-06 17:05:19 -07:00
Karl Stolley
42014f2f79 site_previews: Don't hide overflow on data-container.
Because both .message_embed_title and
.message_embed_description manage their own overflow,
there's no need to set it on the outer container,
which can clip the top of the letters on message titles
under certain circumstances.
2025-08-06 17:04:04 -07:00
Tim Abbott
f177598ecf api: Increment API feature level to 414. 2025-08-06 16:34:40 -07:00
Shubham Padia
c4cb75979a channel-folders: Order by order field in GET method. 2025-08-06 16:34:40 -07:00
Shubham Padia
22b231ab6f channel-folders: Add PATCH method to reorder channel folders.
The test cases are copied from ReorderCustomProfileFieldTest since we
are imitating the reordering mechanism from custom profile fields to
channel folders.
2025-08-06 16:34:40 -07:00
Shubham Padia
40132e200b channel-folders: Add order field and backfill it alphabetically. 2025-08-06 16:34:40 -07:00