Commit Graph

62836 Commits

Author SHA1 Message Date
Mateusz Mandera
7390eb2ed0 zilencer: Rename registration takeover to registration transfer.
This is the final naming that we want, compared to the naming we merged
in #32399.
Includes renaming the API endpoints, but that should be fine as the
original PR was just merged and this isn't deployed anywhere.
2025-01-30 14:32:36 -08:00
Karl Stolley
a23663e6f9 right_sidebar: Ensure opaque userlist header. 2025-01-30 14:28:32 -08:00
Tim Abbott
55aa63425b navbar_alerts: Remove entrypoint for developer testing experience.
I think the rest of the code can stay, since we're planning to make it
accessible elsewhere.
2025-01-30 13:16:21 -08:00
qnhn22
ac0d54abf1 user_group_popover: Reduce member list size, add member page links.
In user group popover, if a group has more than 30 members, just show
the first 30 members and add links to member management pages.

If a group is a system group, link to organization user
page. Otherwise, link to group member page.

Fixes #31550.
2025-01-30 12:37:27 -08:00
Niloth P
636f4f457c integration-docs: Remove context property recommended_channel_name.
The context property was previously being used in the macro
`git-webhook-url-with-branches` which has been removed as it is not in
use any longer.

The context property was now being used only in 2 integration docs, both
of which used it only in a single location, and directly used their own
names as the channel name. Making the context property unnecessary.
2025-01-30 11:59:38 -08:00
Niloth P
8e6d8dc845 integration-docs: Remove macros that are used only in Matrix doc.
Moved the content inside the Matrix doc.
2025-01-30 11:59:38 -08:00
Niloth P
68019cb48d integration-docs: Remove unused macros.
The `append-channel-name` and `append-topic` macros' instructions are
unnecessary as the topic and channel names are now part of the generated
URL.

The `git-webhook-url-branches` macro becomes equivalent to
`git-append-branches` with the auto-generation of the URL.
2025-01-30 11:59:38 -08:00
Lauryn Menard
8c699c6422 help: Document the saved snippets compose box feature.
Fixes #33131.
2025-01-30 11:59:07 -08:00
Niloth P
eb353827b2 integrations: Document Zulip Onyx integration.
The integration with Onyx is via the Zulip Connector of Onyx.
2025-01-30 11:48:11 -08:00
Alya Abbott
4c50e83542 help: Improve documentation on who can create bots. 2025-01-30 11:37:35 -08:00
Vector73
469bc4f442 page_params: Remove bot_types field to reduce database queries.
Removed `bot_types` field from page_params to reduce extra db queries
on page load and allowed bot types for the user are determined locally
instead.
2025-01-30 11:37:35 -08:00
Vector73
a2c3138418 settings: Remove bot_creation_policy setting.
Removed `bot_creation_policy` property, as the permission to create
bot users in the organization is now controlled by two new realm settings,
`can_create_bots_group` and `can_create_write_only_bots_group`
2025-01-30 11:37:35 -08:00
Vector73
d48164ce1e settings: Add two new realm settings to restrict bot creation.
Added `can_create_bots_group` setting which controls who can
create any type of bots in the organization.

Added `can_create_write_only_bots_group` setting which controls
who can create incoming webhooks in the organization in additon
to those who are in `can_create_bots_group`.
2025-01-30 11:37:33 -08:00
apoorvapendse
3fd5673bbd compose: Support to convert math html to markdown.
This commit tries to address the problem of not getting the
latex markdown on selecting and quoting a message which
contains normal text as well katex html elements.

It works by grabbing the parent of all the katex elements,
display (mathblocks) as well as inline expressions
and iterating over each immediate child to convert the
elements into markdown based on certain conditions.

Support has also been added to convert inline expressions to an
approximate markdown representation.

To facilitate selection of inline math expressions along with
text nodes, which are intermediate pieces of text sandwiched
between two katex spans, we transform the paste_html to
have spans instead of text nodes, so that they can be
processed by turndown js, since its filter function only
iterates through Elements and not TEXT_NODE.

The new tests have been added in katex_test_cases.json to
prevent cluttering the node tests in copy_and_paste.test.cjs.
These tests are looped over in the node tests.

