Commit Graph

6762 Commits

Author SHA1 Message Date
Aman Agrawal
23cd8b8564 message_list_data: Use common logic for filtering msgs in-home. 2024-12-08 18:34:28 -08:00
Aman Agrawal
dcdd54fcea stream_muting: Fix stream msgs not displayed when stream in unmuted. 2024-12-08 18:34:28 -08:00
Aman Agrawal
91714b5f1b user_topics: Extract method to check if topic is visible in-home. 2024-12-08 18:34:28 -08:00
Emil Grehn
83a121c7e4 compose_recipient: Rename funciton open_compose_recipient_dropdown.
Renames the function 'open_compose_recipient_dropdown'
to 'toggle_compose_recipient_dropdown'
to better describe what it actually does.
2024-12-07 22:00:08 -08:00
Aman Agrawal
e28dd0fbfb portico: Remove text centering on thanks page. 2024-12-07 21:58:57 -08:00
Tim Abbott
7f7698e9b9 popover_menus_data: Fix definitely typo. 2024-12-06 13:11:08 -08:00
Saubhagya Patel
181f5121fb popovers: Hide left sidebar actions popover for empty topics.
This commit changes the behavior of the topic actions popover
(displayed from the left sidebar via the `...` menu) to no
longer appear for empty topics (topics with no messages).
Instead, a message is displayed: "There are no messages in
this topic.", along with the topic visibility options and
the name of the topic.

Fixes: #32098.
2024-12-06 13:09:12 -08:00
Emil Grehn
57c8120a09 message_forwarding: Fix bug with forward message in combined feed.
Forward message previously didn't open the recipient dropdown
when forwarding from the combined feed.

This commit will also make the messages keep their original
channel or pm-recipient when forwarding from combined feed, to
be consistent with the behavior in the rest of the app.
2024-12-06 11:59:44 -08:00
Emil Grehn
06aab30133 message_forwarding: Make forward message keep original topic by default. 2024-12-06 11:59:44 -08:00
evykassirer
3910211518 buddy_list: Add ellipses cutoff for headers that overflow.
This is mostly for translations.
2024-12-06 11:55:57 -08:00
Maneesh Shukla
d3e74f62e7 presence_data: Add fallback logic for date_joined. 2024-12-06 11:50:31 -08:00
Anders Kaseorg
7466ee977f empty_feed_notice: Update “stream” to “channel”.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-05 16:54:38 -08:00
evykassirer
e36971c7e1 sidebars: Use pixels for the sidebar spacing.
This, as well as increasing the spacing by 5px, ensures that the left
sidebar bottom elements aren't overlapped by URLs that the browser
shows in the corner when hovering links.
2024-12-05 16:42:54 -08:00
evykassirer
2fdb47ab4d right_sidebar: Shrink invite user icon to line up text.
Some checks failed
Code scanning / CodeQL (push) Has been cancelled
Zulip production suite / Ubuntu 22.04 production build (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:bookworm, true, false, Debian 12 (Python 3.11, backend + documentation), bookworm) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:jammy, false, true, Ubuntu 22.04 (Python 3.10, backend + frontend), jammy) (push) Has been cancelled
Zulip CI / ${{ matrix.name }} (zulip/ci:noble, false, false, Ubuntu 24.04 (Python 3.12, backend), noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm, --test-custom-db, Debian 12 production install with custom db name and user, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy, , Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble, , Ubuntu 24.04 production install, noble) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-7.0, 7.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:bookworm-8.0, 8.0 Version Upgrade, bookworm) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:jammy-6.0, 6.0 Version Upgrade, jammy) (push) Has been cancelled
Zulip production suite / ${{ matrix.name }} (zulip/ci:noble-9.0, 9.0 Version Upgrade, noble) (push) Has been cancelled
2024-12-05 14:33:23 -08:00
evykassirer
6fdc316205 right_sidebar: Support multi-line text for view users and invite users.
This is important for translations.
2024-12-05 14:33:23 -08:00
evykassirer
114b4014f8 sidebars: Use smallcap font for more links. 2024-12-05 14:33:23 -08:00
evykassirer
5580560855 right_sidebar: Shorten invite copy.
We need it to be shorter to fit on one line after we switch
to small caps.
2024-12-05 14:33:23 -08:00
evykassirer
5d05aad8b5 right_sidebar: Create variable for header left spacing.
This is about to be used for another component as well.
2024-12-05 14:33:23 -08:00
evykassirer
e1fcbba124 right_sidebar: Remove right padding to give buddy list more space.
There is still some space from the browser scrollbar, and the
buddy list is no more to the right than the profile edit button
in the top right corner, so this shouldn't cause any issues.
2024-12-05 14:33:23 -08:00
evykassirer
d25a22802c right_sidebar: Line up header three-dot menu with row menus buttons.
As discussed here:
https://chat.zulip.org/#narrow/channel/101-design/topic/invite.20users.20link.20in.20right.20sidebar.20.20.2332332/near/1988651
2024-12-05 14:33:23 -08:00
Shubham Padia
0575db3ab6 css: Use --color-active-row-modal for settings overlay active rows.
This fixes a bug introduced in f40e1e9ad0
We changed the settings overlay container background color in that
commit, from hsl(0deg 0% 98%) to #ededed. #ededed is same as
hsl(0deg 0% 93%). The latter is the exact same color for stream and
group row active background. While we changed the settings overlay
background color, we did not change the active row color for stream and
group rows.
Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/Lack.20of.20highlighting.20of.20selected.20group.2E/near/1993630
2024-12-05 10:36:34 -08:00
Sahil Batra
9be0eee446 group-settings: Live update membership status text on subgroup update.
This commit adds code to live update the membership status text
if subgroups of a group, either the active group or one of the
subgroup of active group.

