zulip/web
palashb01 4e786293ae user_profile: Add the subscribe widget to user profile.
This commit adds a subscription widget to the user profile,
including the logic to prevent non-admin users from seeing the
subscription widget of other users. Additionally, as it is not
possible to subscribe generic bots to streams, and the user should
not be a deactivated user, we check for these conditions before
displaying the subscription widget.

To ensure that the alert for both subscribing and unsubscribing
appears on top of the subscribe widget, changed the location of
the alert to be displayed at the top.

Additionally, considering that no stream will be initially selected,
we have made the decision to disable the subscribe button. Once the
user selects a stream, we will enable the subscribe button
accordingly.

Changed the add_user_ids_to_stream function inside subscriber_api.js
to support self subscribe also, so that we don't have to duplicate the
logic in user_profile.js

Created a separate file for the subscribe widget called
user_profile_subscribe_widget.hbs.

Fixes: #18883
2023-09-10 11:20:15 -07:00
..
e2e-tests web: Add missing CSS selector escaping. 2023-09-08 15:35:50 -07:00
generated
html
images styles: Remove Firefox override for dropdown appearance. 2023-07-24 13:10:03 -07:00
shared icons: Fix the 'Unmute' topic icon. 2023-08-31 12:02:07 -07:00
src user_profile: Add the subscribe widget to user profile. 2023-09-10 11:20:15 -07:00
styles user_profile: Add the subscribe widget to user profile. 2023-09-10 11:20:15 -07:00
templates user_profile: Add the subscribe widget to user profile. 2023-09-10 11:20:15 -07:00
tests left_sidebar_navigation_area: Rename narrow_to_recent_topics. 2023-09-09 18:51:01 -07:00
third emoji: Match emoji sequences in markdown. 2023-08-23 16:18:15 -07:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore
babel.config.js babel: Include "transform-optional-chaining" in presets. 2023-08-14 16:07:16 -07:00
debug-require-webpack-plugin.ts
debug-require.js
postcss.config.js postcss: Enable postcss-preset-env. 2023-03-20 11:26:30 -07:00
webpack.assets.json stats: Add stats page_params to webpack.assets.json. 2023-08-24 10:43:38 -07:00
webpack.config.ts dependencies: Upgrade JavaScript dependencies. 2023-06-05 21:51:26 -07:00
webpack.dev-assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00