Fixes #31608.
2025-01-30 11:08:56 -08:00
Sayam Samal
ead2f2d254 showroom: Fix misordering of bootstrap.portico.css.
This commit uses the same fix as the commit 6776e80, to include
`bootstrap.portico.css` and prevent webpack from misordering it from the
rest of the portico CSS chunk.
2025-01-30 10:41:22 -08:00
Maneesh Shukla
fd2b8b5e25 modal: Center modal spinner.
This commit adds the align-items property to the modal__spinner class.
This property sets the spinner in the modal to the center without
changing the spinner's position.
2025-01-30 10:31:40 -08:00
Sayam Samal
d24225c078 banners: Add navbar alerts banner testing option. 2025-01-30 10:17:39 -08:00
Sayam Samal
06005bc32c css: Redesign link styles.
This commit redesigns the link styles based on the Figma designs by
Vlad Korobov, and implements them in the navbar banners. This also
removes the `--color-text-link` which was being used in the custom
profile field links in the user card popovers while the variable did
not exist previously.
2025-01-30 10:17:39 -08:00
Sayam Samal
5ed85e0a2d buttons: Fix focus ring on tab for action and icon only buttons.
This commit fixes the bug where the focus ring was not visible while
tabbing through the buttons due to values being overridden. This also
fixes the outline offset for the banner close button to make it visible.
2025-01-30 10:17:39 -08:00
Sayam Samal
108e0f42a7 banners: Increase space between the banner label and the action buttons.
This commit Increases the left margin of the action buttons group to
add more space between the banner label and the action buttons improve
the visual consistency with the gap between the action buttons and the
banner close button.
2025-01-30 10:17:39 -08:00
Sayam Samal
073e5d2421 banners: Cleanup navbar banner related code.
This commit removes the unused code for the navbar banners from the
codebase after these banners have been updated to use the new banner
styles.

Fixes #31280.
2025-01-30 10:17:39 -08:00
Sayam Samal
cd71f7eaa8 banners: Redesign time zone update offer banner.
As part of the banner redesign project, this commit applies the new
banner styles to the time zone update offer banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
cb2d12d744 banners: Redesign server needs upgrade navbar banner.
As part of the banner redesign project, this commit applies the new
banner styles to the server needs upgrade navbar banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
4bece9189b banners: Redesign organization profile incomplete navbar banner.
As part of the banner redesign project, this commit applies the new
banner styles to the organization profile incomplete navbar banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
bf7d5637eb banners: Redesign profile missing required fields banner.
As part of the banner redesign project, this commit applies the new
banner styles to the profile missing required fields banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
73ead0be5e banners: Redesign insecure desktop app banner.
As part of the banner redesign project, this commit applies the new
banner styles to the insecure desktop app banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
9664b1b550 banners: Redesign demo organization deadline navbar banner.
As part of the banner redesign project, this commit applies the new
banner styles to the demo organization deadline navbar banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
2cb02a9289 banners: Redesign configure outgoing email banner.
As part of the banner redesign project, this commit applies the new
banner styles to the configure outgoing email banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
b7853d9eb2 banners: Redesign bankruptcy navbar banner.
As part of the banner redesign project, this commit applies the new
banner styles to the bankruptcy navbar banner.
2025-01-30 10:17:39 -08:00
Sayam Samal
d7e9efe21b banners: Improve desktop notifications banner display logic.
This commit attempts to improve the desktop notifications banner logic
by keeping a track of the notifications granted state, and only closing
the notifications banner if the user explicitly denies or grants the
permission access, or if it is denied by the browser due to repetitive
prompts for notifications permission.
2025-01-30 10:17:39 -08:00
Sayam Samal
028e9dc58a banners: Redesign desktop notifications navbar banner.
As part of the banner redesign project, this commit applies the new
banner styles to the desktop notifications navbar banner.

This commit also acts as a base for the following banner redesign
commits by defining the `banners.ts` module, which now acts as the
centralized module to handle the banner rendering and sets up the
common event listeners.
2025-01-30 10:17:39 -08:00
Vector73
32d131ab5a saved_snippet: Move "Create a new saved snippet" button to the bottom.
Renames "Add a new saved snippet" to "Create a new saved snippet" and
"Add saved snippet" tooltip to "Insert saved snippet".

Moves "Create a new saved snippet" button to the bottom sticky area of the
dropdown.
2025-01-30 09:46:32 -08:00
Vector73
51b47f4233 dropdown_widget: Add sticky_bottom_option element.
Adds `sticky_bottom_option` element to the `dropdown_widget` to
support moving of "Add a new saved snippet" button to the bottom
sticky area of the dropdown for better accessibility and UX.
2025-01-30 09:46:32 -08:00
Vector73
794bf5bfe2 saved_snippets: Add keyboard UI for inserting a saved snippet.
Adds `Ctrl+'` keyboard shortcut to open saved snippet dropdown when
the target textarea is in focus.

Fixes #31829.
2025-01-30 09:46:32 -08:00
Vector73
91ddfdadd6 saved_snippets: Move "Saved snippets" button to compose control buttons.
This is follow-up of #31359 that moves "Saved snippets" button from
"send_later" popover to message formatting buttons and adds support
to use saved snippets in message-edit UI.

