Commit Graph

144 Commits

Author SHA1 Message Date
Anders Kaseorg
99481eb47c templates: Fix invalid <h4> inside <label>.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Anders Kaseorg
460d63c4dc templates: Fix invalid <th> inside <thead> (missing <tr>).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-10 09:57:56 -07:00
Maneesh Shukla
6787a14d74 tooltips: Use group ID instead of name for tooltip IDs.
Previously, tooltip templates were identified using the
group's name in their `id` attributes.

This change uses the group's ID instead, which is more reliable.
2025-08-15 10:17:30 -07:00
Prakhar Pratyush
9c0777ad26 settings: Add '.highlighted-element' to <b> in stream & group settings.
This commit adds 'highlighted-element' class to <b> tags in
the following parts of the settings panel:
* who can access channel
* user member of a user group because of being part of a subgroup
  already added.

'highlighted-element' class sets the 'font-weight: 600',
replacing the default of 700.
2025-08-05 14:50:56 -07:00
Maneesh Shukla
b0241bfa3c banners: Redesign group info banner.
Fixes part of #34252.
2025-08-01 09:08:30 -07:00
apoorvapendse
33e728e586 user_membership: Use banner template to render messages.
We now resort to using banner template instead
of trying to maintain our own banners
in the stream subscription and user group
membership templates.

Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20User.20add.20success.20banner.20squashed/near/2229035.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:33:20 -07:00
Sahil Batra
34cb0034e1 settings: Handle long names better in susbcribers and members list.
This commit updates the subscribers and group members table CSS to
use fixed layout. This helps in having user pill take the width if
available and we can show more characters.

Previously the width of name in user pill was set to have a max
width of 165px which meant the there was some empty unused space in
the rows especially on narrow screens when email column was hidden.

Fixes #35157.
2025-07-25 11:21:23 -07:00
Tim Abbott
6036dc9812 subscribers: Use _html in content inserted as HTML.
This makes it easier for maintainers to verify that code using `{{{`
is already rendered HTML, intended for insertion into the DOM.
2025-07-18 18:24:57 -07:00
apoorvapendse
0908f0ac30 settings: Include ignored deactivated users in result banner.
This introduces the ignored deactivated user messages
in the channel and user group subscription banners.
Related:
https://chat.zulip.org/#narrow/channel/101-design/topic/New.20channel.2Fgroup.20UX.20changes/near/2215785

Fixes #34347.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:07:38 -07:00
apoorvapendse
aa56623deb user_groups: Improve clarity of subscription result message.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:07:37 -07:00
Apoorva Pendse
eb6676f9b5 settings: Show a tick inside of add button on click.
We want the input field to retain
the same width even when
Add button shrinks, when we
show a check icon.

This solution involves layering
of the check and `Add` button
and toggling visibility.

Karl's coment: https://chat.zulip.org/#narrow/channel/6-frontend/topic/.2334347.20rework.20subscribe.20users.20confirmations/near/2206344.

Related: https://github.com/zulip/zulip/pull/34912#issuecomment-3010269391.

Reference:
https://chat.zulip.org/#narrow/channel/6-frontend/topic/.2334347.20rework.20subscribe.20users.20confirmations/with/2193352.
Co-authored-by: Rajeev Tapadia <108951750+rajeevtapadia@users.noreply.github.com>
Co-authored-by: Maneesh Shukla <shuklamaneesh24@gmail.com>
Co-authored-by: Karl Stolley <karl@zulip.com>
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-18 18:04:57 -07:00
Sahil Batra
7b66eb838e groups-ui: Update error shown when group cannot be deactivated.
This commit updates error banner shown when group is only used
as subgroups and not as permission.

If group is used as a permission, then we mention that in the
error banner and have a button to go to "Permissions" panel.
We show the same banner even when group is used as a subgroup
as well. But when group is only used as subgroups, we just
show a message containing names of all the supergroups.
2025-07-15 11:57:42 -07:00
Maneesh Shukla
69d3900cd3 x-icon: Fix alignment of x-icon in user group subgroup. 2025-07-06 15:12:41 -07:00
Maneesh Shukla
ec60c8a70c x-buttons: Replace "Remove" and "Unsubscribe" buttons with x icons in tables.
This commit removes the "Remove" and "Unsubscribe" action buttons from
various tables and replaces them with icon buttons using the "close"
icon.

