Commit Graph

66191 Commits

Author SHA1 Message Date
Alya Abbott
0db75c6c03 help: Remove list formatting from tip.
This simplifies the converstion to Astro.
2025-07-29 10:33:40 -07:00
Shubham Padia
6e7f1999a3 help: Use unordered lists for sub-lists in saml-authentication.md.
Our current conversion script does not work well with inserting
flattened steps in indented lists. Adding support for indented lists
would be non-trivial. Flattened steps are inserted either in case of
files or relative/setting links. I used this (  +)\{ regex to test for
instances where we might need to insert Flattened steps in an indented
block. Turns out saml-login-button.md is the only includes that faces
the issue only in saml-authentication.md.

There was no strong reason for these sub-lists to be ordered lists and
we decided to turn it into unordered list. Discussion at
https://chat.zulip.org/#narrow/channel/19-documentation/topic/new.20help.20center.3A.20numbering.20regression/near/2232242
2025-07-29 10:10:32 -07:00
Shubham Padia
34633d467e help: Multiline ordered list items should have spacing after 2nd line.
The expected behaviour would be to have some spaces from the second line
onwards for multi-list items. Regex used to check for this was
`^1\..*\r?\n^[^\s].*$` which gives us some extra results that don't fit
our criteria which we can chose to ignore.
2025-07-29 10:09:21 -07:00
Shubham Padia
ecf3fd90c2 help-beta: Recursively traverse for get_include_files_info.
We do have cases of multi level includes that apply to
is_include_only_ordered_list.
2025-07-29 10:09:21 -07:00
Shubham Padia
8b9c616ea2 help-beta: Remove reduntant TODO item for ordered list numbering.
The TODO list item wanted us to check that all ordered list items
started with `1.`. We fixed this in #34964.
2025-07-29 10:09:21 -07:00
Shubham Padia
b19fbe5c9b help-beta: Remove redundant TODO item for indented admonitions.
This was fixed in 41846b35ab.
2025-07-29 10:09:21 -07:00
Shubham Padia
96bb7ffc05 help-beta: Includes with tips can also now be only ordered lists.
FlattenList was not able to handle other components inside a list in the
past, but that has changed in the past few commits and we no longer need
to check for tips in include files for `is_include_only_ordered_list`.
2025-07-29 10:09:21 -07:00
Shubham Padia
646558af13 help-beta: Check for nested ordered list for flatten list conversion.
We had some include files that started with another include, and in some
cases this nested included file was also `only` an ordered list. In that
case, we need to add a flattenlist around the file, but our current
conversion script was not accounting for that.
2025-07-29 10:09:21 -07:00
Shubham Padia
4b9a8d8fa7 help-beta: Indent includes and code blocks for import files.
The indentation in the original files was fine for the current help
center, but when converting the files to MDX, the indentation made the
includes and the code blocks look like they were on the same level as
the list item and not part of it.

I did a manual check of code blocks with indentation in help/ and how
they looked when converted to the new help center and the rest of the
cases looked fine.
2025-07-29 10:09:21 -07:00
Shubham Padia
62988bb09e help-beta: Seperate heading/description and ordered list into 2 files.
For included files, our conversion tool needs a file just to be an
ordered list to properly surround it with FlattenList. If there is
heading and description in the file, the conversion script will not
insert FlattenList. So, we just create two different include files in
this case, first for the heading/description and second for the ordered
list.
2025-07-29 10:09:21 -07:00
Shubham Padia
429bbae77c help-beta: Flatten only in case of matching tagName.
In the commits following this, we are going to make changes which will
introduce cases with paragraphs, code blocks and other elements inside
list items. Right now, FlattenList will just break in those cases. We
need to return those elements without flattening since those are valid
elements inside a list item.
2025-07-29 10:09:21 -07:00
Shubham Padia
8d0f67c3d5 help-beta: Add support for converting {{ support_email }} variable.
Fixes
https://chat.zulip.org/#narrow/channel/19-documentation/topic/new.20help.20center.3A.20support.20email.20variable.20conversion

We already have this variable defined in astro.config.mjs. We just need
to convert it to appropriate syntax.
2025-07-29 10:04:40 -07:00
Shubham Padia
cb8ecc6143 help: Point mailto to {{ support_email }} instead of zulip cloud email.
We were displaying the email as `{{ support_email }}` but we were not
changing the mailto link to point to that email. This commit fixes that.
2025-07-29 10:04:40 -07:00
Alex Vandiver
085d137871 upload: Rename attachment_vips_source, as it's not just for vips_source. 2025-07-29 10:01:40 -07:00
Alex Vandiver
e37ee13577 upload: Add charset even on content-types guessed at download time. 2025-07-29 10:01:40 -07:00
Alex Vandiver
0c6b3373be upload: Ensure that we always have a content-type.
Old uploads are stored without a content-type, and guess_type may not
provide a type for them.
2025-07-29 10:01:40 -07:00
Alya Abbott
1bc7696c24 updates: Add Zulip update (level=20). 2025-07-28 23:52:56 -07:00
Alya Abbott
c22204c092 help: Document how to find channels and DMs in the left sidebar. 2025-07-28 23:52:55 -07:00
Alya Abbott
641a436b44 preferences: Update inactive channels preference setting for new UI.
"Hide" is a better verb with the channel folders UI.

Also automatically hide inactive channels at 20+ susbscribed channels,
as we have more content in the left sidebar now.
2025-07-28 23:52:55 -07:00
Alya Abbott
3e661bee9b help: Document channel folders, and update existing docs. 2025-07-28 23:52:53 -07:00
Aman Agrawal
ade30e822a inbox: Fix left alignment of user full name in DM rows.
They were misaligned since `user-circle` uses a different font-size
than rest of the icons and thus needed a different padding in `em`.
2025-07-28 23:46:28 -07:00
Sahil Batra
8ae9cca3c9 channel_folders: Check max length restrictions while updating.
This commit updates code to make sure we check maximum allowed
length for name and description for channel folders when updating
them.
2025-07-28 23:12:58 -07:00
Sahil Batra
6186df4f72 channel_folders: Update MAX_NAME_LENGTH to 60. 2025-07-28 23:12:58 -07:00
Sahil Batra
db00ceaeb2 register: Pass channel folder max name and description length.
This commit adds "max_channel_folder_name" and
"max_channel_folder_description" fields to response.

Also updated webapp to use these fields instead of hardcoding
the values.
2025-07-28 23:12:58 -07:00
Sahil Batra
945e5553e4 test_channel_folders: Add test for long name and description.
This commit add tests for name and description being too long
when creating channel folders.
2025-07-28 23:12:58 -07:00
Shubham Padia
f343fc6823 help-beta: Correct casing for sidebar sections. 2025-07-28 22:19:30 -07:00
Evy Kassirer
769dc06704 left_sidebar: Rename OTHER CHANNELS folder to CHANNELS.
We're changing this so that in views like inbox (which
only shows locations with unreads), it feels a bit weird
for it to possibly only have a "DIRECT MESSAGES" and then
"OTHER CHANNELS" section, if your only unreads are in
non-pinned folders.