Fixes #31830.
2025-01-30 09:46:32 -08:00
Maneesh Shukla
c69b119666 loading_spinner:Add spinner in the Set status button. 2025-01-30 09:25:53 -08:00
Alya Abbott
278004f174 help: Document hovering over long channel descriptions to view them. 2025-01-30 09:24:17 -08:00
Alya Abbott
bf22ac9763 help: Update doc on linking to channels and topics within Zulip. 2025-01-30 09:23:50 -08:00
apoorvapendse
c5b3c62e10 compose: Complete only stream on stream+topic typeahead with ESC.
This serves as a way to escape the subjectively annoying
requirement of having to press Tab/Enter twice to complete
a stream typeahead, in cases where you only want
to mention a stream.

Consider you write `#des` and then press `Tab`
This will put `#**design>` in the textarea and
add trigger the topic typeahead menu.

Now if you continue writing text right after the ">"
like `#**design>my sample text` and press ESC key, it
will be converted to `#**design** my sample text`.

This provides convenience of not having to press Tab
twice in order to mention stream and write some text
or just a stream mention using the Tab + Esc combination.
2025-01-29 17:55:54 -08:00
apoorvapendse
ee104ab141 compose: Prompt topic typeahead after selecting stream.
Enable a consecutive topic typeahead after a user selects a stream via the
typeahead menu. Previously, users had to manually enter ">" after selecting
a stream.

Before, encountering ">" returned "topic_jump," which prevented the
topic list from triggering since "topic_jump" indicated the topic was
selected. The implementation is changed to slice the token and process it
in get_candidates to trigger the appropriate typeahead.

Adjustments include changes to regexes for accurate triggering of stream or
topic typeaheads based on the presence of ">" in the current token.

Removes hint for stream mentioning use of ">"
for topic suggestions, although that feature is
still functional.

The hideAfterSelect() function in composebox_typeahead.ts was modified.
This prevents closing the typeahead when a stream is completed.

The TopicSuggestion type is updated to show stream typeahead suggestion
as the first option in the topic list with a privacy icon and no description
in case when no character follows the '>' i.e. when the token ends with '>'.

The edge where stream and topic have the same name is also handled with
the help of a flag.

Add stream as the prefix to topic suggestions in the typeahead.
To make this happen, changes are made in the related handlebars
template.

Update topic list stream option label.
This changes the option label for stream in the topic
list from (mention channel) to (link to channel) as per
https://zulip.com/help/link-to-a-message-or-conversation.

Tests are updated, and a new test is added to validate the behavior.
Test coverage is added for the new `render_stream_topic` method.

Fixes: #32184.
2025-01-29 17:25:19 -08:00
Apoorva Pendse
21500eddcf top_navbar: Render long stream description on hover.
This commit adds support to render long descriptions
on hovering over the narrow description.

Hides the title and associated privacy icon below
a particular screen to create more room to show
the extended description.

Sets a fixed width in case of bigger screens
for word-wrap to work.

Fixes #14729.
2025-01-29 17:02:37 -08:00
Aman Agrawal
043af2a247 navigate: Fix user unable to read top / bottom of long messages.
If the user is navigating via keyboard and the top / bottom of
the message is not visible, we scroll instead of selecting the
next message to allow user to completely see that message.
2025-01-29 16:47:00 -08:00
Karl Stolley
a21b89ab98 left_sidebar: Reduce intensity of DM group and bot icons. 2025-01-29 16:35:41 -08:00
Karl Stolley
8a76be7122 inbox_view: Place 3-dots group DM icon. 2025-01-29 16:35:41 -08:00
Karl Stolley
3295580e79 recent_view: Place 3-dots group DM icon. 2025-01-29 16:35:41 -08:00
Karl Stolley
ef8865fc2f left_sidebar: Place 3-dots group DM icon. 2025-01-29 16:35:41 -08:00
Abhay Upadhyay
f7ac7b885a narrow: Handle use of -is:dm with channels:public.
Made maybe_negated a required parameter in
check_not_both_channel_and_dm_narrow so that it doesn't raise error
when -is:dm is called with channels:public or
when -channels:public is called with is:dm
Fixes #33033
2025-01-29 16:26:36 -08:00
Apoorva Pendse
053125ec97 user_profile: Fix left overflow clipping for deactivated icon. 2025-01-29 15:51:25 -08:00
Anders Kaseorg
ac19e90f40 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-29 15:04:09 -08:00
Anders Kaseorg
23a2a31e7e stylelint: Fix declaration-property-value-no-unknown.
‘bold’ is a font-weight, not a font-style.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-29 15:04:09 -08:00