Additionally, previously the rows with and without a remove button had
different heights. This commit updates the fixed `px` values to `em`
units to ensure equal height for all rows, regardless of whether a
remove-subscription button is present.

Fixes: #34874.
2025-07-03 14:37:00 -07:00
evykassirer
236e595438 settings: Use grid and flex for the two-pane settings overlay.
Instead of changing the height of the button subheader depending
on the width of the modal, which was fiddly and error prone, we now
let grid determine the height of the button subheader, and determine
the height of the body through javascript resize calculations.
2025-07-03 11:22:31 -07:00
Sahil Batra
e66431f128 group-settings: Fix how long names are handled in groups UI.
This commit fixes code to correctly show the long group
names by clipping them and showing ellipsis in group rows
in left panel and in the header shown in right section.

Group names are handled in a different way than stream
names because we need to show deactivated icons as well
for stream names.
2025-07-03 11:22:31 -07:00
Maneesh Shukla
8ef51e1b6f tooltips: Fix incorrect tooltip on the spinner.
The "sub_unsub_status" spinner was inside the div with the "check" class
, causing the tooltip to appear over the spinner, which should only be
visible on the check icon.

This commit moves the "sub_unsub_status" spinner div outside, ensuring
the tooltip is now visible only when hovering over the check icon.
2025-07-01 14:16:31 -07:00
Evy Kassirer
ec65dad063 stream_pill: Fetch all subscribers before getting user ids for a stream.
Work towards #34244.
2025-06-23 17:04:47 -07:00
Sahil Batra
760026c7a7 groups-ui: Fix scrollbar for groups list in left panel.
Simplebar was not being implemented correctly in groups UI
left panel because $container and $simplebar_container args
passed to ListWidget.create were same elements and thus the
simplebar related elements were being removed when rendering
the list.

This commit fixes it by adding a wrapper element to be used
as simplebar container.
2025-05-29 10:57:02 -07:00
Sahil Batra
bc61a5ed08 groups-ui: Live update UI to create groups.
This commit adds code to live update the UI when
can_create_user_groups setting changes.

The elements that are live updated are -
- Icon button at the top left panel
- Button shown in right panel when no group
is selected.
- Text shown in right panel mentioning whether
user has permission.

We do not live update the text shown when left
panel is empty as it is somewhat complex to
handle all conditions correctly for it.
2025-05-20 10:45:13 -07:00
Sahil Batra
927024cf70 group-settings: Add UI to reactivate user groups.
Fixes #23568.
2025-05-14 13:24:55 -07:00
Maneesh Shukla
11a620fefb buttons: Modify the styles of buttons in user group settings.
This commit changes the intent of "Leave group" to neutral color (grey),
while keeping "Join group" brand-colored.
2025-05-13 15:16:14 -07:00
Evy Kassirer
d82bd57cef two_pane_settings: Calculate body height from resize instead of fiddly CSS.
Having a set height is necessary for simplebar to work, and the height
will change depending on whether the header is one or two lines.
2025-05-13 12:06:47 -07:00
Maneesh Shukla
c6660fbea7 group_panel: Fix the description below "Add members" label. 2025-05-07 16:51:51 -07:00
Maneesh Shukla
67631225c4 tooltips: Show tooltip on disabled "Add" button in group and channel settings.
Fixes: #34325.
2025-05-07 16:51:51 -07:00
Maneesh Shukla
46cd38d1b0 settings: Redesign buttons in channel and group settings.
Fixes: #34253.
2025-05-06 13:34:59 -07:00
Karl Stolley
1c55004cda decorated_channels: Rename partial as 'decorated_channel'. 2025-04-22 11:26:12 -07:00
evykassirer
a09dab5eaf settings: Calculate height of create modal through javascript.
We need this height to be flexible based on if the subheader has
overflowed into two rows or not, and our method of doing this
(with existing examples in the buddy list and stream list) is to
calculate what the height should be when a window is loaded or
resized.
2025-04-10 10:01:57 -07:00
evykassirer
a16bc0e5b1 settings: Add a generic classname for two pane overlays. 2025-04-07 18:18:47 -07:00
evykassirer
8ee4554499 settings: Replace some two pane plus sign classnames with a generic one. 2025-04-07 18:18:47 -07:00
evykassirer
1abd3332a6 settings: Replace two pane header classnames with a generic one. 2025-04-07 18:18:47 -07:00
evykassirer
23b8ac0eab settings: Replace two pane container classnames with a generic one. 2025-04-07 18:18:47 -07:00
Shubham Padia
c4b30dd176 user_groups: Remove Add all users button from group creation screen.
Partially fixes #33127.
2025-04-07 16:26:30 -07:00
Shubham Padia
2314f20587 user_groups: Add subtitle when adding subscribers to new group.
Also modify the placeholder text.
2025-04-07 16:26:30 -07:00
Sayam Samal
91549cfba0 settings: Update remove/unsubscribe buttons to action button component.
This commit updates the remove and unsubscribe buttons in channel
settings and user group settings to use the action button component.
2025-04-04 12:26:36 -07:00
Sayam Samal
47419fbfc3 settings: Update add/remove buttons on channel/group creation.
This commit updates the "Add" and "Remove" buttons in the channel/group
creation modal to use the action button component.

