Anders Kaseorg
2a69545bec
page_params: Move initial_pointer and friends to message_fetch.
...
These aren’t sent by the server; they’re client-side global variables.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-01 17:37:50 -08:00
Anders Kaseorg
e8e7142ed1
page_params: Move events_queue_expired to server_events.
...
This isn’t sent by the server; it’s a client-side global variable.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-01-01 17:37:50 -08:00
Mateusz Mandera
bc8167db2a
docs: Fix typo in mypy doc.
2024-01-01 17:36:13 -08:00
Lauryn Menard
9f009a2e63
support: Reformat percentages in attach discount success message.
2023-12-30 11:22:30 -08:00
Lauryn Menard
ffd708ecaf
support: Display next plan data on remote support view.
...
Currently, this will only be the case for legacy self-managed plans
that have scheduled a switch to either the Basic or Business plan.
2023-12-30 11:22:02 -08:00
Sahil Batra
8f795e22e8
settings: Fix discard button in groups UI in dark theme.
2023-12-30 11:15:30 -08:00
Prakhar Pratyush
1472aac750
docs: Update the URL for Stripe docs to install Stripe CLI locally.
2023-12-30 11:15:06 -08:00
Prakhar Pratyush
3dd9ba4e94
docs: Update 'set private key' step in billing (development) docs.
...
Earlier, the URL directed to live API keys. Updated the URL
to direct to 'test API keys'.
Also explicitly mentioned is to double check that the keys are
'test keys', in case Stripe changes the URL as it did before.
2023-12-30 11:15:06 -08:00
Anders Kaseorg
8514c8d739
page_params: Fix types of narrow, server_sentry_dsn, user_id.
...
page_params.narrow may be undefined, page_params.server_sentry_dsn may
be null but not undefined, and page_params.user_id may be 0 (for
spectators) but not undefined.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-29 14:16:19 -08:00
Anders Kaseorg
089c8f61c5
test_remote_billing: Use unordered comparison for deactivation test.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-29 14:12:43 -08:00
Anders Kaseorg
a5d51a0895
people: Don’t reference nonexistent page_params.is_bot.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-29 13:05:30 -08:00
Anders Kaseorg
9703b4d70b
login: Remove external_authentication_methods from page_params.
...
This was used by a work-in-progress social login implementation in
zulip-desktop that was reverted for security reasons and never
released.
https://github.com/zulip/zulip/pull/13782
https://github.com/zulip/zulip-desktop/pull/863
We replaced it by a secure implementation with a maintainable API.
https://github.com/zulip/zulip-desktop/pull/943
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-29 13:02:12 -08:00
Anders Kaseorg
711f6433cb
docs: Correct certutil invocation for importing self-signed certificate.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-29 12:48:08 -08:00
sayyedarib
b430ba2bd5
navbar_help_menu: Migrate module to typescript.
...
Signed-off-by: sayyedarib <sayyedaribhussain4321@gmail.com>
2023-12-29 12:15:08 -08:00
Anders Kaseorg
2cf8f1c063
page_params: Move page_load_time to zulip_test.
...
This isn’t sent by the server; it’s a client-side global variable.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-29 11:58:58 -08:00
evykassirer
baf6c68ab8
starred_messages: Migrate module to typescript.
2023-12-28 18:24:40 -08:00
evykassirer
baba72df91
compose_banner: Restrict banner to only JQuery, never htmlString.
...
Co-authored-by: Anders Kaseorg <anders@zulip.com>
2023-12-28 16:53:46 -08:00
evykassirer
1f21510dd4
compose_notifications: Convert module to typescript.
2023-12-28 16:53:46 -08:00
Varun Singh
62a636068e
subscriber_api: Convert module to TypeScript.
2023-12-28 15:05:16 -08:00
evykassirer
6157d83d3a
unread_ui: Convert module to typescript.
2023-12-28 11:26:37 -08:00
evykassirer
8d685d5b5a
page params: Add furthest_read_time attribute.
2023-12-28 11:26:37 -08:00
evykassirer
5f5e77afd5
local_message: Convert module to typescript.
2023-12-27 23:23:36 -08:00
evykassirer
b20694aa07
narrow_history: Convert module to typescript.
2023-12-27 23:12:09 -08:00
evykassirer
e0a10c2d94
all_messages_data: Convert module to typescript.
2023-12-27 22:55:47 -08:00
evykassirer
ccd5b4a813
narrow_state: Convert module to typescript.
2023-12-27 22:16:21 -08:00
evykassirer
b7a28f1630
page params: Add narrow attribute.
2023-12-27 22:16:21 -08:00
evykassirer
0f1fa8e159
message_list_data: Potentially return undefined in first_unread_message_id.
2023-12-27 21:48:54 -08:00
evykassirer
0cf1d49fee
message_list_data: Convert module to typescript.
2023-12-27 21:48:54 -08:00
evykassirer
dc8d0ed861
message_lists: Convert module to typescript.
2023-12-27 20:44:58 -08:00
evykassirer
e0fef6fdff
narrow_title: Migrate module to typescript.
2023-12-27 20:39:53 -08:00
evykassirer
01abd96127
buddy_data: Convert module to typescript.
2023-12-27 15:53:39 -08:00
evykassirer
68f2535ebc
recent senders: Convert module to typescript.
2023-12-27 14:05:35 -08:00
evykassirer
1f2ea95b9f
recent senders: Use for loop instead of filter/if combination.
2023-12-27 14:05:35 -08:00
Anders Kaseorg
6e220f4dc1
eslint: Enable @typescript-eslint/method-signature-style.
...
For historical reasons, TypeScript ignores variance errors for method
shorthand type declarations even in strict mode. Prefer the correctly
checked style.
https://typescript-eslint.io/rules/method-signature-style
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-26 17:30:33 -08:00
Anders Kaseorg
b44daf080c
list_widget: Remove unknown generic defaults.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-26 17:30:33 -08:00
Anders Kaseorg
d7803db5c7
list_widget: Remove get.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-26 17:30:33 -08:00
Anders Kaseorg
c1636ffc6f
list_widget: Add missing generic parameters to handle_sort.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-26 17:30:33 -08:00
Anders Kaseorg
3cc94ea930
types: Remove stacktrace-gps declarations.
...
I sent these upstream with documentation in 3.1.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-26 16:26:22 -08:00
evykassirer
4ce13f72f0
filter: Convert module to typescript.
2023-12-26 15:45:40 -08:00
evykassirer
cc8b35ff23
filter: Preparation to appease the typescript linter.
2023-12-26 15:45:40 -08:00
evykassirer
2c35aa38b7
filter: Move static functions above public instance method definitions.
2023-12-26 15:45:40 -08:00
evykassirer
86fd0864a7
page_params: Add narrow_stream to type.
2023-12-26 15:45:40 -08:00
Anders Kaseorg
ea697cdd93
eslint: Enable @typescript-eslint/stylistic-type-checked config.
...
https://typescript-eslint.io/linting/configs/#stylistic-type-checked
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
c16837a664
eslint: Fix @typescript-eslint/prefer-string-starts-ends-with.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
c943dc5035
eslint: Fix @typescript-eslint/prefer-optional-chain.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
3d55e7ef10
eslint: Fix @typescript-eslint/prefer-nullish-coalescing.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
9ec4c6d852
eslint: Fix @typescript-eslint/no-inferrable-types.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
b33988a553
eslint: Fix @typescript-eslint/no-empty-function.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
f88e3b9735
presence: Remove paranoid handling of falsy timestamps.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00
Anders Kaseorg
a36ef0b593
stream_data: Avoid undefined return from is_user_subscribed.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-23 15:36:05 -08:00