Commit Graph

62185 Commits

Author SHA1 Message Date
apoorvapendse
d37f6c56be setup_docs: Put activation command in a code block for WSL.
This commit puts the activation command in a code block
instead of an inline code snippet.
2024-12-18 08:56:27 -08:00
Anders Kaseorg
3a33060891 message_cache: Handle Django/Tornado skew for sender_recipient_id.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-18 08:55:52 -08:00
Harsh Bansal
4d3cc2c5a5 portico: Improve layout of /go page.
Made the input field of the page consistent with
the other similar pages. Here are I have done the following things:
1. Changed text 'Enter your organization's Zulip URL:'->'Organization URL'.
2. Left aligned the label and button to make it consistent.
3. Moved 'Don't know your organization URL? Find your organization.' to be
just below the URL field.
4. Changed the placeholder 'your-organization-url' -> 'your-organization'

Fixes #32198
2024-12-17 23:24:00 -08:00
Shubham Padia
f2a22b498e stream_create: Do not create with pending text in pill widget. 2024-12-17 22:53:49 -08:00
Shubham Padia
f36dcdfe86 user_group_create: Do not create with pending text in pill widget. 2024-12-17 22:53:49 -08:00
Shubham Padia
c0f2697544 add_group_members_pill: Add button should show error on pending text.
This commit only changes the behaviour for edit screen of this setting.
We'll tackle the create screen in further commits.
2024-12-17 22:53:49 -08:00
Shubham Padia
f6bedceab3 add_subscribers_pill: Add button should show error on pending text.
This commit only changes the behaviour for edit screen of this setting.
We'll tackle the create screens in further commits.
2024-12-17 22:53:49 -08:00
Shubham Padia
0ee2543a49 add_subscribers_pill: Show outline on invalid input for pill. 2024-12-17 22:53:49 -08:00
Shubham Padia
388c4ef65c add_group_members: Show outline on invalid input for pill. 2024-12-17 22:53:49 -08:00
Shubham Padia
95ec87355f settings: Rephrase clicking enter to pressing enter. 2024-12-17 22:53:49 -08:00
Anders Kaseorg
c6dcfbc480 dev-buttons: Use portico bundle.
This includes bootstrap.portico.css and happens to prevent webpack
from kicking it out of the chunk with the rest of the portico CSS and
misordering it.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-17 18:34:38 -08:00
Sahil Batra
4cb9fb0d5a group-permission-settings: Add function to get list of setting names.
This commit adds a function which returns type checked list of
group permission setting names so that all the type checking
has to be done only once.
2024-12-17 12:36:23 -08:00
Sahil Batra
ab67b87db3 user_group_edit: Fix live update of checkmark in left panel.
This commit adds code to live update the checkmark in left panel
on updating the user's membership even for groups whose membership
is not updated directly but has updated group as its subgroup.
2024-12-17 12:36:23 -08:00
Sahil Batra
a7fe3c822a user_group_edit: Fix live update when removing user from groups.
Previously, on removing a user from a group, the group row was
removed from "Your groups" only if that user could not join the
group again. But removing a user from a group can also remove
users from other groups which used the updated group as their
subgroup and those group rows were not removed from the list
and the empty panel message was shown with some groups present
in the list.

This commit fixes the bug by just redrawing the list so that
the groups that used the updated group as their subgroup are
also removed from the list if needed. This means that we no
longer have the behavior of keeping the group row if user
can join the group again but that is fine.
2024-12-17 12:36:23 -08:00
Tim Abbott
42d983b2ea drafts: Rename removed-drafts-message class.
It's now used for something totally different.
2024-12-17 11:57:04 -08:00
aditya.chaudhary1558@gmail.com
08c8e40afa drafts: Remove feature for discarding drafts after 30 days.
This commit helps in removal of all the code and documentation
related to 30-day auto removal of draft that are saved.

Fixes #32176.
2024-12-17 11:54:10 -08:00
Alya Abbott
e05f66b311 portico: Add Rush Stack case study. 2024-12-17 11:44:32 -08:00
Tim Abbott
d6520a01a3 buddy_data: Don't require coverage for error logging. 2024-12-17 11:18:45 -08:00
Karl Stolley
e4cba81c90 app_variables: Match dark theme popover to menu. 2024-12-17 11:05:44 -08:00
Karl Stolley
f8cbff51e0 compose: Control formatting dividers with CSS. 2024-12-17 11:05:44 -08:00
Karl Stolley
b56c838688 compose: Constrain icons to square boxes. 2024-12-17 11:05:44 -08:00
Karl Stolley
c16d434c26 compose: Correct typo in em-unit conversion. 2024-12-17 11:05:44 -08:00
Aman Agrawal
3e93bec936 buddy_data: Check conversation_participants against legacy data.
We expect to remove this check once we've confirmed the logic is
correct.
2024-12-17 11:03:46 -08:00
Aman Agrawal
63584f3076 people: Extract function to check if user is a narrow participant.
To be commonly used in ConversationParticipants.
2024-12-17 11:03:46 -08:00
Karl Stolley
71b41af95a user_names: Suppress status emoji for group DMs in Inbox, Recents. 2024-12-17 11:01:21 -08:00
Karl Stolley
668cff365b recent_conversations: Use Intl.ListFormat rather than .join(", "). 2024-12-17 11:01:21 -08:00
Karl Stolley
f679edf967 user_names: Display users and status emoji inline in recents, inbox.
Fixes #29778
2024-12-17 11:01:21 -08:00
Aman Agrawal
0b063e73fe stripe: Fix error on visiting /customer_portal without parameters.
Now visiting `/customer_portal` will correctly take you to the stripe
customer portal corresponding to the customer for editing.

