zulip/web
palashb01 047bffe257 compose_box: Convert dynamic closed compose box tooltips to tippyjs.
This commit converts the dynamic closed_compose_box
tooltip to template-based tippy.js tooltips. The functions in
the compose_closed_ui.js file are refactored to dynamically change
the 'data-tooltip-template-id' attribute according to the situation.

The title parameter is removed from the functions in
compose_closed_ui.js so that we can change the tooltip within the
caller functions themselves, according to the situation. Since there
is no way to match the title in existing functions with different
languages to change the tooltip attribute dynamically, it is better
to change the tooltip attribute within the caller function according
to the situation, rather than passing the title as a parameter.

In the case of the reply button, we disable it when direct messages
are not allowed. However, tippy.js tooltips do not appear in the
case of disabled elements, so we have to use the container element
around it to show the tooltip. This approach is used in the case of
the reply button, where the span element wraps the button.

We used to have two titles for the reply button: one is the usual
'Reply to selected message', and the other is for the disabled state.
However, in the case of recent conversations, it makes more sense
to have a new tooltip title: 'Reply to selected conversation'.

To ensure that the tooltip content changes dynamically, it is
required to destroy the tooltip instance and then reinitialize it
every time.

Fixes: #25096
2023-04-24 11:45:56 -07:00
..
e2e-tests compose: Change stream field in composebox to be a dropdown. 2023-04-20 16:09:55 -07:00
generated web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
html web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
images navbar: Add Ionic search icon and use for navbar search. 2023-03-24 16:30:15 -07:00
shared icons: Change bot icon from GitHub logo to Google material icon. 2023-04-13 10:47:09 -07:00
src compose_box: Convert dynamic closed compose box tooltips to tippyjs. 2023-04-24 11:45:56 -07:00
styles left_sidebar: Show unread_mention in regular font if in unmuted topic. 2023-04-24 11:41:21 -07:00
templates compose_box: Convert dynamic closed compose box tooltips to tippyjs. 2023-04-24 11:45:56 -07:00
tests compose_box: Convert dynamic closed compose box tooltips to tippyjs. 2023-04-24 11:45:56 -07:00
third bootstrap: Move progress bar styling out of bootstrap CSS. 2023-04-05 15:47:14 -07:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
babel.config.js dependencies: Upgrade JavaScript dependencies. 2023-03-20 15:48:29 -07:00
debug-require-webpack-plugin.ts web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
debug-require.js web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
postcss.config.js postcss: Enable postcss-preset-env. 2023-03-20 11:26:30 -07:00
webpack.assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
webpack.config.ts eslint: Fix @typescript-eslint/prefer-nullish-coalescing. 2023-04-19 16:52:39 -07:00
webpack.dev-assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00