Aman Agrawal
8291883739
ui_init: Initialize add stream options popover.
...
I forgot to check it :3.
2023-10-03 08:17:31 -07:00
Aman Agrawal
30152f77a9
settings_org: Change text for inaccessible announcement stream.
2023-10-03 08:17:31 -07:00
Aman Agrawal
d3588c7559
activity: Hide right sidebar when narrowing to a user via enter press.
...
Fixes #26989
2023-10-03 08:17:06 -07:00
Aman Agrawal
35b854131e
stream_list: Hide popovers when activating narrows on enter press.
2023-10-03 08:17:06 -07:00
Anders Kaseorg
ad7d908069
user_group_ui_updates: Merge into user_group_edit module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:16:09 -07:00
Anders Kaseorg
46be4d230c
user_group_create: Move create_user_group_clicked.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:16:09 -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
Anders Kaseorg
15de51d727
settings_invites: Remove pointless global state from do_resend_invite.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:14:11 -07:00
Anders Kaseorg
f8d42a6789
settings_invites: Remove pointless global state from do_revoke_invite.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 08:14:11 -07:00
Chris Bobbe
ad7dcc7d83
api docs: Use enum for reaction_type.
...
It's not currently rendered in the docs, but good to have this in
place anyway:
https://github.com/zulip/zulip/pull/21005#discussion_r797823366
2023-10-03 08:13:07 -07:00
Aman Agrawal
9042cd989b
base: Play videos in new tab instead of downloading them.
...
We add `Content-Disposition: inline` header to commonly supported
video MIME types so that when we `Open` them in lightbox, they
play in new tab.
This will require a follow-up database migration to apply to
previously uploaded videos.
2023-10-02 22:39:39 -07:00
Aman Agrawal
0b5e45d1a7
lightbox: Validate urls before before using them.
2023-10-02 22:39:02 -07:00
Aman Agrawal
b443916da1
lightbox: Replace image with media.
...
Since lightbox can also play videos now, replace image with media.
2023-10-02 22:39:02 -07:00
Aman Agrawal
3a507b5752
lightbox: Add support for playing video.
2023-10-02 22:39:02 -07:00
Aman Agrawal
6fb7a64cd0
rendered_markdown: Fix video thumbnail not present in Safari.
2023-10-02 22:39:02 -07:00
Aman Agrawal
8ef52d55d3
markdown: Add support for inline video thumbnails.
2023-10-02 22:39:02 -07:00
Tim Abbott
cb1de9092d
bootstrap: Remove now-unused carousel plugin.
2023-10-02 22:30:03 -07:00
Tim Abbott
72942c6bb9
portico: Delete now-unused tour,carousel,testimonials CSS.
...
These components were removed with the /hello redesign.
2023-10-02 22:30:03 -07:00
Aman Agrawal
75a1a74adf
hello: Redesign page.
...
Fixes #24082
2023-10-02 22:30:03 -07:00
Tim Abbott
7a97ceab86
popovers: Extract add_stream_options_popover.js.
2023-10-02 19:17:08 -07:00
Tim Abbott
56f7319d51
message_lists: Fix import cycle from how home is initialized.
2023-10-02 19:17:08 -07:00
Aman Agrawal
af170a82f6
popovers: Simplify any_active.
...
Remove unused functions along with it.
2023-10-02 19:17:08 -07:00
Aman Agrawal
1d62abee61
popovers: Simplify hide_all.
...
Since we only have tippy popovers now, functions calling
not_hide_tippy_instances have been removed.
Also, all of emoji_picker, stream_popover, user_card etc popovers
are tippy popovers so calling hideAll is enough to hide them all.
2023-10-02 19:17:08 -07:00
Aman Agrawal
e957603fb9
sidebar_ui: Hide sidebars when user clicks outside them.
2023-10-02 19:17:08 -07:00
Aman Agrawal
1a8320dc8e
sidebar_ui: Track sidebar's expanded state using variable.
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
evykassirer
e578773ac9
compose: Update recipient placeholder when topic input changes.
2023-10-02 17:50:30 -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
961c7185ab
vdom: Fix types.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:48:39 -07:00
Anders Kaseorg
fcd8395eb5
bulleted_numbered_list_util: Convert module to TypeScript.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:46:56 -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
N-Shar-ma
681180ee86
compose: Migrate `empty_topic_placeholder` to `compose_state`.
...
This makes it so that `drafts.js` now no longer imports `compose.js`.
2023-10-02 17:45:27 -07:00
Tim Abbott
e87b9955c9
compose: Simplify drafts interface for message content.
...
Previously, we had logic to update the compose box state living in the
drafts module, for no particularly good reason.
2023-10-02 17:45:27 -07:00
Sahil Singh
7ecb63c332
drafts: Pass draft_id to compose_actions.start as part of compose_args.
...
This will allow us to remove some duplicated compose box code that was
previously inside restore_draft.
Co-authored-by: N-Shar-ma <bablinaneh@gmail.com>
2023-10-02 17:45:27 -07:00
Anders Kaseorg
67f2bc030f
ui_init: Move update_invite_user_option to sidebar_ui.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 17:37:56 -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
73507ee2ae
inbox_util: Move is_in_focus to inbox_ui.
...
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
Anders Kaseorg
6e0f9df188
copied_tooltip: Remove incorrect $ prefix from non-jQuery variable.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-02 15:36:23 -07:00
Satyam Bansal
8b7a650370
integration-url: Disable "Copy URL" button when topic input is empty.
...
Fixes #26797 .
2023-10-02 12:29:42 -07:00
Satyam Bansal
51e2030f7b
integration-url: Migrate integration typeahead to dropdown widget.
...
Fixes part of #26797 .
2023-10-02 12:29:42 -07:00
Satyam Bansal
1e2f6a06a9
events: Exclude legacy integrations from realm_incoming_webhook_bots.
...
This excludes the legacy webhook from the
"realm_incoming_webhook_bots" object as those do not have the same URL
format as modern webhook integrations.
2023-10-02 12:29:28 -07:00
Satyam Bansal
02bc17e5dc
api-docs: Minor grammar fix.
2023-10-02 12:26:44 -07:00
Satyam Bansal
66e3a68acb
integration-url: Rename stream dropdown item click callback.
...
This is a prep commit to migrate integration input to dropdown
widget.
2023-10-02 12:26:43 -07:00
Aman Agrawal
4c57b3f289
popover_menus: Set correct instance as undefined.
...
This caused a bug where input keys were not working since
`compose_mobile_button` was always set.
2023-10-02 12:07:05 -07:00
evykassirer
605c4688b1
buddy list: Show self in search results.
...
We should search for what the user asked us to search for.
CZO conversation:
https://chat.zulip.org/#narrow/stream/101-design/topic/search.20buddy.20list.20for.20self/near/1630454
This commit also stops the user from being at the top of
the search list, so that the search list is fully
alphabetical (though still sorted by online status).
We switch to not having the user at the top of the list
only when there's search text in the search bar, otherwise
there'd be a visual jump that would happen just by opening
the search bar. There's almost always visual change when
entering text into the search input field, so that seems
like the time to change the sorting.
2023-10-02 12:05:42 -07:00
Karl Stolley
35e4be0b68
message_grid: Properly align elements in media-only messages.
2023-10-02 09:20:10 -07:00