Commit Graph

5877 Commits

Author SHA1 Message Date
Niloth P
049e2fb5ac integrations: Make screenshot_configs a field in Integration class.
Previously, we maintained separate registeries for the screenshot
configurations - `WEBHOOK_SCREENSHOT_CONFIG`,
`FIXTURELESS_SCREENSHOT_CONFIG`, `DOC_SCREENSHOT_CONFIG`. Now, all
integration-related configuration is in a single registry
`INTEGRATIONS`.

Updated all mentions of DOC_SCREENSHOT_CONFIG in the docs.
2025-11-14 11:03:02 -08:00
Shubham Padia
e7269a1368 shared: Move icons to web/images/icons.
This completes the removal of web/shared.
https://chat.zulip.org/#narrow/channel/6-frontend/topic/web.2Fshared
2025-11-14 10:19:12 -08:00
Pratik Chanda
ade60f2571 info_overlays: Use internationalized strings for message_formatting tab.
This commit changes all user facing strings to internationalized
strings in message formatting tab in info overlays.

Fixes: zulip#22875.
2025-11-13 15:58:51 -08:00
Anders Kaseorg
7eaf5447b4 shared: Remove @zulip/shared packaging files.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-11-12 15:28:14 -08:00
Aman Agrawal
3c3e5fcc1b filter: Separate out canonical and legacy operators.
This will help us clearly define which operators we need to write
logic for.

Especially useful when we will define different operand types for
each operator.
2025-11-12 12:33:38 -08:00
Maneesh Shukla
54596e76a4 bot-settings: Create bot_helper for bot settings.
This commit creates a new bot_helper.ts file and functions used
to generate configuration file for bots are moved to that file.
2025-11-11 16:17:27 -08:00
Shubham Padia
5279923f2b shared: Move typing_status.ts to web/src.
This file was meant to be shared with the zulip react native app. Since
we have moved to zulip-flutter app in production as well, we can move
this file to web/src.

We also remove mentions of these files from webpack config and some test
config since all these files have moved to web/src with this commit.

https://chat.zulip.org/#narrow/channel/6-frontend/topic/web.2Fshared
2025-11-11 09:06:18 -08:00
Shubham Padia
9233ca70a8 shared: Move poll_widget.ts to web/src.
This file was meant to be shared with the zulip react native app. Since
we have moved to zulip-flutter app in production as well, we can move
this file to web/src.

https://chat.zulip.org/#narrow/channel/6-frontend/topic/web.2Fshared
2025-11-11 09:06:18 -08:00
Shubham Padia
a29da706a7 integrations: Integrations page should no longer be an SPA.
Decision made in https://chat.zulip.org/#narrow/channel/19-documentation/topic/integrations.20docs.20per-page.20info/near/2268569

Integrations and the related docs were all running as an SPA. But to run
them in single page, we had a lot of logic on the frontend to make this
happen. We noticed that we missed to replicate page title changes on the
frontend. With the added burden of maintaining that integrations.ts page
navigation code and the uncertainty of not knowing what we might have
missed to replicate on the frontend, we decided to just render all the
pages server side while keeping our search on the backend.

This commit splits index.html into two templates, catalog.html for
integrations catalog and doc.html for the individual integration details
page.

We use a @typed_endpoint instead of a class based view since there are
very few class based views left in our codebase and this felt like a
nice opportunity to have integrations use them as well.

We port over any special non-navigation logic we were doing in
integrations.ts serverside.

We used to use animations for the lozenges when changing categories, we
don't do that anymore, since every category is a new page fetch and
animation does not make sense in that case.

We also port over the logic of adding the `without-category` class to
the lozenge icon on the indivdidual integration doc page.