Fixes #32485.
2024-12-05 10:35:41 -08:00
Sahil Batra
cbada036a9 user-groups: Live update membership status text.
This commit adds code to live update the membership status text
when a user is added or removed from a group that is subgroup
of the group opened in the right panel of groups UI.
2024-12-05 10:35:41 -08:00
Sahil Batra
ded36004bb group-settings: Show membership details in right panel.
We now mention if user is member of the group in the "Members"
tab, also including the details about whether the user is direct
member or is member by being direct member of one of the subgroups.
2024-12-05 10:35:41 -08:00
Shubham Padia
0091add9c1 user_group_edit: Move tab key check to update groups list function. 2024-12-05 09:52:32 -08:00
Anders Kaseorg
0686d462e0 webpack: Remove doubled slash from module path.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-05 00:20:54 -08:00
Tim Abbott
858b93f588 settings_config: Allow using new user list style in production.
We've fixed the various issues that made us leave this disabled by
default.
2024-12-04 23:10:33 -08:00
Emil Grehn
f9b95bd4f3 message_quoting: Add a "Forward message" option below "Quote message".
Forward message starts a new message with the quoted context
(message or selection).
The compose box opens with then channel picker open and no topic.

Also added documentation about this feature in the help center.

Fixes part 2 of #31953
2024-12-04 22:25:14 -08:00
Emil Grehn
8e9d581746 message_quoting: Rename 'quote_and_reply' to 'quote_message'.
To be consistent with the new naming in the app
'quote_reply' was also renamed to 'quote_message'

Fixes part of #31953
2024-12-04 22:25:14 -08:00
Emil Grehn
58d91dacd5 message_quoting: Rename 'Quote and reply' to 'Quote message'.
'Quote message' is a more accurate decription, as this option inserts
the quoted text into whatever message you're composing or editing;
it does not necessarily start a new reply.

