Lalit Kumar Singh
dcf45da09c
ts: Migrate `user_status` module to TypeScript.
...
Also removed an defensive if check from `emoji.ts` since it is not
needed now that we have `emoji.ts` converted to TypeScript.
2023-10-30 11:10:47 -07:00
Aman Agrawal
8f716cd64a
help_menu: Extract help items from gear menu into a separate popover.
...
Fixes #27202
2023-10-23 14:15:13 -07:00
Aman Agrawal
2b9dc1f398
hotkey: Avoid inconsistent hotkey handling.
...
Pressing `r` to open compose box, or search via hotkey didn't work
for gear menu while it worked for other popovers. So, this is an
attempt to unify that behavior so that if the hotkeys are not
handles the navbar_menus popovers, then can be handled elsewhere.
2023-10-23 14:15:13 -07:00
Junyao Chen
23d34ca457
ts: Migrate `poll_widget.js` to TypeScript.
...
Added type annotations.
2023-10-23 09:33:47 -07:00
Karl Stolley
4dd1bf7e32
left_sidebar: Expand and condense the VIEWS navigation.
2023-10-20 12:27:19 -07:00
Aman Agrawal
a5e60f47b6
gear_menu: Move from TS to normal JS module.
...
Need to convert gear menu to popover.
2023-10-18 22:02:38 -07:00
Anders Kaseorg
d8dcec6853
user_deactivation_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-16 13:06:54 -07:00
Anders Kaseorg
94934f49f9
webpack_public_path: Replace with webpack 5 publicPath: "auto" setting.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-16 10:36:27 -07:00
Hardik Dharmani
49f7f02a0a
personal_menu: Add tippy personal_menu dropdown.
...
Add a personal menu dropdown that opens on clicking user avatar icon
in navbar added in previous commit.
The args passed to render_personal_menu() in onShow() are returned by
get_personal_menu_content_context() in popover_menus_data.js so that
they can be unit tested.
Additionally, added CSS to get a custom arrow for dropdown menu.
Added a `?` hotkey in keyboard shortcuts option in personal_menu
dropdown in a style similar to our tooltip's hotkey by adding
? in a span with class .tooltip-hotkey-hint and adding some CSS.
Fixes part of #22802 .
2023-10-12 15:31:01 -07:00
evykassirer
77fc836edf
stream_id: Replace empty string with undefined.
...
This commit also limits `stream_bar.decorate` to only
be able to be called for stream messages, since it's
an undefined string_id is no longer a sign that
you're dealing with a DM.
2023-10-12 11:03:49 -07:00
Anders Kaseorg
82e4250592
electron_bridge: Declare Zulip Desktop binding types.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-12 09:28:47 -07:00
Joelute
2cbf65b1f2
scheduled_messages: Indicate scheduled messages in conversation views.
...
These changes adds a new scheduled message indicator in conversation views
which informs the user of the number of messages that are scheduled to be
sent to the current view.
Fixes : #25584 .
2023-10-11 17:53:07 -07:00
Anders Kaseorg
cac5778e70
stream_edit_toggler: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-10 18:26:57 -07:00
Anders Kaseorg
820dcc50a0
sent_messages: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-10 17:18:37 -07:00
Anders Kaseorg
2163cb7770
popovers: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-10 16:50:48 -07:00
Anders Kaseorg
0006f4a90c
audible_notifications: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-10 16:50:07 -07:00
Aman Agrawal
577a384845
overlays: Extract modal methods in separate file.
2023-10-10 16:43:57 -07:00
Aman Agrawal
63c1c9a37a
overlays: Extract enable / disable scrolling to a util module.
2023-10-10 16:43:57 -07:00
Anders Kaseorg
325b308ed5
about_zulip: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-10 13:20:31 -07:00
Anders Kaseorg
881da05cd3
stream_settings_ui: Extract stream_settings_components module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-10 12:09:15 -07:00
Anders Kaseorg
1d43a4cccb
stream_edit: Extract toggler to new stream_edit_toggler module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-09 23:19:59 -07:00
Anders Kaseorg
3cac29a8e1
settings_org: Extract settings_components module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-09 17:26:49 -07:00
Anders Kaseorg
5327bcc5ac
user_group_settings_ui: Merge into user_group_edit.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-09 10:58:50 -07:00
Anders Kaseorg
27991bd5b0
topic_zoom: Merge into stream_list.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 19:43:55 -07:00
Anders Kaseorg
564e91f3a8
narrow: Cut import of hashchange.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 19:41:59 -07:00
Anders Kaseorg
ba1895cb1c
notifications: Rename to desktop_notifications.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 16:22:40 -07:00
Anders Kaseorg
fcaf1fe7d5
notifications: Split out audible_notifications module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 16:22:40 -07:00
Anders Kaseorg
6ef08873d8
notifications: Split out compose_notifications module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 16:22:40 -07:00
Anders Kaseorg
db20fd12e0
notifications: Split out message_notifications module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 16:22:40 -07:00
Anders Kaseorg
971a003180
compose_actions: Extract compose_reply module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 09:07:43 -07:00
Anders Kaseorg
9c70f92514
reload: Move initialize to new reload_setup module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 08:34:39 -07:00
Anders Kaseorg
c4d338a6ab
drafts: Extract drafts_overlay_ui module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-06 08:30:31 -07:00
Anders Kaseorg
d5064fc7b2
narrow: Extract narrow_title module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 16:26:45 -07:00
Anders Kaseorg
e8a2a5ce36
compose: Move initialize to new compose_setup module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 14:42:19 -07:00
Anders Kaseorg
6e725f0d17
compose: Move call link insertion to new compose_call_ui module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 14:42:19 -07:00
Anders Kaseorg
ac8436d46c
resize: Move handler to new resize_handler module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 09:26:59 -07:00
Anders Kaseorg
b4878d4f0b
stream_edit: Move set_stream_property to new stream_settings_api module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 13:04:50 -07:00
Anders Kaseorg
ac38aaad21
scheduled_messages: Move UI to new scheduled_messages_ui module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 17:56:43 -07:00
Anders Kaseorg
d4a93aa05a
popover_menus: Extract compose_popovers module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 11:58:29 -07:00
Anders Kaseorg
d01db0f5a0
popover_menus: Extract left_sidebar_navigation_area_popovers module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 11:58:29 -07:00
Anders Kaseorg
dd6676f16e
popover_menus: Extract user_topic_popover menus.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 11:58:29 -07:00
Anders Kaseorg
825fb8cef5
popover_menus: Extract topic_popover module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 11:58:29 -07:00
Anders Kaseorg
16e2a32c4c
popover_menus: Extract message_actions_popover module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 11:58:29 -07:00
Anders Kaseorg
26e34a163e
popover_menus: Extract scheduled_messages_popover module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 11:58:22 -07:00
Eeshan Garg
f3465dea08
demo-orgs: Add UI for converting to permanent organization.
...
Adds warning banner to the organization settings overlay/tabs
for demo organizations. For owners, clicking on the link in the
banner opens a modal to convert the demo organization into a
permanent organization.
For admins that are not owners, clicking on the link will go
to the help center article on demo organizations.
Non-admin users will not see the warning banner.
The modal for converting a demo organization requires the owner
to have set their email address. Once the owner's email address
is set, then the organization can be made permanent by changing
the subdomain of the organization. The deletion date for the
demo organization will be removed as part of updating the
subdomain.
The organization owner must also have updated the organization
type to be any value other than unsepecified to convert the
demo organization to a permanent organization. The modal's
submit button will be disabled if that is the value for the
organization type in the form. The demo organizations created
in the dev environment now have their organization type set to
unspecified on creation.
This is a part of #19523 .
Co-authored by: Lauryn Menard <lauryn@zulip.com>
2023-10-03 09:11:41 -07:00
Anders Kaseorg
5efbece30a
stream_color: Extract update_stream_color to new module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:15:21 -07:00
Anders Kaseorg
0efd9f7bdd
settings_users: Extract user sort comparators to new user_sort module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:14:51 -07:00
Anders Kaseorg
30ae936793
settings_invites: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:14:11 -07:00
Tim Abbott
7a97ceab86
popovers: Extract add_stream_options_popover.js.
2023-10-02 19:17:08 -07:00
Anders Kaseorg
91e656398d
settings_muted_users: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 19:15:03 -07:00
Anders Kaseorg
c5c5b18ab4
settings_exports: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:49:36 -07:00
Anders Kaseorg
e459b83c06
pm_list_dom: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:48:39 -07:00
Anders Kaseorg
819a91aec7
alert_words_ui: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:46:22 -07:00
Anders Kaseorg
457544e0d2
message_scroll: Move state flags to new module message_scroll_state.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:37:56 -07:00
Anders Kaseorg
919381e5e7
copied_tooltip: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 15:36:23 -07:00
Hardik Dharmani
bae28dfe64
message_list_hover: Extract module for hover/unhover logic.
...
Remove the various message-hover related functions from ui_init.js and
put them in a new module.
2023-09-28 18:07:26 -07:00
Aman Agrawal
820b564072
right_sidebar_ui: Rename to sidebar_ui.
2023-09-28 08:41:03 -07:00
Sahil Batra
1de3a9f4a3
bots: Extract code for showing integration url modal in new file.
...
This commit creates a new file integration_url_modal.js which
now contains the code for showing integration url modal.
Since show_generate_integration_url_modal is used in multiple
places, this change helps us in avoiding import cycles.
2023-09-26 09:15:20 -07:00
Sahil Batra
f3c17b8d4f
users: Extract code for showing deactivation modal in new file.
...
This commit creates a new file user_deactivation_ui.js which
now contains the code for showing deactivation modal for user
and bots.
Since confirm_deactivation and confirm_bot_deactivation functions
are used in multiple places, this change helps us in avoiding
import cycles.
2023-09-26 09:15:20 -07:00
Aman Agrawal
e0ff125116
views: Write a common show and hide function.
...
Fixes #26688
2023-09-25 13:16:25 -07:00
Sahil Batra
c7cbdd3741
custom_fields: Extract some code in custom_profile_fields_ui.js.
...
This commit moves initialize_custom_pronouns_type_fields,
initialize_custom_user_type_fields, initialize_custom_date_type_fields
and append_custom_profile_fields functions to the new file
custom_profile_fields_ui.js from settings_account.js since
they are used for both showing custom profile fields in
"Profile" settings panel and "Edit user" form shown in
user profile modal. This change also helps us in avoiding
import cycles.
2023-09-25 13:14:49 -07:00
Tim Abbott
c379d0bad6
right_sidebar_ui: Extract new module.
...
This UI is not actually a popover, and so there is no need for it to
live in popovers.js.
2023-09-25 06:29:47 -07:00
Aman Agrawal
bdf6b210b8
copied_tooltip: Remove tippyjs import cycle by extracting it.
...
Moving show_copied_confirmation to a new library breaks the
dependency cycle of popover_menus and tippyjs.
2023-09-24 15:16:27 -07:00
Anders Kaseorg
d6884399b2
invite: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-22 17:10:51 -07:00
Anders Kaseorg
35568ec4d6
flatpickr: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-09-22 17:08:17 -07:00
YashRE42
cb04ae1f95
search: Redesign search box.
...
Fixes #21798 .
2023-09-21 08:58:31 -07:00
Daniil Fadeev
d96110590b
playground_links: Migrate popover to Tippy.
...
Fixes part of #23632 .
2023-09-15 12:25:26 -07:00
Daniil Fadeev
c5f6c00a81
popovers: Extract user info popovers into their own module.
...
The intent behind this commit is to tidy up how we handle user info
popovers. The first step is to move everything related to them into
its own module. This commit should not have any functional changes.
2023-09-13 11:49:08 -07:00
Aman Agrawal
6ef0753a51
inbox: Add new narrow.
2023-09-12 09:20:33 -07:00
Lalit Kumar Singh
5f74b9051e
ts: Migrate `user_topics.js` to typescript.
2023-09-11 10:57:38 -07:00
Daniil Fadeev
7777c55b22
popovers: Extract `user_group_popover` into separate module.
...
This is a preparatory commit before we migrate `user_group_popover`
from Bootstrap to Tippy library.
The previous implementation was weirdly sharing the logic around
`current_message_info_popover_elem` with the user info popovers based
on a message; very likely an unfortunate latent bug caused by
copy/paste.
To address that, we need to add dedicated functions like
get_user_group_popover_items to avoid breaking keyboard navigation
with this extraction.
2023-09-11 10:26:50 -07:00
Lalit Kumar Singh
c47a18eb2b
ts: Migrate `realm_logo` to TypeScript.
2023-09-09 18:30:43 -07:00
Lalit Kumar Singh
b8e0850aa1
ts: Migrate `realm_icon` to TypeScript.
2023-09-09 18:30:43 -07:00
Aman Agrawal
1305fe74b6
test-js-with-node: Remove deleted dropdown-list-widget module.
...
Fixes #25741
2023-09-09 18:22:25 -07:00
Lalit Kumar Singh
affdffdda5
ts: Migrate `settings_emoji.js` to TypeScript.
2023-09-08 13:09:34 -07:00
Lalit Kumar Singh
5c2ba6c8fa
ts: Migrate `avatar.js` module to TypeScript.
2023-09-08 13:09:12 -07:00
evykassirer
3c16541eb4
recent: Rename recent_topics_util.
2023-09-08 07:36:33 -07:00
evykassirer
f8db06569f
recent: Rename recent_topics_ui.
2023-09-08 07:36:33 -07:00
Lalit Kumar Singh
9a6f7f0ead
ts: Migrate `attachments_ui.js` to typescript.
2023-09-07 17:54:48 -07:00
evykassirer
78f0dca269
narrow: Save blue box position and restore on navigation.
...
This saves the blue box position as state on the location
in brower history, with `history.replaceState`.
The position is restored when a narrow is activated.
Fixes #20066 .
2023-08-23 13:40:26 -07:00
Junyao Chen
983c6b74ab
ts: Migrate `user_group_create_members_data.js` to TypeScript.
2023-08-17 11:38:13 -07:00
Junyao Chen
6757c5a9f8
stats: Install @types/plotly.js for type check.
...
This is a prep commit for typescript migration for `stats.js`,
which used a third party module `plotly.js` that doesn't come
with types.
2023-08-17 11:35:00 -07:00
Junyao Chen
446aea41b3
ts: Migrate `settings_ui.js` to TypeScript.
2023-08-15 17:17:40 -07:00
Lalit Kumar Singh
a0cb034731
ts: Migrate `spectators.js` to typescript.
2023-08-15 09:58:17 -07:00
Lalit Kumar Singh
9b01872e8c
ts: Migrate `hash_util.js` module to TypeScript.
2023-08-15 09:58:17 -07:00
Lalit
829caae189
ts: Migrate `realm_playground` to typescript.
2023-07-24 12:49:53 -07:00
Prakhar Pratyush
32b201d5e0
user_topics: Rename 'muted_topics_ui' to 'user_topics_ui'.
...
This commit renames the file 'muted_topics_ui.js' to
'user_topics_ui.js', as we also support visibility policies
other than MUTED.
2023-07-17 17:39:17 -07:00
AcKindle3
1aeab40779
ts: Convert `stream_settings_containers.js` to TypeScript.
...
Added assertion to enforce `sub` is not `undefined` and thus type
safe for the rest.
Added type annotation to function parameter and return value.
2023-07-17 17:24:15 -07:00
Lalit
c0c4c2e1e7
ts: Migrate `message_overlay_ui` to TypeScript.
2023-07-17 16:24:16 -07:00
Lalit
b51bdd33bb
ts: Migrate `list_widget` to TypeScript.
2023-07-17 11:31:51 -07:00
xoldyckk
a062a82f06
ts: Migrate setup.js to typescript.
...
Also added global type definition for `get_offset_to_window`
helper function.
2023-07-10 13:49:26 -07:00
Lalit
ae6063807b
ts: Convert `poll_data` to typescript.
...
Used zod schemas to validate inbound data types and removed some over
defensive code.
2023-07-06 16:21:52 -07:00
Lalit
13187ff8f6
ts: Convert `web/src/billing` module to TypeScript.
...
Converted all files inside `web/src/billing` to TypeScript.
2023-06-23 11:42:29 -07:00
Lalit
5744ed32e2
tippyjs: Extract compose_tooltips.js module.
2023-06-08 16:20:59 -07:00
Tim Abbott
e7c012c850
tippyjs: Extract message_list_tooltips module.
2023-06-08 16:20:59 -07:00
evykassirer
aa270bcef0
search: Remove support for experimental search pills.
...
This in-progress feature was started in 2018 and hasn't
been worked on much since. It's already in a broken state,
which makes it hard to iterate on the existing search bar
since it's hard to know how those changes will affect search
pills.
We do still want to add search pills eventually, and when
we work on that, we can refer to this diff to readd the
changes back.
2023-06-06 18:36:02 -07:00
Tim Abbott
713a64d415
message_scroll: Extract module message_feed_top_notices.
2023-06-05 21:57:35 -07:00
Lalit
38dd1de5b2
ts: Convert `compose_textarea.js` to TypeScript.
...
Added type definitions for `jquery-caret-plugin` third party package and
converted `compose_textarea.js` to TypeScript.
2023-05-25 17:33:18 -07:00
Lalit
7346ce98f3
ts: Convert `emojisets` to TypeScript.
...
Declared types for '*.png' modules and '!style-loader?*' modules in
`assets.d.ts` and used them in `emojisets.ts`.
2023-05-22 09:02:42 -07:00
Lalit
a2db6df826
ts: Convert `deprecated_feature_notice` module to TypeScript.
2023-05-18 08:52:26 -07:00