We have a few integrations with legacy set to true. We used to set
their display to none in the CSS for the catalog page and we used to
remove that legacy class in integrations.ts for the individual doc page.
We remove legacy integrations from `visible_integrations` now, while the
individual doc page of the legacy integration works just fine without
the use of `legacy` class anywhere.
2025-11-07 13:29:34 -08:00
Vector73
c33fc5957c tools: Check if feature level is changed before sending message.
Allows sending notification message only when the feature level is
changed.
2025-11-07 10:11:16 -08:00
Vector73
e592ff1d82 tools: Remove hard newlines from notification message.
Removes hard newlines from notification message sent by
"API documentation update check" github action.
2025-11-07 10:11:16 -08:00
Alex Vandiver
567856c789 closed_by_commits: Add a tool to review issues closed in a commit range.
It extracts CZO links from issues and PRs, and also searches
web-public channels in CZO for those same issue and PR numbers to
collect more CZO topic links.
2025-11-06 11:17:24 -08:00
Evy Kassirer
12a6e22283 reload_setup: Convert module to typescript. 2025-11-05 15:05:59 -08:00
PieterCK
daa14bb3c4 message_actions: Add "Report message" action and settings UI.
This adds a new field in the "Organization settings" menu for the
moderation request channel. It only includes private channels as the
dropdown options.

Fixes #20047.

Co-authored-by: Adam Sah <140002+asah@users.noreply.github.com>
Co-authored-by: Alya Abbott <alya@zulip.com>
2025-11-05 11:20:32 -08:00
Vector73
9ec4c04f2f tools: Fix notify-if-api-docs-changed tool.
Fixed feature level in topic name where notification is sent. Also,
changelog entries will be included in the notification message instead
of only changed endpoints.
2025-11-05 09:38:07 -08:00
Niloth P
6eab000c9f integrations: Migrate channel name from Integration to ScreenshotConfig.
Migrate `stream_name` in Integration class to `channel` in
`WebhookScreenshotConfig` and `FixturelessScreenshotConfig` dataclasses.

`stream_name` is being used only when generating screenshots, and
hence belongs better in the screenshot config objects.
In the next commit, the ScreenshotConfig will be added as an Integration
property.
2025-11-03 16:08:06 -08:00
Anders Kaseorg
be18d71624 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-11-01 07:24:57 -07:00
Alex Vandiver
3ca5a49557 i18n: Properly handle when a locale is removed from Weblate. 2025-10-27 09:05:06 -07:00
Tim Abbott
7406edd99c tools: Fix a linter issue caught by semgrep.
The issue was a new rule that didn't exist when the PR was written.
2025-10-23 14:33:58 -07:00
Vector73
2dca184fd3 github_action: Fix "notify-if-api-docs-changed" tool.
Fix `notify-if-api-docs-changed` tool to send the notification only
when "changelog.md" is changed in the PR.
2025-10-23 14:23:25 -07:00
Alex Vandiver
740be1d55c sync-translations: Wait until MERGED, not until not-OPEN.
The `gh pr list --search` results may have an _empty_ state for the
first several seconds, leading to this immediately aborting, deleting
the branch and closing the PR.
2025-10-23 14:17:01 -07:00
Alex Vandiver
75c0f0286f semgrep: Lint unnecessary type=str in argparse. 2025-10-17 15:34:34 -07:00
Alex Vandiver
1e943ae7df python: Elide type=str from argparse arguments. 2025-10-17 15:34:34 -07:00
Alex Vandiver
ca01de84be emoji: Fix aliases for dotted_six_pointed_star.
CLDR 46 added this alias, which is not accurate; remove it.
2025-10-17 15:34:16 -07:00
Vector73
a5d25826bd github_action: Mention PR where the endpoints were added.
Updates "API Documentation Update Check" tool to  add PR
information in the message to chat.zulip.org when the
new endpoints are added.
2025-10-09 11:39:54 -07:00
Anders Kaseorg
b8f8056f56 markdown: Use re-exported guess_type to ensure adding EXTRA_MIME_TYPES.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-08 23:36:15 -07:00
Evy Kassirer
796c0387a3 check_schemas: Update event.cjs file name. 2025-10-08 17:05:51 -07:00
Anders Kaseorg
800cfc4421 emoji_names: Rebuild with emoji-datasource 16.0.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-07 22:42:50 -07:00
Shubham Padia
94f8198072 help: Redirect web app URLs to web app proxy port.
Help center dev server always runs on a port different than the web
app. We have relative URLs pointing to the web app in the help
center, but they are not on the port help center is running on. We
redirect instead to our web app proxy port.
2025-10-06 22:21:39 -07:00
Evy Kassirer
ce56be02bc hotkey: Convert module to typescript. 2025-10-06 11:01:01 -07:00
Evy Kassirer
7c90d2cee5 compose_setup: Convert module to typescript.
Some checks failed
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:trixie, false, false, Debian 13 (Python 3.13, backend), trixie) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:trixie, , Debian 13 production install, trixie) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-10.0, 10.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:trixie-11.0, 11.0 Version Upgrade, trixie) (push) Has been cancelled
2025-10-03 18:21:16 -07:00
Evy Kassirer
1818ce1e47 compose_send_menu_popover: Convert module to typescript. 2025-10-02 16:30:09 -07:00
Tim Abbott
a7fa7abd54 total-contributions: Use a more complete set of repositories. 2025-10-02 12:11:43 -07:00
Pratik Chanda
5e33f21af8 info_overlay: Use internationalized strings in keyboard shortcut tab.
Some checks failed
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:trixie, false, false, Debian 13 (Python 3.13, backend), trixie) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:trixie, , Debian 13 production install, trixie) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-10.0, 10.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:trixie-11.0, 11.0 Version Upgrade, trixie) (push) Has been cancelled
This commit internationalizes the strings between the keys in the
right half of the keyboard shortcut tab in info_overlay.

