Tim Abbott
20b2323c67
left_sidebar: Deduplicate handle_narrow_deactivated.
...
handle_narrow_activated did the same thing is passed the home_msg_list
filter.
2023-10-05 10:31:23 -07:00
Tim Abbott
246139e1d0
narrow: Extract handle_post_view_change.
2023-10-05 10:31:23 -07:00
Tim Abbott
62fe1dcad1
narrow: Simplify compute_narrow_title for All messages.
...
filter.get_title() already returns "All messages" for the filter we
now pass in, which is the "in:home" operator defined by that view.
2023-10-05 10:31:23 -07:00
Tim Abbott
4465262bcb
narrow: Pass a msg_list to handle_post_narrow_deactivate_processes.
2023-10-05 10:31:23 -07:00
Tim Abbott
ab15462669
hashchange: Remove duplicate handle_narrow_deactivated call.
...
narrow.deactivate calls this directly.
2023-10-05 10:31:23 -07:00
Sahil Batra
f88715cb2c
signup: Use portico_modals module to handle modal on signup page.
...
This does not results in any behavioral or UI change, we just
use portico_modals module to open and close the modal instead
of directly calling functions like Micromodal.open and
Micromodal.close. This change also solves a bug where the
modal was not closed previously on clicking anywhere outside
the modal.
2023-10-05 09:28:27 -07:00
Sahil Batra
2df26f3d27
bootstrap-btn: Remove bootstrap CSS for ".btn-success" elements.
...
We used "btn-success" class only in user profile modal subscribe
widget and the CSS rules applied by bootstrap on this class were
overridden by other CSS. We also remove the btn-success class
since this is a bootstrap-specific class and we no longer
need it.
2023-10-05 09:28:27 -07:00
Sahil Batra
cfc9dccb2a
bootstrap-btn: Remove bootstrap CSS for ".btn-primary" elements.
...
We used "btn-primary" class only in integrations dev panel page
and this commit re-adds the CSS applied by this class in
integrations_dev_panel.css. We also remove the btn-primary class
since this is a bootstrap-specific class and we no longer
need it.
2023-10-05 09:28:27 -07:00
Sahil Batra
cc4a6d08e7
development: Update modal in emails page to use micromodal.
...
We now use micromodal in the modal on dev server emails page to
make it consistent with other modals in the app and this is
preparatory work for moving away from bootstrap as well.
2023-10-05 09:28:27 -07:00
Sahil Batra
8710feb5dd
billing: Update modal shown on license increase to use micromodal.
...
We now use micromodal in the license update modal on billing page
to make it consistent with other modals in the app and this is
preparatory work for moving away from bootstrap as well.
2023-10-05 09:28:27 -07:00
Sahil Batra
866b6cd632
portico: Add portico_modals.ts module.
...
This commit adds portico_modals.ts module which contains functions
for supporting modals in portico pages. The new module basically
contains code from functions in overlays.ts without the code
that is not needed currently for modals in portico pages.
2023-10-05 09:28:27 -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
Aman Agrawal
c2c1f1ac6d
inbox: Add icon in search box to clear any text.
2023-10-05 08:57:44 -07:00
Aman Agrawal
b494424ffa
inbox: Change hover / focus styles of search box.
...
This is to make search box less noticeable when focus is given / taken
away from it.
2023-10-05 08:57:44 -07:00
Aman Agrawal
5142f1279a
popovers: Refactor show popovers as overlay on mobile widths.
...
This also fixes user_card_popover not being displayed as overlay
on mobile widths.
2023-10-05 08:29:12 -07:00
Anders Kaseorg
13d1241eed
activity: Extract new activity_ui module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 08:27:30 -07:00
Anders Kaseorg
69ceff4995
settings_notifications: Cut import of stream_edit.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 08:22:56 -07:00
Anders Kaseorg
4ec78ee2d4
compose_recipient: Move selected_recipient_id to compose_state.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-05 08:21:33 -07:00
Aman Agrawal
75826d8409
handlebars: Move popover handlebars to a new popovers folder.
...
Organize related handlebars in a new folder together.
2023-10-05 08:19:49 -07:00
Aman Agrawal
95ee178d1a
user_card_popover_content: Rename to remove `_content`.
2023-10-05 08:19:49 -07:00
Aman Agrawal
a6f864a9a4
user_card_popover: Rename function name to avoid conflict.
...
This function name would have conflicted with
`render_user_card_popover_content` variable name once
we remove `_content` from it.
2023-10-05 08:19:49 -07:00
Aman Agrawal
3415a6898c
user_card_popover: Rename `_title` suffix to `_avatar`.
2023-10-05 08:19:49 -07:00
Aman Agrawal
78543a7f12
emoji_picker: Merge templates.
...
Merge `emoji_popover.hbs` and `emoji_popover_content.hbs`.
2023-10-05 08:19:49 -07:00
Aman Agrawal
54233f0363
playground_links_popover: Rename to remove `_content`.
2023-10-05 08:19:49 -07:00
Aman Agrawal
ecba66e613
compose_popovers: Rename to remove `_content`.
2023-10-05 08:19:49 -07:00
Aman Agrawal
acd584c336
actions_popover: Rename template to remove `_content`.
2023-10-05 08:19:49 -07:00
Anders Kaseorg
4c11f49627
settings_notifications: Fix stream_settings_api namespace import name.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 23:57:16 -07:00
Anders Kaseorg
eb6ac7bd98
settings_ui: Fix type and $ prefix of status_element argument.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 23:51:50 -07:00
Aman Agrawal
2ed1465b04
css: Display status emoji along with overflowing sender names.
...
Even if sender name overflows the available space, we should
show status emoji along with sender name by hiding the overflowing
part of sender name.
2023-10-04 16:49:39 -07:00
Anders Kaseorg
8d217847db
stream_edit: Move can_remove_subscribers_group_widget to settings_org.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 16:35:24 -07:00
Anders Kaseorg
278bd52b4e
stream_edit: Move get_request_data_for_stream_privacy to settings_data.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 16:35:24 -07:00
Anders Kaseorg
d17c0dabc8
stream_data: Move stream_*_policy_values to settings_config.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 16:35:24 -07:00
Anders Kaseorg
0f0fd3f07d
tests: Remove sub_store mock from recent_view test.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 16:35:24 -07:00
evykassirer
083062cd11
search: Don't "initiate search" if it's already open.
...
(or if you're using a hotkey, since then we should select
the searchbar)
Reported here:
https://chat.zulip.org/#narrow/stream/9-issues/topic/search.20bar.3A.20selection.20jumping.20to.20whole.20query/near/1652562
2023-10-04 16:32:19 -07:00
Aman Agrawal
2ec8273c6e
left_sidebar: Move all messages popover to inbox.
...
Also, renamed files and variables as needed.
2023-10-04 13:10:08 -07:00
Aman Agrawal
dd1e06886c
popover_menus: Remove unused class added to popover.
2023-10-04 13:10:08 -07:00
Aman Agrawal
4f881ee058
left_sidebar: Move unread count from all messages to inbox.
2023-10-04 13:10:08 -07:00
Aman Agrawal
af03b9dd06
left_sidebar: Move `All messages` below `Recent view`.
2023-10-04 13:10:08 -07:00
Aman Agrawal
7da0e09d0a
left_sidebar: Remove old comment.
...
Not sure what this means so removed.
2023-10-04 13:10:08 -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
Prakhar Pratyush
28fb5ea24d
settings: Add UI for automatically follow and unmute topics settings.
...
This commit adds two drop-down settings in 'SETTINGS / NOTIFICATIONS'
and 'SETTINGS / DEFAULT USER SETTINGS'.
The new settings lie in a new section named "Topic notifications",
just below the "Noification triggers" section.
Label: "Automatically follow topics"
Options: "Topics I participate in", "Topics I send a message to",
"Topics I start", and "Never".
Label: "Automatically unmute topics in muted streams"
Options: "Topics I participate in", "Topics I send a message to",
"Topics I start", and "Never".
Fixes #25914 .
2023-10-04 13:04:29 -07:00
N-Shar-ma
46b2d6d06a
compose: Remove redundant code from scheduled_messages_ui.js.
...
We remove redundant code when editing a scheduled message in the compose
box, for resetting the compose box, as it anyway gets reset on calling
`compose_actions.start()`.
Besides ending `scheduled_messages_ui.js`'s dependency on `compose.js`
and `compose_ui.js`, this also fixes the bug where on editing a
scheduled message when there was content in the compose box, it would be
irretrievably lost. The old content is now drafted.
2023-10-04 12:54:36 -07:00
Anders Kaseorg
91f81d3962
flatpickr: Fix Tab key handler for 24-hour time.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-04 12:03:10 -07:00
Anders Kaseorg
c98622c63a
compose: Extract compose_call module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 18:41:42 -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
c7927569bc
scheduled_messages_popover: Move selected_send_later_timestamp.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 17:56:43 -07:00
Anders Kaseorg
b50e500dae
scheduled_messages: Move update_send_later_options.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 17:56:43 -07:00
Anders Kaseorg
3e4def9c88
narrow: Don’t swallow errors in narrow.activate.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 14:52:07 -07:00
Anders Kaseorg
549bae5176
message_edit: Move get_upload_object_from_row to upload module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 14:50:02 -07:00
Anders Kaseorg
fb19476c4e
compose: Move uppy to upload module.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-03 14:50:02 -07:00