Commit Graph

62047 Commits

Author SHA1 Message Date
Lauryn Menard
fc810655e6 help: Rename "roles-and-permissions.md" to "manage-permissions.md".
Renames file and redirects existing links to "help/user-roles" as
the previous content tracks to that current file's content.

Updates existing links (excluding ReadtheDocs) to go to either
"help/user-roles" or "help/manage-permissions" depending on which
help center article applies to the content.
2024-12-11 12:02:11 -08:00
Lauryn Menard
0fd0a1ab21 help: Rename "change-a-users-role.md" to "user-roles.md".
Renames file and adds redirect to existing help center
links.
2024-12-11 12:02:11 -08:00
Alya Abbott
3737cb59a6 help: Update roles and permissions documentation. 2024-12-11 12:02:11 -08:00
Alya Abbott
f0d9193354 help: Remove mention of roles for invitation permissions. 2024-12-11 12:02:11 -08:00
Anders Kaseorg
a5d7ecd7e7 avatar: Fix missing function call. (#32667)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 10:05:01 -08:00
Anders Kaseorg
77f97762c6 eslint: Fix unicorn/explicit-length-check. (#32666)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-11 09:19:46 -08:00
Anders Kaseorg
d446b0d672 user_events: Convert module to TypeScript (#32658) 2024-12-11 09:18:52 -08:00
Anders Kaseorg
666ce4519d hashchange: Convert module to TypeScript. (#32670) 2024-12-11 09:15:18 -08:00
Anders Kaseorg
38ad1e8bdc openapi: Fix config_options.validator documentation for webhook bots.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-10 21:30:29 -08:00
Anders Kaseorg
c5aa7df1bf eslint: Clean up obsolete rules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-10 19:16:44 -08:00
Anders Kaseorg
cf1eed9c22 tools: Use top-level await.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-10 19:16:25 -08:00
Shubham Padia
f147e4dd4a Group invalid inputs (#32647)
* css: Extract invalid input outline and shadow colors to variables.

We will use these colors in future for input pills and it would be
convenient to have them in a variable.

* group_setting_pill: Show outline on invalid input.

We could have manipulate the class directly from user_group_pill. But
it felt better to have `show_outline_on_invalid_input` as a param for
the input_pill prototype since we can have a consistent error state for
other pill input boxes if we want to.

* input_pill: Widget should not show as pending after pill creation.

* group_settings: Disable save changes button if pill widget is pending.

This will disable the button for group, realm and stream group settings.

* user_group_create: Don't go to next step with pending group widget.

We just show the red outline and shaking animation as an indication that
a group widget setting is pending when the user tries to go to the add
members step.

* stream_create: Don't go to next step with pending group widget.

Fixes #32113.
We just show the red outline and shaking animation as an indication that
a group widget setting is pending when the user tries to go to the add
subscribers step.
2024-12-10 16:57:48 -08:00
Karl Stolley
34d6d3948e left_sidebar: Use font metrics to adjust browse-more label. 2024-12-10 16:27:43 -08:00
Karl Stolley
bc37be5f40 left_sidebar: Match browse-more link grid to other sidebar row values. 2024-12-10 16:27:43 -08:00
Karl Stolley
0b940602c3 left_sidebar: Better structure and style browse-more line. 2024-12-10 16:27:43 -08:00
Maneesh Shukla
74708cfd03 settings_users: Remove an unused block of code.
This commits remove the unused block of code which involves
`failed_listing_users` when there is no users to list.

Since, this is a case which is not possible to occur because there
should always be at least one active user, i.e. yourself.
2024-12-10 15:45:30 -08:00
evykassirer
c067b06f8e compose: Clear preview area when starting a new draft. 2024-12-10 15:44:02 -08:00
Tim Abbott
dc58c8450f user_group_edit: Document group creator API details. 2024-12-10 12:11:59 -08:00
Varun Singh
010e2b9867 user_group_edit: Convert module to TypeScript. 2024-12-10 12:07:46 -08:00
Varun Singh
0ed81f6bef user_group_edit: Don't mutate data object.
Instead of mutating data object with fields
that it does not have at declaration, we should declare the
complete object once.
This is a prep-commit for upcoming TypeScript migration of module.
2024-12-10 12:07:45 -08:00
Varun Singh
6e06a452db settings_org: Consistenly pass arguments as jQuery objects. 2024-12-10 12:07:45 -08:00
evykassirer
7bd4016254 message_events: Convert module to typescript. 2024-12-10 10:52:01 -08:00
evykassirer
f241aa77c1 message_events: Don't accept undefined filter in filter_has_term_type.
Accepting an undefined Filter  has no advantage; every caller either
passes a defined Filter or has to later check for undefined anyway.
2024-12-10 10:52:01 -08:00
evykassirer
ca4e425031 message_edit: Don't validate stream message mentions for DMs.
This was passing typechecking previously because of an
incorrect assertion and NaN getting into `validate_stream_message_mentions`.
2024-12-10 10:16:27 -08:00
Alex Vandiver
2250ae3f0d migrations: Update user and realm preferences of zh_Hant to zh_TW. 2024-12-10 10:00:45 -08:00
Alex Vandiver
25069c8d47 i18n: Merge zh_Hant into zh_TW. 2024-12-10 10:00:45 -08:00
Anders Kaseorg
84d5ef1285 upload: Show text/plain uploads inline.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-10 09:51:57 -08:00
Sahil Batra
f4cbdd8c9c css: Remove unnecessary CSS for ".clear_search_button".
We can remove some of the CSS properties for
".clear_search_button" selectors because they
were being overridden by CSS set using more
specific selectors or by CSS set using
".bootstrap-btn" selector.

As a result, we can remove some the overriding
CSS as well where they were being used to set
default values.
2024-12-10 09:47:01 -08:00
Sahil Batra
c4058ffc22 user_profile: Use grid layout for stream search input.
This commit updates CSS to use grid layout for stream
search input in user profile modal so that we can have
clean CSS and do not have different values for padding,
right and margin properties at different places.

This also fixes the alignment of "x" button.

Also, the heading and search input were not aligned
perfectly, so changed the CSS to they align better.
2024-12-10 09:47:01 -08:00
Sahil Batra
835bedb515 recent-view: Use grid layout for search input.
This commit updates CSS to use grid layout for search input
in recent conversations view so that we can have clean CSS
and do not have different values for padding, right and margin
properties at different places.

This also fixes the alignment of "x" button.
2024-12-10 09:47:01 -08:00
Sahil Batra
1555e99abe settings: Use grid layout for search in stream and groups UI.
This commit updates the search input to in stream and groups
UI to use grid layout. This also helps in fixing the alignment
of the "x" button.
2024-12-10 09:47:01 -08:00
Maneesh Shukla
6a76fcfd0e settings: Disable the move-handle for new-choice-row.
This commit hides the move-handle for the new-choice-row in the
profile field choice editor, since the empty row can't be moved.

Fixes: #32612.
2024-12-09 17:00:14 -08:00
Lauryn Menard
752e8625d0 help: Add pick plan step for self-hosted invoice billing upgrade. 2024-12-09 10:11:59 -08:00
Aman Agrawal
0b2fdc4506 tippyjs: Fix user typeahead hidden when hovering over emoji name.
Hiding on popovers on hovering over emoji name is not required since
this just a tooltip and not a popover.
2024-12-09 10:02:50 -08:00
Aman Agrawal
4b82c3258f narrow: Fix unmuted and followed topics not visible in combined feed. 2024-12-08 18:34:28 -08:00
Aman Agrawal
276e547824 user_topics_ui: Rerender combined feed to make unmuted topics visible.
Since combined feed no longer contains a continuous history of
muted messages, we need to rerender it display the newly visible
messages.
2024-12-08 18:34:28 -08:00
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
Jenna Jaehnig
0f59e2e788 portico: Load medium-sized avatar in preview.
This commit is to use medium-size avatar images when previewing avatars during the copy account settings flow. Before this commit, the avatar images were blurry when using the avatar from an existing account while joining a new realm. Now, the avatar is clear.

Fixes #32604.
2024-12-08 16:02:55 -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
40c074c8b8 register: Fix missing translation tag on 'Email'. 2024-12-07 21:56:34 -08:00
Tim Abbott
c39cb05bf4 docs: Rewrite other Linux requirements text.
This is a bit clearer and more appropriate for the heading-based setup
of this page.
2024-12-06 14:37:48 -08:00
Karl Stolley
0200753978 dev_docs: Establish Other Linux tab. 2024-12-06 14:37:48 -08:00
PieterCK
6543dadd0f slack_import: Refactor a convert_slack_formatting.
This prep commit extracts the logic for converting Slack formatted text
into Zulip friendly markdown from `convert_to_zulip_markdown` into a new
helper function, `convert_slack_formatting`.

This is done to make reformating logic be reusable else where such as in
the Slack webhook or Slack incoming webhook.
2024-12-06 13:11:44 -08:00
PieterCK
4b472611d0 slack_import: Refactor a convert_slack_workspace_mentions.
This prep commit extracts the logic for reformatting Slack mentions into
Zulip mentions from `convert_to_zulip_markdown` into a new helper
function, `convert_slack_workspace_mentions`.

This is done to make the reformatting logic be reusable else where such
as in the Slack webhook or Slack incoming webhook.
2024-12-06 13:11:44 -08:00
PieterCK
ff4d5daef4 slack_import: Reorder functions used in convert_to_zulip_markdown.
This prep commit moves `convert_to_zulip_markdown` and
`convert_markdown_syntax` so that they appear after the various
helper functions used in the main logic for converting Slack
messages to Zulip's formatting. This adjustment aligns with code
style conventions, improving readability.

The change also prepares the codebase for reusing Slack text
reformatting logic in the Slack incoming webhook.
2024-12-06 13:11:44 -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