There is no reason for us to block access to this page.
2024-12-17 10:33:22 -08:00
Aman Agrawal
bb8a0ea1f4 stripe: Create customer if one doesn't exist.
Since this function can only be called by billing admins, it
is okay to allow them to create a customer if one doesn't exist.
2024-12-17 10:33:22 -08:00
Aman Agrawal
9b96b45841 recent_view: Fix transparent avatar background color being changed.
We don't set a background color for transparent avatars to avoid
changing what the avatar is supposed to be.
2024-12-17 10:28:50 -08:00
sanchi-t
4134cfe2bf css: Remove non-existent selector. 2024-12-17 10:28:32 -08:00
sanchi-t
92b8d66c3b css: Refactor theme colors for #recent_view.
This change moves the light and dark theme colors for
`#recent_view` element to CSS variables.
2024-12-17 10:28:32 -08:00
Aman Agrawal
0232eaba35 condense: Modify height offset to collapse messages.
The goal is to reduce the frequency with which unread messages are
collapsed and thus hard to actually read.

Fixes #31501.
2024-12-17 10:14:43 -08:00
Sahil Batra
a9bd614df3 default_streams: Remove get_default_streams_for_realm_as_dicts.
Since get_default_streams_for_realm_as_dicts function was only
used in tests, this commit removes it and updates the test to
use the function which returns Stream objects instead of dicts.

This commit also removes Stream.to_dict function which is no
longer used.
2024-12-17 09:40:10 -08:00
Sahil Batra
1182e7e350 streams: Pass only stream IDs for default stream groups data.
Clients do not use default stream groups feature now but they
should only require IDs when they use them and not the full
stream data since that is already available in streams and
subscriptions data.
2024-12-17 09:40:10 -08:00
Sahil Batra
1c933dd231 streams: Include only IDs in default streams data.
Clients do not need complete stream objects in the default
streams data since they already have that via streams and
subscriptions data.
2024-12-17 09:40:10 -08:00
Anders Kaseorg
a9b9ed6c5b run-dev: Support extra MIME types from zerver.lib.mime_types.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-17 09:34:29 -08:00
Anders Kaseorg
a6f5d24dc6 run-dev: Move out-of-place import statement.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-17 09:34:29 -08:00
Alya Abbott
3e7621f420 portico: Add help center links to /security. 2024-12-17 09:33:41 -08:00
Alya Abbott
c1c2463dbd portico: Improve channel permissions links. 2024-12-17 09:33:41 -08:00
Tim Abbott
36e44c57a1 github: Use British spelling for organization.
This is required by https://dir.floss.fund/validate.
2024-12-16 15:55:23 -08:00
Anders Kaseorg
1043e12df1 help-beta: Fix sidebar for allow-image-link-previews rename.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-16 13:38:05 -08:00
Anders Kaseorg
8da43b82fa help: Fix unescaped angle brackets.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-16 13:38:05 -08:00
Anders Kaseorg
21a085e390 generate_emoji_names_table: Update SORTED_CATEGORIES.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-16 13:12:01 -08:00
PieterCK
f988412394 slack_data_import: Support converting integration bot users.
Currently, we're unable to convert messages from Slack's integration
bots because this message subtype doesn't come from a Slack "user", that
is they don't have a Slack user profile.

This is a preparatory change to support converting Slack's integration
bot messages. This commit artificially creates Slack user data from the
integration bot's "profile" so that we can create a corresponding Zulip
user for them.

Part of #31311.
2024-12-16 13:09:57 -08:00
PieterCK
10946caa3d slack_data_import: Update how Slack user avatars are processed.
Previously, the Slack export converter can only process Slack's avatar
URL from Slack's "ca.slack-edge.com" server, which looks like this:

https://ca.slack-edge.com/T0CDRA6HM3P-U06NABE26M9-1173e04f818e-512

This commit adds support for converting any public downloadable image
URLs.

This is done to support importing Slack's integration bots and their
messages, which typically have PNG type file url:

https://avatars.slack-edge.com/2024-05-01/7057208497908_a4351f6deb91094eac4c_72.png
2024-12-16 13:09:57 -08:00
Maneesh Shukla
e856294da6 compose: Open the compose box with channel picker.
This commit changes the code in such a way that the
"Start new conversation" button open the compose box with the channel
picker open, as we do when no channels is selected.

Fixes #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Maneesh Shukla
b024e71dc0 compose: Add tooltip over compose-reply button.
This commit adds the tooltip content for disabled stream reply button.

Fixes part of #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Maneesh Shukla
d8c5dcb41d compose: Disable compose reply button.
This commit updates the logic to disable the reply button based on the
user's permissions in the stream.

Fixes part of #28410.

Co-authored-by: Kunal Sharma <v.shm.kunal@gmail.com>
2024-12-16 10:50:12 -08:00
Aman Agrawal
0383730391 tooltip_templates: Remove unused data-view-code attribute.
This attribute is only usable on clickable targets as per the
existing click handler logic which these tooltips are not.
2024-12-16 09:04:18 -08:00