afeefuddin
64d8a18b76
settings_profile_fields: Convert Module to TypeScript.
2024-05-20 11:17:58 -07:00
evykassirer
96c9950115
composebox_typeahead: Convert module to typescript.
2024-05-16 14:53:26 -07:00
Anders Kaseorg
fba81d1cd5
upload: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-15 10:53:09 -07:00
Anders Kaseorg
b132fc50b3
compose_reply: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-15 10:53:09 -07:00
Anders Kaseorg
941e2ae5dc
inbox_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-15 10:53:09 -07:00
Anders Kaseorg
4d407c6b8d
copy_and_paste: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-14 14:12:05 -07:00
Anders Kaseorg
a41d0b16e6
user_topics_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-14 14:01:04 -07:00
Anders Kaseorg
6479cc5970
unread_ops: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-14 12:15:44 -07:00
afeefuddin
d36e19389d
add_subscribers_pill: Convert module to TypeScript.
2024-05-13 16:57:02 -07:00
evykassirer
724306df10
recent_view_ui: Convert module to typescript.
2024-05-13 12:51:00 -07:00
Temidayo32
91bd6e2b12
compose_closed_ui: Migrate module to TypeScript.
2024-05-12 17:41:22 -07:00
Prakhar Pratyush
bf2360bcf2
onboarding_steps: Remove hotspot as an onboarding_step.
...
Earlier, hotspots and one-time notices were the valid
type of onboarding step.
Now, one-time notice is the only valid type.
Fixes #29296 .
2024-05-10 12:30:22 -07:00
Anders Kaseorg
d507706371
zulip_test: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-04 18:55:17 -07:00
Anders Kaseorg
fd8b2c557f
global: Rename with normal TypeScript module extension.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-04 18:55:17 -07:00
Aman Agrawal
103c37f23a
message_list: Don't always cache "Combined feed" view.
...
Important changes in this commit:
* We only cache message list for "Combined feed" if it is the
default view.
* We modify existing handling of home message list code so that
it can be used to for any message list that we want to cache
using a new `preserve_rendered_state` variable.
* narrow_state.filter() returns the filter of combined feed view list
instead of `undefined`.
* We start fetching messages from the latest message on app load.
* Messages in all messages data and Recent view are always synced.
* If combined feed view list is not cached, we don't track it's
last pointer, effectively sending user to the latest unread
message always .
2024-04-25 09:20:43 -07:00
evykassirer
0e369e7ff3
compose_send_menu_popover: Rename module to reflect broader uses.
2024-04-20 13:27:25 -07:00
Varun Singh
ee232bba05
settings_linkifiers: Convert module to TypeScript.
2024-04-13 21:45:44 -07:00
Karl Stolley
7291f0a919
info_density: Set font size, line height vars in dev.
2024-04-11 10:25:03 -07:00
evykassirer
16bf8d3df6
views_util: Convert module to typescript.
2024-04-10 12:19:52 -07:00
afeefuddin
61966e9d6e
compose_tooltips: Convert module to TypeScript.
2024-04-10 11:17:20 -07:00
evykassirer
d6f4424102
compose_actions: Convert module to typescript.
2024-04-04 16:34:42 -07:00
afeefuddin
b32c837c6b
settings_playgrounds: Convert module to TypeScript.
2024-04-04 10:45:53 -07:00
Temidayo32
25ff0d4418
compose_recipient: Convert module to TypeScript.
2024-04-03 13:08:10 -07:00
afeefuddin
a283a19c9f
stream_color_events: Convert module to TypeScript.
2024-04-02 14:55:30 -07:00
afeefuddin
fd970e0520
user_group_components: Convert module to TypeScript.
2024-04-01 17:32:48 -07:00
evykassirer
bedbaa3a41
message_view_header: Convert module to typescript.
2024-04-01 13:22:39 -07:00
evykassirer
9c055df695
settings_user_topics: Convert module to typescript.
2024-03-30 16:25:34 -07:00
evykassirer
a43e9140f2
search: Convert module to typescript.
2024-03-30 15:27:02 -07:00
evykassirer
c7b12c996c
typeahead: Convert module to typescript.
...
This contains two more complex changes:
- The default versions of sorter and matcher assume that ItemType is a
string. But the Typeahead class works on a generic ItemType and I'm
not aware of a way to assert that this function is only called for
typeaheads with string items. For `matcher`, we can assert that the
items are strings. `sorter` is now a required option instead of an
optional one that could fall back to the default.
- `element` can be either an `input` element or a `contenteditable`
`div`. We distinguish between them using `.is("[contenteditable]"))`
but TypeScript doesn't understand that. So we replaced `this.$element`
with `this.input_element` where `input_element` is an object with the
`$element` and also a `type` specifying which type of element it is
(input or contenteditable).
2024-03-30 10:41:38 -07:00
evykassirer
5bcb4e55d8
desktop_notifications: Convert module to typescript.
2024-03-29 16:16:47 -07:00
adnan-td
87dee7a9b2
invite_user_modal: Replaced email text_area with input_pill.
...
This makes the widget considerably more attractive, and probably a bit
more usable.
Fixes #29391 .
2024-03-29 11:13:03 -07:00
afeefuddin
da80afd6f4
lightbox: Convert module to TypeScript.
2024-03-28 13:56:56 -07:00
Varun Singh
f1db30418b
submessage: Convert module to TypeScript.
2024-03-28 12:59:12 -07:00
Sahil Batra
19a7c75400
settings_components: Convert to typescript.
2024-03-26 10:32:15 -07:00
Temidayo32
533a6153b2
compose_validate: Convert module to TypeScript.
2024-03-22 15:59:37 -07:00
Varun Singh
fd3c7728fc
message_list_tooltips: Convert module to TypeScript.
2024-03-22 15:37:57 -07:00
Varun Singh
1aaedf89ee
poll_modal: Convert module to TypeScript.
2024-03-21 16:33:24 -07:00
Vector73
f758ca596b
custom_profile_fields: Add "required" parameter to the profile fields.
...
Fixes #28512 .
2024-03-21 10:48:54 -07:00
afeefuddin
6f81fe1b5b
info_overlay: Convert module to TypeScript.
2024-03-21 09:00:33 -07:00
afeefuddin
417d4b3a8a
integration_url_modal: Convert module to TypeScript.
2024-03-19 09:38:22 -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
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
Varun Singh
bda6470951
user_status_ui: Convert module to TypeScript.
2024-03-01 18:02:20 -08:00
evykassirer
c60cc07605
drafts: Convert module to typescript.
2024-03-01 15:49:53 -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
Aman Agrawal
a9dc669f3c
dropdown_widget: Migrate to typescript.
2024-02-22 16:38:25 -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
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
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
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
evykassirer
ea04f7d27d
topic list: Convert module to typescript.
2024-01-29 10:22:35 -08:00
Lalit
6f6795f607
ts: Migrate `message_viewport` to typescript.
...
Used function overloading for methods - `make_dimen_wrapper`
and `scrollTop`.
2024-01-22 16:29:23 -08:00
Varun Singh
c0a0c0e834
scheduled_messages: Convert module to TypeScript.
2024-01-21 08:54:20 -08:00
Aditya Kumar Kasaudhan
49a9954413
settings: Rename settings_display to settings_preferences.
...
This commit renames "settings_display.js" file to
"settings_preferences.js".
Fixes part of #26874 .
2024-01-12 15:33:16 -08:00
Sahil Batra
dcac272afc
user_group_popover: Convert module to typescript.
2024-01-09 16:47:37 -08:00
Varun Singh
af3b15ef10
read_receipts: Convert module to TypeScript.
2024-01-05 11:52:59 -08:00
Varun Singh
4b04716237
settings_realm_domains: Convert module to TypeScript.
2024-01-05 10:50:08 -08:00
evykassirer
979ace1cea
message_util: Convert module to typescript.
2024-01-05 10:47:12 -08:00
evykassirer
4e66e8742f
rows: Convert module to typescript.
2024-01-04 12:45:42 -08:00
evykassirer
434b67caf5
message_feed_top_notices: Convert module to typescript.
2024-01-03 14:39:26 -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
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
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
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
d1acdf20e7
unread: Convert module to TypeScript.
2023-12-22 16:18:50 -08:00
Lalit
02257b8cbf
ts: Migrate `popover_menus` to typescript.
...
This commit migrates `popover_menus` module to TypeScript. Also adds
a placeholder types declaration file for `css_variables` module.
2023-12-17 14:00:44 -08:00
Sahil Batra
3d181a8ee1
settings: Remove "User groups" panel from settings overlay.
...
The "User groups" panel is now removed from settings overlay
and we instead use new "#groups" UI.
This commit also makes some changes to tests to ensure coverage
for pill_typeahead.js which was previously done by
settings_user_group_legacy.test.js. We have still not got
complete coverage on user_pill.ts as we have removed
settings_user_group_legacy.test.js, but we just add the file
to EXEMPT_FILS list for now and will handle it in future.
Fixes #28012 .
2023-12-07 06:35:38 -08:00
Prakhar Pratyush
ac8af3d6de
urls: Add a new endpoint for hotspot and deprecate the old one.
...
This commit adds a new endpoint 'users/me/onboarding_steps'
deprecating the older 'users/me/hotspots' to mark hotspot as read.
We also renamed the view `mark_hotspot_as_read` to
`mark_onboarding_step_as_read`.
Reason: Our plan is to make this endpoint flexible to support
other types of UI elements not just restricted to hotspots.
2023-12-06 18:19:20 -08:00
Sahil Batra
2968eb2b04
user_groups: Add UI to set and update can_mention_group setting.
...
This commit adds support to set can_mention_group setting
when creating user group and also update the setting for
existing user groups.
2023-11-29 10:58:04 -08:00
Aman Agrawal
1e7b4ae160
recent_view: Add drodown widget to filter topics.
2023-11-22 23:38:52 -08:00
N-Shar-ma
143db56992
polls: Add option for modal to create polls.
...
Earlier the `/poll` slash command was the only way to create polls.
To increase user friendliness with a GUI, a button to launch a modal
to create a poll, has been added to the compose box. This button is
enabled only when the compose box is empty, to avoid complexities with
losing / having to save as draft any message already being composed.
The modal has a form which on submission frames a message using the
`/poll` syntax and the data input in the form, and sets the content of
the compose box to that message, which the user can then send. The
question field is mandatory for form submission.
Fixes : #20304 .
2023-11-21 21:01:17 -08:00
Anders Kaseorg
1dd386a65a
tippyjs: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-16 17:26:54 -08:00
Aman Agrawal
b516ae75db
upgrade: Remove tests temporarily as they need to be rewritten.
2023-11-13 10:35:39 -08:00
Aman Agrawal
ff5e1c3aee
sponsorsihp: Make submitting the form work.
...
Includes various changes to make submitting the sponsorship form work.
2023-11-06 14:55:14 -08:00
Anders Kaseorg
b3fa7b15fc
compose_state: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-02 14:06:04 -07:00
Anders Kaseorg
a0656a6c56
inbox_util: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-02 08:36:44 -07:00
Anders Kaseorg
519a2af2a4
stream_color: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-02 08:36:44 -07:00
Anders Kaseorg
341ba92f23
stream_settings_api: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-02 08:36:44 -07:00