zulip/web/tests/lib
apoorvapendse 0b12c51771 compose: Add tooltip support for invalid messages.
This commit adds tooltip support for various
invalid conditions mentioned in issue 32115.

A `show_banner` positional argument is added
in the `validate` method which has a default
value of true.

The reason behind introducing this is to
not trigger banners on hovering the disabled
send button, since the tooltip message is also
determined using the same validate method.

We want to only disable the button on hover,
which is why the update_send_button_status() method
is called only on "mouseenter" event, which is
added to the send button in compose_setup.js

To incorporate this change a new param is
introduced which determines whether to enable/disable
send_button by running update_send_button_status

Earlier, typing something in the textarea or
recipient box would also trigger
`update_send_button_status` which doesn't
work well since we've introduced a lot of
new booleans which determine whether send
button gets disabled causing send button to
get disabled while typing instead while hovering
Hence this change.
2025-02-23 23:11:18 -08:00
..
buddy_list.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
compose_banner.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
compose_helpers.cjs compose: Add tooltip support for invalid messages. 2025-02-23 23:11:18 -08:00
events.cjs message_edit: Show typing indicator for message editing. 2025-02-12 15:08:56 -08:00
example_settings.cjs stream_data: Use user_has_permission_for_group_setting. 2025-02-18 12:49:05 -08:00
example_stream.cjs streams: Use can_administer_channel_group to administer channel. 2024-12-03 18:38:25 -08:00
example_user.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
handlebars.cjs webpack: Enable explicitPartialContext for handlebars-loader. 2024-11-15 20:41:59 -08:00
i18n.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
index.cjs node test runner: Prevent Handlebars quirks. 2025-01-07 09:43:33 -08:00
markdown_assert.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
mdiff.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
namespace.cjs templates: Convert module to TypeScript. 2024-11-27 13:52:21 -08:00
real_jquery.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
stub.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
test.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
zblueslip.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
zjquery_element.cjs eslint: Fix unicorn/explicit-length-check. (#32666) 2024-12-11 09:19:46 -08:00
zjquery_event.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
zjquery.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
zpage_billing_params.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00
zpage_params.cjs tests: Rename the Node tests to *.cjs. 2024-11-13 09:18:56 -08:00