More discussion here:
https://chat.zulip.org/#narrow/channel/101-design/topic/channel.20folders.20in.20left.20sidebar.20.2331972/near/2231091
2025-07-28 22:10:14 -07:00
Sahil Batra
04a356b4a1 streams-ui: Focus on name input after opening folder creation modal. 2025-07-28 22:09:16 -07:00
Evy Kassirer
c9cee7ece2 left_sidebar: Don't scroll stream into view on folder update.
It's an administrator action to edit channel folder membership, so it
doesn't make sense to update the user view for this action.

Fixes #35493.
2025-07-28 17:47:03 -07:00
Evy Kassirer
fd32450488 left_sidebar: Prevent wrap on channel folder names. 2025-07-28 17:46:29 -07:00
Anders Kaseorg
b404ca1a02 makemessages: Remove vestigial custom JavaScript extraction.
Commit d8a36d0702 (#18075) should have
removed this.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-07-28 17:44:23 -07:00
Tim Abbott
afdf20c67e docs: Document PUSH_NOTIFICATION_REDACT_CONTENT changes.
This needs explanation both in upgrade notes and in the main
documentation for mobile push notifications.

Co-authored-by: Prakhar Pratyush <prakhar@zulip.com>
2025-07-28 17:06:59 -07:00
Prakhar Pratyush
d972bb1ca9 push_notifications: Redact content for older clients if E2EE required.
This commit replaces the `PUSH_NOTIFICATION_REDACT_CONTENT` server
setting with `require_e2ee_push_notifications` realm setting.

If `require_e2ee_push_notifications` set to True:
* Older clients: Content redacted
* Updated clients: Encrypted content

If `require_e2ee_push_notifications` set to False:
* Older clients: Content NOT redacted
* Updated clients: Encrypted content

Note: Older clients refers to clients that don't support E2EE.

Fixes part of #35370.
2025-07-28 17:06:59 -07:00
Prakhar Pratyush
fc6cd9a966 settings: Add require_e2ee_push_notifications realm setting.
This commit adds a realm setting:
"Require end-to-end encryption for push notification content".

This commit just involves backend & UI changes to add the setting,
the impact of this setting is in the next commit.

Fixes part of #35370.
2025-07-28 17:06:59 -07:00
Prakhar Pratyush
d46b1a0ac9 settings: Add a new "Notifications security" section in org settings.
This commit adds a new section named "Notifications security"
below "Automated messages and emails" in Organization settings.

The "Allow message content in message notification emails"
setting is moved from "Automated messages and emails" section
to this new section.

This serves as a prep work as we plan to add a new setting
"Require end-to-end encryption for push notification content"
in this section.

Fixes part of #35370.
2025-07-28 17:06:59 -07:00
Anders Kaseorg
e29be679a8 i18n: Remove .tx/config, transifex-machine-translation-button.png.
Commit f22680da31 (#35043) should have
removed these.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-07-28 17:00:37 -07:00
Shubham Padia
8b99a33c86 help-beta: Make footer smaller in font-size (0.85em). 2025-07-28 15:24:20 -07:00
Shubham Padia
af3b6c8f5e help-beta: Make keyboard shortcut styling more similar to tooltips.
Fixes #35118.
Visual tuning for this was done on a call, some of it was done in
https://chat.zulip.org/#narrow/channel/19-documentation/topic/new.20help.20center.3A.20design
For dark theme, we use the same color as we use in styling
`.tooltip-hotkey-hint`. For light theme, we brainstormed a color that
looked fine to us. Padding and font-size was also experimented and set.
Since we just took inspiration from `tooltip-hotkey-hint` and did not
use the same styling i.e. tweaked them, we do not add any comments
declaring dependency b/w both styles.

We increase the font-size from 0.85em to 1.2em, so we don't need to
increase font-size for ⌘ and ⌥ in scripts/adjust_mac_kbd_tags.ts.

Current help center had special styling for arrow keys, we don't port
that over here, since the styling we do for our keyboard shortcuts does
not necessitate that.
2025-07-28 13:38:59 -07:00
Shubham Padia
b8d4ad8b47 help-beta: Use colors same as webapp banners for asides.
Fixes #35122.
The existing colors were attracting too much attention.
Design discussion was done on
https://chat.zulip.org/#narrow/channel/19-documentation/topic/new.20help.20center.3A.20design.
2025-07-28 13:38:59 -07:00
Karl Stolley
bd8bd2c64a inbox: Simplify declaration of folder-row chevron color. 2025-07-28 13:17:00 -07:00
Karl Stolley
630319fde8 inbox: Update channel-row chevrons to Vlad's spec. 2025-07-28 13:17:00 -07:00
Karl Stolley
d1e0d09ef3 inbox: Add folder- and channel-row chevron classes. 2025-07-28 13:17:00 -07:00
apoorvapendse
03f5242384 copy_email_modal: Avoid unnecessary raw HTML description.
The context passed in web/src/stream_edit.ts
never contains any HTML formatted string for
the description, so it is safe to replace
`{{{` with `{{`.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
a7664187df unreads: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
208372d0d2 recipient_row: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
30d8ba591a favicon: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
ceb9367bc4 recent_view: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
03a2d9f644 move_message: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
apoorvapendse
8ca2ec4363 inbox: Use _html naming convention for content rendered as HTML.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-07-28 12:56:44 -07:00
Sahil Batra
3483c1dbcb server_events_dispatch: Handle channel_folder/update event. 2025-07-28 12:52:40 -07:00