Commit Graph

5817 Commits

Author SHA1 Message Date
Anders Kaseorg
224c143094 convert-help-center-docs-to-mdx: Delete.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 09:37:34 -07:00
Anders Kaseorg
619cb0dd4f eslint: Add eslint-plugin-mdx.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 22:36:42 -07:00
Shubham Padia
03c73c28cd banners: Capitalise desktop in insecure-desktop-app intent and message. 2025-09-03 17:36:25 -07:00
Anders Kaseorg
2bf20e02f2 documentation_crawler: Remove wrongly inverted skip_check_fragment flag.
Due to a missing `not`, this incorrectly skipped checking fragments
for everything *other* than the /help documentation!

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:21:23 -07:00
Anders Kaseorg
a914c8e53f check_help_documentation: Fix HelpDocumentationSpider._is_external_url.
Commits d333ddb961 and
a766c092fc (#35621) broke this by
changing the base class from UnusedImagesLinterSpider to
BaseDocumentationSpider.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:21:23 -07:00
Shubham Padia
7db29f29de help: Serve help center build without relative links for zulip.com.
We have a copy of help center with relative links disabled which is
reserved for root domains without an organisation on the root domain.
Ideally, we should have some logic to determine whether we are on such
a root domain or not. For practical short term purposes, since this
type of documentation is mainly useful for zulip.com, we add an
exception for zulip.com.
2025-09-03 09:28:15 -07:00
Shubham Padia
246fbf6d29 help: Add production config for the new help center.
Fixes #35131.

Most of the nginx config is copied from
https://docs.astro.build/en/recipes/docker/#nginx.

We ideally should be generating two builds for Zulip cloud and serve a
different one depending on whether the subdomain is same as the root
domain or not. We can look into this as an immediate followup while this
commit helps things get ready for a test deploy on CZO.
2025-09-03 09:28:15 -07:00
Shubham Padia
a766c092fc help: Restore broken link checks for help center documentation.
We add a step to build help center and then test the broken links as we
used to before removing the test temporarily.

This commit focuses on just adding back the broken link checks for the
help center. We skip the fragment check since that is in-built in
starlight and starlight tests account for that already. For the image
check we can add it back in a followup issue.
2025-09-03 09:28:15 -07:00
Shubham Padia
d333ddb961 help: Remove current help center.
This commit removes the current help center markdown files and any logic
that was used to host those files at help/.

We also remove a bunch of tests, we should the equivalent of those tests
for the new help center. Issues to track: #35649, #35647. These issues
track adding back tests for redirects and broken links.

We had a symlink from templates/zerver/integrations/email.md pointing to
help/using-zulip-via-email.md. We can no longer have that symlink since
the latter has been converted to an MDX file. We have deleted the
symlink and put a markdown file in it's place. Both the files have
comments to edit the other in case of changes.

This commit also makes changes in astro config, astro component paths
and other places to move the starlight help center docs base path from
/starlight_help to /help.

The change to rename /starlight_help/ to /help/ in MDX files is done in
the next commit. If we squash these commits, this line should be
removed.

`./tools/build-help-center` no longer does the conversion step.

We also remove some dead code related to the old help center in
documentation.py.
2025-09-03 09:28:15 -07:00
Shubham Padia
40f723c75a help-beta: Add MDX files to git.
We have not yet removed the help files. We can use this commit as a
conversion commit since a lot more help changes will be merged before
this PR gets merged. We will need to rebase on top of main, run
conversion step in this commit, push those changes and then merge the
PR.

NOTE: This commit temporarily breaks the astro build since we have
renamed the path in the MDX files from starlight_help/ to help/ early.
That should be fine since astro build will not break any tests right
now.
We should squash this commit with the next commit removing help center
files when merging into main and remove this NOTE.
2025-09-03 09:28:15 -07:00
apoorvapendse
3188d9db31 tools: Enforce '_html' suffix for unescaped hbs vars.
This adds a check to enforce the new convention of
raw HTML variables having a `_html` suffix for
better clarity.

Discussion: https://chat.zulip.org/#narrow/channel/92-learning/topic/Marking.20commits.20to.20be.20squashed.20in.20PRs
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-28 17:33:20 -07:00
apoorvapendse
a935866601 tools: Fix out-of-bounds error for get_handlebars_tag.
This might lead to errors in case we don't always have
a newline as the last character of a template.

Discussion: https://chat.zulip.org/#narrow/channel/6-frontend/topic/Add.20linter.20rule.20to.20denote.20HTML.20string.20in.20template/near/2240213
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
2025-08-28 17:33:20 -07:00
Vector73
4f65c99a6b github_actions: Add a GitHub action for notifying if API docs changed. 2025-08-28 09:57:24 -07:00
Vector73
92fbe47a3b events: Add support for processing modern presence event in web client. 2025-08-27 17:16:31 -07:00
Alex Vandiver
9715f6c104 cache: Use zstd compression level 9 for bmemcached compression. 2025-08-27 09:22:56 -07:00
Shubham Padia
5938f685ad starlight_help: Display gradient for the idle status icon.
Fixes #35496.

We were displaying a solid color until we figured out how to accurately
display the gradient in the SVG itself.
2025-08-19 23:40:51 -07:00
Anders Kaseorg
8de55e7cc1 install-node: Upgrade Node.js from 22.17.1 to 22.18.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Lauryn Menard
cd4cc1a4b1 tools: Add help text to generate-user-messages-screenshot.
Adds general help description text for the tool that generates
cropped message screenshots for corporate pages.

Notes some of the known issues when updating these screenshots
after there have been UI changes, such as partial dates showing
and truncated channel/topic names in screenshots.
2025-08-14 16:55:13 -07:00
Lauryn Menard
d53f75d0a9 corporate: Update for/education screenshots for canonical Elena.
Fixes the screenshots on the for/education page to have the
canonical last name for the example user Elena Garcia.

Updates year in dates for screenshot content to align with when
the screenshots were taken.

Adjusts the width of the viewport for changes in the message
header bar in the web app. Also closes any alert banner at the
top of the app before navigating to the narrow so that doesn't
impact the cropped screenshot area that's computed later.

Finally, sets hover on the new conversation button so that none
of the message action buttons are visible in the message feed
when the screenshot is taken.
2025-08-14 16:55:13 -07:00
Anders Kaseorg
ff15d746c3 install: Support Debian 13.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2025-08-13 14:11:05 -07:00
Shubham Padia
3f6520e82a starlight_help: Forward to help_center_port in case of dev server.
Fixes
https://chat.zulip.org/#narrow/channel/19-documentation/topic/new.20help.20center.3A.20run-dev.20options/near/2238128.

When running the dev server, astro/starlight makes a lot of requests on
the base URL, which are not scoped to /starlight_help. We need to host
the dev server on it's own port for it to work well. This commit fixes
that.
2025-08-13 10:10:15 -07:00
Tim Abbott
4e94324b9a overlays: Avoid closing when dragging resizers.
Fixes most of #35663.
2025-08-12 18:09:08 -07:00
Vector73
f1d1d5f1a4 events: Add support for sending presence events in modern format.
If the client has passed `simplified_presence_events` as true
in the `client_capabilities` parameter of the `POST /register`
request, then the server will send `presence` events with the
`presences` field, which has the user presence data in the
modern API format. When that client capability is false, the
`presence` event will be unchanged and sent with the user
presence data in the legacy format.
2025-08-12 12:37:54 -07:00
Pratik Chanda
8711730e6b left_sidebar: Add menu to change channel folder setting in left sidebar.
Earlier, you could change setting to show/hide channel folders in
left sidebar from setting overlay.

This commit adds an menu option to toggle channel folders setting in
the left sidebar. The menu is hidden if there are no subscribed
channels with channel folder.

Fixes #35574.
2025-08-12 10:29:44 -07:00
Tim Abbott
c44b801cfc left_sidebar: Update main filter input placeholder text. 2025-08-12 00:38:22 -07:00
Tim Abbott
0ccfb7fdf0 left_sidebar: Rename stream-list-filter for global search.
This will be more readable once we've moved the search input.
2025-08-11 14:22:32 -07:00
Saubhagya Patel
bb5c87e306 bots: Add a setting to customize the Welcome Bot message.
This commit includes the following changes:
- Add an administrator setting to customize the Welcome Bot
message when sending an invitation.
- Add an API endpoint to test the customized Welcome Bot message
by sending a copy of the message to the administrator.

Fixes #27663.

Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>
2025-08-08 18:59:37 -07:00
Maneesh Shukla
6e43d34a34 topic-filter: Replace usage of search_pill.
Add topic_filter_pill to use for topic filtering instead of search_pill.

Fixes part of #35284.
2025-08-08 14:29:22 -07:00
Shubham Padia
33f602fa98 help-beta: Add MDX formatting to the linter. 2025-08-08 11:59:29 -07:00
Shubham Padia
3e60b16ac1 starlight_help: Move help-beta over to starlight_help.
We are starting the cutover process and starlight_help is the directory
we have agreed on to place our new help center project. We do not want
to use `starlight_help` as the URL for the project, but this commit
changes the url from `help-beta` to `starlight_help` temporarily since
we can only change URL once we get rid of the current help center
project. That will be done in a future commit.
2025-08-08 11:59:29 -07:00
Sahil Batra
c127a0ae9f settings: Add UI to manage channel folders.
Fixes part of #35545.
2025-08-06 18:58:15 -07:00
Sahil Batra
fac28bf800 streams-ui: Move folder related UI functions to new file.
This commit moves function for creating, editing and archiving
folders in a new file channel_folders_ui.ts so that they can
be defined separately than the files for stream settings UI.
2025-08-06 17:05:19 -07:00
Shubham Padia
5e9dec802e help-beta: Make loose ordered lists tight in the conversion tool.
We chose not to edit the original markdown files to make this change
since the conversion script logic can be used for removing these lines
with very little changes and we don't need the original markdown source
files to be edited before the cutover.

The css for making loose and ordered lists look same has been removed
since we wanted to to respect commonmark specification.
2025-08-06 10:44:04 -07:00
Shubham Padia
c6a0e79342 help-beta: Insert steps around ordered lists.
We remove the ol > li margin rule to space out ordered list items since
that was the result of us overriding an upstream margin rule in
steps.css.

We inserted Steps inside include files only if they are not entirely
composed of an ordered list. If they are, they will eventually be
wrapped inside FlattenedSteps and wrapping these macros with Steps will
not give us the results we desire.
2025-08-04 13:25:15 -07:00
Shubham Padia
502c8072b0 help-beta: Use steps component instead of using steps.css.
Using steps.css right now might feel like the more convenient way out,
but it might introduce friction in upgrades when the upstream code
changes. To tackle that, we convert FlattenList to FlattenedSteps and
explicitly use the steps component.
2025-08-04 13:25:15 -07:00
Anders Kaseorg
00ada0130f install-shellcheck: Upgrade ShellCheck from 0.10.0 to 0.11.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-04 13:23:33 -07:00
Niloth P
52fb13a2f6 generate-integration-docs-screenshot: Use bot-name option to set email.
Previously, only one bot can be created using the
generate-integration-docs-screenshot script for each integration. This
was because the bot's email was constructed using the integration's
name.

Thus, the bot-name commandline option would not work if a bot already
exists for the integration.

Now, we create the email by cleaning the bot-name value, if passed.
2025-08-04 10:00:02 -07:00
Niloth P
0d30435b29 generate-integration-docs-screenshot: Fix usage of fixtureless options.
Fixed copy paste error in loading commandline options for
fixtureless-integrations.
2025-08-04 10:00:02 -07:00
Shubham Padia
baa87f3f0c help-beta: Run format step in the conversion tool. 2025-08-04 09:55:18 -07:00
Lauryn Menard
624988d498 help-beta: Rename "identifier" to "target" in NavigationSteps. 2025-08-01 09:15:12 -07:00
Lauryn Menard
9a25e97c40 help-beta: Adjust icon class names in the conversion process.
Use the icon's name, in camelcase, with the suffix "Icon" for
icon class names in the new help center documentation. E.g.,
zulip-icon-external-link becomes ExternalLinkIcon and fa fa-plus
becomes PlusIcon.
2025-08-01 09:13:05 -07:00
Maneesh Shukla
a93a015b21 banners: Redesign organization upgrade banners.
This commit redesigns the upgrade and sponsorship banners by adding
AVAILABLE_ON_STANDARD, UPGRADE_ACCESS_BANNER, and
UPGRADE_OR_SPONSORSHIP_BANNER.

Fixes part of #34252.
2025-08-01 09:08:30 -07:00
Shubham Padia
49e7e9dae8 help-beta: Stop asides from making a tight list loose.
A lot of our admonition declaration had an empty new line in the
beginning which was getting ported over in the conversion. This caused
the asides to unintentionally mark a tight list as loose which we do not
want.
2025-07-30 11:05:15 -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
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
Evy Kassirer
f984b44ab9 left_sidebar: Remove inactive section, put inactive channels in regular section. 2025-07-28 10:28:01 -07:00