Fixes first part of #31953.
2024-12-04 22:25:14 -08:00
Aman Agrawal
a6aef4f41b message_fetch: Check for empty narrow to show empty narrow banner. 2024-12-04 16:16:25 -08:00
Aman Agrawal
40eda337f9 message_fetch: Populate rendered message lists with all_messages_data.
This will help us provide more messages in the current narrow for the
user after a reload without any extra server queries.
2024-12-04 16:16:25 -08:00
Aman Agrawal
107559b1bb message_fetch: Fetch again if the view is not scrollable.
If the initial fetch for the narrow didn't return enough data for
the view to becomes scrollable, we should try to populate the narrow
with more messages.
2024-12-04 16:16:25 -08:00
Aman Agrawal
dc63415c9d message_fetch: Allow fetching more messages for combined feed.
Since `all_messages_data` is no longer the data for combined feed,
we need to treat combined feed like any other view and continue
fetching messages if required.
2024-12-04 16:16:25 -08:00
Aman Agrawal
a18b7f760d message_list: Avoid unnecessary rerenders on adding messages. 2024-12-04 16:16:25 -08:00
Shubham Padia
cbcd631afe user_group: Live update on subgroup edit.
Also adds a condition to handle_member_edit_event to only update the
group checkmark when the current user id is part of the member ids
affected by the event.
2024-12-04 16:02:20 -08:00
Shubham Padia
08e1a44ce6 user_group: Use Intl.listformat instead of manually inserting commas.
In some other languages, ", " isn't the best way to do a list and
Intl.listformat is a better choice in those cases.
2024-12-04 16:02:20 -08:00
Shubham Padia
173c09e32b stream_events: Loop over stream group settings for update_property. 2024-12-04 12:26:16 -08:00
Shubham Padia
a5a56be15b settings_components: Loop over group permission settings. 2024-12-04 12:25:19 -08:00
Shubham Padia
d9c413d0ff stream: Loop over stream group settings for tracking changes. 2024-12-04 12:25:19 -08:00
opmkumar
5eb51e2df6 message_edit: Add message length limit indicator in edit message UI.
Adds a message length limit indicator similar to the one in the compose box.
The tooltip message for the disabled save button now appears dynamically
based on whether the message exceeds the length limit or the editing time
has expired.

Fixes #25271.
2024-12-04 11:44:51 -08:00
opmkumar
88727862b4 compose: Refactor functions for handling max length limits.
Refactors `check_overflow_text` and `validate_message_length` functions.
This commit ensures that there won't be any change in the existing UI
of the compose box with the refactoring of the above functions.
2024-12-04 11:44:51 -08:00
opmkumar
7c53e8c90b compose: Replace $("textarea#compose-textarea") with $textarea.
Replaces the $("textarea#compose-textarea") selector with $textarea in
the `check_overflow_text` and `validate_message_length` functions. This
change allows $textarea to be modified in future commits to also support
the edit-message UI.
2024-12-04 11:44:51 -08:00
opmkumar
aac07e913b compose: Rename function set_message_too_long.
Renames function `set_message_too_long` to
`set_message_too_long_for_compose` in `compose_validate.ts`.
2024-12-04 11:44:51 -08:00
opmkumar
0055633002 css: Add general class names for improved extensibility.
Adds general class names in `compose.hbs` so that these elements can be
more easily expanded for use in the edit message UI as well. These
classes will be used in the `check_overflow_text` function of
`compose_validate.ts`, allowing this function to handle both the edit
message UI and compose box UI.
2024-12-04 11:44:51 -08:00
opmkumar
f2e30f4354 css: Refactor border colors for .new_message_textarea.over_limit.
This change moves the border color for `.new_message_textarea.over_limit`
to CSS variables.
2024-12-04 11:44:51 -08:00
Sahil Batra
367a0bdbff groups: Remove id_field_name field from GroupPermissionSetting.
id_field_name was being used only to set the initial dummy
values for realm settings. We can directly add "_id" to the
setting name instead of having an extra id_field_name field.
2024-12-04 11:15:17 -08:00
Sahil Batra
121df45cc4 groups: Remove allow_owners_group field from GroupPermissionSetting.
As we now allow anonymous groups and settings can be set to any
set of users, there is no benefit in not allowing a setting to
be set to "Owners" group.
2024-12-04 11:12:28 -08:00
Sayam Samal
a8146916aa buttons: Add redesigned button styles.
This commit adds the redesigned button styles to the codebase along with
with a storybook-style page in `/devtools/buttons` to view and test the
redesigned button component.

The redesigned button component, uses the `action-button` class to
follow Zulip's no-abbreviation policy, and to avoid conflicts with the
pre-existing `button` and bootstrap `btn` classes.

A button using the new redesigned styles, required two classes,
  - First, the base `action-button` class which defines the structure
  and behavior of the button.
  - Second, a modifier class like `action-button-primary-neutral` which
  defines the styles for the particular action button type.
2024-12-04 11:08:33 -08:00
Shubham Padia
7e92c2ad16 streams: Use can_administer_channel_group to administer channel.
Fixes #31959.
2024-12-03 18:38:25 -08:00