Fixes part of #22875.
2025-10-01 16:54:12 -07:00
Evy Kassirer
635d99ba72 zform: Convert module to typescript. 2025-10-01 16:39:59 -07:00
Evy Kassirer
a175a82590 compose: Convert module to typescript. 2025-10-01 16:38:55 -07:00
Anders Kaseorg
80b9cffb3d build_emoji: Use clean emoji sheets without Apple fallback images.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-01 13:35:06 -07:00
Anders Kaseorg
85c94599c5 emoji: Remove deprecated Google blobs emoji set.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-10-01 13:35:06 -07:00
Shubham Padia
bbca79d92e help: Include dist in release tarball and exclude source code.
We don't include starlight_help/dist_no_relative_links since that is
only useful for zulip.com and zulip.com doesn't use tarballs for
deployment.
2025-10-01 13:10:13 -07:00
PieterCK
1400ad7307 template_parser: Fix f-string not formatted. 2025-10-01 11:12:44 -04:00
Anders Kaseorg
c1a4dcf33d requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-30 16:47:54 -07:00
Anders Kaseorg
f24a0a6b81 ruff: Fix RUF059 Unpacked variable is never used.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-30 16:47:54 -07:00
Anders Kaseorg
7ebadb5d41 release-checklist: Prescribe docker build --pull.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-30 16:35:21 -07:00
Shubham Padia
3b6d8de815 help: Rename --help-center to --help-center-static-build for run-dev.
Having it name --help-center made it sound like it was the default mode.
The new name reflects that option more accurately.
2025-09-26 11:18:26 -07:00
Shubham Padia
b79b068568 help: Add --only-help-center to run-dev.
The astro dev server takes a lot of memory and is disabled by default in
`run-dev`. We add another option to only run the dev server which is the
recommended mode for development. We still keep around the
`--help-center-dev-server` mode for folks who have machines with higher
specifications.

See https://chat.zulip.org/#narrow/channel/19-documentation/topic/edits.20not.20appearing.20with.20vagrant/near/2256856
2025-09-26 11:18:26 -07:00
Evy Kassirer
19880797db channel_folders: Fix remaining test TODOs.
Fixes #35494.
2025-09-25 17:31:21 -07:00
Sahil Batra
764f4aa2e0 groups: Use realm_for_sharding for limiting NamedUserGroup queries.
For get and filter queries of NamedUserGroup, realm_for_sharding
field is used instead of realm field, as directly using
realm_for_sharding field on NamedUserGroup makes the query faster
than using realm present on the base UserGroup table.
2025-09-23 12:15:53 -07:00
Kislay Verma
1b0ec6e923 stream_list_sort: Add tests for channel folders.
This commit re-enables one of the tests disabled in #35075 and
adds new test cases.

Fixes part of #35494.
2025-09-22 09:38:36 -07:00
Shubham Padia
468a7a82dd help: Do not treat Help Center as a proper noun.
Fixes https://chat.zulip.org/#narrow/channel/101-design/topic/help.20center.20capitalization
2025-09-17 13:20:25 -07:00
Anders Kaseorg
40a022dcc3 zephyr: Remove Zephyr mirroring support.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-16 11:18:18 -07:00