Fixes part of #33027.
2025-04-03 17:33:09 -07:00
Karl Stolley
ede630a6dd settings: Add new sort arrows to all settings tables. 2025-04-02 13:14:07 -07:00
Aman Agrawal
f53fc1b507 user_group_settings: Use icon with 2 users for editing group info. 2025-03-14 11:07:33 -07:00
Aman Agrawal
b2c2e09122 user_group_settings: Use 2 user plus icon to add new user group. 2025-03-12 09:14:37 -07:00
Maneesh Shukla
37ec0a7c03 button_migration: Restyle buttons in channel and group settings.
Fixes part of #33130.
2025-03-11 14:08:34 -07:00
apoorvapendse
27ac91a8c8 user_groups: Add deactivated icon on top title.
https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AFdeactivated.20group.20indicator.20disappears/near/2112723
2025-03-10 12:45:49 -07:00
apoorvapendse
525efb7c73 user_groups: Remove fa-ban icon for deactivated group settings.
prerequisite: #33812
2025-03-10 12:45:49 -07:00
Harsh
eb013580a5 user_groups: Add banner for settings for a deactivated group.
This commit adds a banner at the top of the group settings panel, to
make it super clear when a group is deactivated.

Fixes: #33803.
2025-03-10 12:42:44 -07:00
Maneesh Shukla
d2a9b5dda5 modals: Remove data-dismiss usage and update cancel actions.
Replaced `data-dismiss="modal"` attributes with class/ID-based event
handling to align with Micromodal usage. Also removed an unused CSS
rule which was defined.
2025-03-07 09:10:47 -08:00
Sahil Batra
cfac9986b2 groups: Add "View permissions" button in deactivation error banner.
Follow-up for #33800.
2025-03-05 22:39:11 -08:00
Alya Abbott
2f01eadf79 groups: Don't list group permissions in deactivation error banner. 2025-03-04 15:36:46 -08:00
apoorvapendse
ce66d2a4e6 user_groups: Update empty messages and dropdown display.
Also fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.8E.AF.20don't.20offer.20to.20create.20user.20groups.20when.20you.20can't/with/2111141
2025-03-04 13:36:30 -08:00
apoorvapendse
b5e123a613 user_groups: Disable actions for deactivated groups.
Joining/leaving the group as well as
adding or removing others is disabled.
2025-03-04 13:36:30 -08:00
apoorvapendse
d12feb1872 group_settings: Show all, active and deactivated groups.
Fixes #32877.
Co-authored-by: Sanchit Sharma <ssharmas10662@gmail.com>

Thanks to @sanchi-t, I've yanked a lot of code and approach
from his concurrent PR in 32475, especially the method of
toggling parent css class to hide/show relevant children.
2025-03-04 13:36:30 -08:00
Shubham Padia
d18593b5be settings: Rename Filter x to Filter for channel and group settings. 2025-02-25 22:02:07 -08:00