Alex Vandiver
c13e3dee24
katex: Replace subprocess call with minimal external service.
...
Replace a separate call to subprocess, starting `node` from scratch,
with an optional standalone node Express service which performs the
rendering. In benchmarking, this reduces the overhead of a KaTeX call
from 120ms to 2.8ms. This is notable because enough calls to KaTeX in
a single message would previously time out the whole message
rendering.
The service is optional because he majority of deployments do not use
enough LaTeX to merit the additional memory usage (60Mb).
Fixes : #17425 .
2024-03-15 15:34:12 -07:00
Alex Vandiver
5fd38f15a6
webpack: Support limiting to only one config name.
2024-03-15 15:34:12 -07:00
Roshan Jagadish
20e44997e2
types: Migrated add_stream_options_popover to TypeScript.
...
The migration requires some new assert statements as well as a change
in how the `return undefined` case is spelled to match the types declared by
Tippy upstream.
2024-03-15 13:02:20 -07:00
evykassirer
03ec788a91
typeahead: Move module to web/src.
2024-03-11 09:56:18 -07:00
evykassirer
babe525b5c
linter: Add _html as a variable name for safe html.
2024-03-11 09:56:18 -07:00
Temidayo32
11e498f937
resize_handler: Convert module to Typescript.
2024-03-08 10:49:52 -08:00
Temidayo32
42dd55df42
condense: Convert module to Typescript.
2024-03-07 16:15:30 -08:00
Varun Singh
1fb03a27d8
compose_fade: Convert module to TypeScript.
2024-03-06 14:47:47 -08:00
afeefuddin
5e18bd762f
left_sidebar_navigation_area: Convert module to TypeScript.
2024-03-06 13:57:33 -08:00
afeefuddin
72681c2d5a
hotspots: Convert module to TypeScript.
2024-03-04 18:17:34 -08:00
afeefuddin
6314139d4a
zcommand: Convert module to TypeScript.
2024-03-04 18:10:38 -08:00
Anders Kaseorg
e46c3bf116
dev-vagrant-docker: Upgrade docker-systemctl-replacement to 1.5.8066.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-04 15:34:10 -05:00
Varun Singh
bda6470951
user_status_ui: Convert module to TypeScript.
2024-03-01 18:02:20 -08:00
Anders Kaseorg
066ea3ebf9
install: Support Ubuntu 24.04.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-01 17:38:08 -08:00
evykassirer
c60cc07605
drafts: Convert module to typescript.
2024-03-01 15:49:53 -08:00
Tim Abbott
3c708edb2c
team: Add more repositories and rename tabs.
...
Based on an audit of all repositories in the zulip organization.
2024-03-01 14:57:46 -08:00
Anders Kaseorg
d748ec8d52
ruff: Fix PLW0108 Lambda may be unnecessary.
...
This is a preview rule, not yet enabled by default.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-01 09:30:04 -08:00
Anders Kaseorg
553f268b04
ruff: Fix RUF027 Possible f-string without an `f` prefix.
...
This is a preview rule, not yet enabled by default.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-01 09:30:04 -08:00
Anders Kaseorg
865febb307
ruff: Fix RUF021 Parenthesize when chaining `and` and `or` together.
...
This is a preview rule, not yet enabled by default.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-03-01 09:30:04 -08:00
Anders Kaseorg
570f3dd447
python: Reformat with Ruff formatter.
...
https://docs.astral.sh/ruff/formatter/
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-29 17:07:16 -08:00
Alex Vandiver
be59ef9c02
runtornado: Swap deferred reload events to the default.
...
This makes no immediate reloads the default for runtornado, matching
the production configuration, and changes the development incantation
to be the one to specify the departure from the norm, with
--immediate-reloads.
2024-02-26 22:29:19 -08:00
Anders Kaseorg
cba4b8141e
provision: Use binary PGroonga release on Debian 12.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-26 16:58:51 -08:00
afeefuddin
28e4fe1820
onboarding_steps: Convert module to TypeScript.
2024-02-26 08:16:44 -08:00
evykassirer
44b07094df
stream_list: Convert module to typescript.
2024-02-23 16:18:48 -08:00
Lauryn Menard
1f72ab5133
remote-support: Show active billing user emails.
2024-02-23 13:21:54 -08:00
Aman Agrawal
a9dc669f3c
dropdown_widget: Migrate to typescript.
2024-02-22 16:38:25 -08:00
Anders Kaseorg
bf4933942c
run-dev: Abbreviate error message when receiving an https request.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-22 16:26:36 -08:00
evykassirer
ea2818786e
buddy_list: Convert module to typescript.
2024-02-22 16:05:27 -08:00
evykassirer
231aa098cb
buddy list: Create section in buddy list for users from narrow.
...
Fixes #21285 .
2024-02-22 16:05:27 -08:00
Anders Kaseorg
aeeea453dd
install-shfmt: Upgrade shfmt from 2.7.0 to 2.8.0.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-22 12:46:40 -08:00
evykassirer
860150525c
sidebar_ui: Convert module to typescript.
2024-02-21 18:50:51 -08:00
evykassirer
aab25fae6a
pm_list: Convert module to typescript.
2024-02-21 10:49:24 -08:00
Varun Singh
c91ca3eca8
message_live_update: Convert module to TypeScript.
2024-02-20 08:30:04 -08:00
evykassirer
23795ca153
message_edit_history: Convert module to typescript.
2024-02-19 21:39:40 -08:00
Anders Kaseorg
a4938d3760
page_params: Parse page_params and state_data with Zod.
...
This establishes a runtime check that their types continue to reflect
reality going forward.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-17 00:02:38 -08:00
Anders Kaseorg
273453d285
lint: Remove .lock extension from frontend group.
...
Commit 3a27b12a7d
(#24731 ) migrated
yarn.lock to pnpm-lock.yaml.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-16 18:50:17 -05:00
Tim Abbott
76e86bc8fa
team: Update for zulip-android-legacy repository rename.
2024-02-15 16:52:23 -08:00
Anders Kaseorg
e96ede0ef6
page_params: Split out state data for current user.
...
For spectators, the chunk of page_params that originates from
do_events_register isn’t assigned until ui_init.js. That means the
TypeScript type of page_params is mostly a lie during module load
time: reading a parameter too early silently results in undefined
rather than the declared type, with unpredictable results later on.
We want to make such an early read into an immediate runtime error,
for both users and spectators consistently, and pave the way for
runtime validation of the page_params type. As a first step, split
out the subset of fields that pertain to the current user.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-15 10:22:52 -08:00
Varun Singh
3fa308369d
playground_links_popover: Convert module to TypeScript.
2024-02-13 11:44:01 -08:00
Varun Singh
5f9b6d82a4
typing_events: Convert module to TypeScript.
2024-02-12 09:49:54 -08:00
evykassirer
49d79730b8
resize: Convert module to typescript.
2024-02-09 21:17:16 -08:00
Joydeep Bhattacharjee
264a9a1057
compose_ui: Convert module to typescript.
2024-02-09 15:11:17 -08:00
Alex Vandiver
3d63a87384
kandra: Puppet github.com keys to both root and zulip users.
...
We update to add the ecdsa-sha2-nistp256 key as well.
2024-02-07 10:42:12 -08:00
Alex Vandiver
b1f899512a
pack-local-script: Match mode of file outside of packing.
2024-02-07 10:42:12 -08:00
Varun Singh
e213d9505b
typing: Convert module to TypeScript.
2024-02-07 09:12:49 -08:00
Varun Singh
94558478df
scheduled_messages_feed_ui: Convert module to TypeScript.
2024-02-06 22:25:55 -08:00
Alex Vandiver
b23d90ed62
puppet: Rename puppet/zulip_ops to puppet/kandra.
...
This makes for easier tab-completion, and also is a bit more explicit
about the expected consumer.
2024-02-06 17:56:27 -08:00
Alex Vandiver
0bd1e2b434
puppet: Rename and limit production key distribution.
2024-02-02 17:24:12 -08:00
Anders Kaseorg
70f491eae2
push-to-pull-request: Accept intermixed options and arguments again.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-01 17:08:44 -08:00
Anders Kaseorg
474703a963
push-to-pull-request: Use getopts for macOS compatibility.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-01 09:29:32 -08:00