Zixuan James Li
cf9b95b95a
user_groups: rename create_user_group to create_user_group_in_database.
...
To avoid people calling "create_user_group" instead of
"check_add_user_group", we rename it to make its purpose clearer.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2023-03-27 09:05:00 -07:00
Zixuan James Li
e331c356e4
user_groups: Use check_add_user_group instead in test cases.
...
"check_add_user_group" is a safer helper function than
"create_user_group" to use when creating user_groups. It does
error handling and notify the client with the appropriate event.
Note that the populate_db command still uses "create_user_group"
because we do not need to enqueue events at that point.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2023-03-27 09:05:00 -07:00
Zixuan James Li
0f5d6432a4
user_groups: Move create_user_group to zerver.actions.user_groups.
...
Since this function creates a new user group into the database,
it is more appropriate to have it not as a generic "lib" function
but as an "action".
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2023-03-27 09:05:00 -07:00
Ujjawal Modi
d2db71fdf4
bots: Disable edit button for system bots.
...
Disabled "Edit bot" and "Deactivate" action buttons
for system bots as they cannot be edited or deactivated.
Fixes #24425 .
2023-03-27 09:03:53 -07:00
Sahil Batra
6582374178
server_events_dispatch: Fix live-update of email_address_visibility.
2023-03-27 09:02:00 -07:00
Anders Kaseorg
38539c8fed
dependencies: Add Zod and typing dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-25 11:18:38 -07:00
Anders Kaseorg
4c5042e736
eslint: Loosen no-use-before-define for TS like we do for JS.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-25 09:40:57 -07:00
Sahil Singh
0bcf03ea64
stream_settings: Fix stream description overflow in stream settings.
...
With longer stream descriptions, the text overflows in stream settings.
Fix this with 'word-break: break-all;'.
2023-03-24 17:39:04 -07:00
Anders Kaseorg
d274583d8f
styles: Use modern color notation.
...
postcss-preset-env transpiles this back as necessary. (It does a
better job than we did, in fact: we had several four-argument hsl()
calls that should have been hsla().)
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-24 17:26:55 -07:00
YashRE42
4853a9a736
navbar: Use feathericon close icon.
...
This uses the new close icon which we prefer over the one made available
from bootstrap. It also adds a reference to the icon in THIRDPARTY.
2023-03-24 16:30:15 -07:00
YashRE42
e3ad9c10bb
navbar: Add Ionic search icon and use for navbar search.
...
This adds a new search icon which we prefer over the one made
available from bootstrap, and replaces search icons in navbar
search with the Ionic icon.
2023-03-24 16:30:15 -07:00
Anders Kaseorg
e029fe6249
message_list_view: Initialize status_message even for hidden messages.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-24 16:19:49 -07:00
SameepAher
6211939020
css: Change the selector name of the <i></i> tag.
...
Changed the id name of the <i></i> tag to user_profile_edit_button_icon
in the user profile modal, as earlier it was edit-button, which is too
vague of a selector name.
2023-03-24 15:47:54 -07:00
SameepAher
724af12cd6
css: Fix edit icon bug in user profile modal.
...
Close user profile modal on clicking the space around edit button, by
calling hide_user_profile() on clicking the hover box around the edit
button.
Also, modified the hover box to center around the edit button.
2023-03-24 15:47:54 -07:00
David Rosa
4508fb5d5c
help: Add a dedicated page on how to format lists.
...
- Updates example and screenshot for numbered lists.
2023-03-24 15:19:08 -07:00
Alex Vandiver
93bfd3fb5f
sentry: Provide a server-side tunnel.
...
Some well-intentioned adblockers also block Sentry client-side error
reporting. Provide an endpoint on the Zulip server which forwards to
the Sentry server, so that these requests are not blocked.
2023-03-24 15:16:38 -07:00
Alya Abbott
926cb84ca5
portico: Rewrite "Why Zulip?" landing page.
2023-03-24 15:15:16 -07:00
Alex Vandiver
164d58bec9
web: Save a 301 redirect from /help to /help/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
6f4d22762c
web: Save a 301 redirect from /new to /new/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
4914c3671f
web: Save a 301 redirect from /case-studies/x to /case-studies/x/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
2ab79c0477
web: Save a 301 redirect from /self-hosting to /self-hosting/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
0b80397cfd
web: Save a 301 redirect from /support to /support/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
ab7ff6b582
web: Save a 301 redirect from /billing to /billing/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
8da1c51a06
web: Save a 301 redirect from /security to /security/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
3e307781dd
web: Save a 301 redirect from /for/x to /for/x/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
4b21852e72
web: Save a 301 redirect from /why-zulip to /why-zulip/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
14d19c00d7
web: Save a 301 redirect from /features to /features/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
1d428af776
web: Save a 301 redirect from /privacy/ to /policies/privacy.
2023-03-24 14:51:01 -07:00
Alex Vandiver
b5731c55b7
web: Save two 301 redirects from /privacy to /privacy/ to /policies/privacy.
2023-03-24 14:51:01 -07:00
Alex Vandiver
822683249d
web: Save a 301 redirect from /terms/ to /policies/terms.
2023-03-24 14:51:01 -07:00
Alex Vandiver
ce847fd09c
web: Save two 301 redirects from /terms to /terms/ to /policies/terms.
2023-03-24 14:51:01 -07:00
Alex Vandiver
d9daeb13e0
web: Save a needless 301 redirect from /apps to /apps/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
61adc9cfcc
web: Save a needless 301 redirect from /team to /team/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
c686c5ed0f
web: Save a needless 301 redirect from /plans to /plans/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
bf06d493ee
web: Save a needless 301 redirect from /history to /history/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
eb81e62eaa
web: Save a needless 301 redirect from /hello to /hello/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
a1570ff3dd
web: Save a needless 301 redirect from /integrations to /integrations/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
5967dda35d
web: Save a needless 301 redirect from /upgrade to /upgrade/.
2023-03-24 14:51:01 -07:00
David Rosa
061f1dc43b
help: Add tip about `+` keyboard shortcut to "Emoji reactions" page.
...
Adds `keyboard_tip` to the "Add a new reaction" section.
2023-03-24 12:58:35 -07:00
David Rosa
707fa87c74
help: Document `=` keyboard shortcut.
...
Documents the new shortcut in the `?` menu, Keyboard Shortcuts page,
and Emoji Reactions page.
2023-03-24 12:58:35 -07:00
oribe1115
26691a3bd1
docs: Add a Japanese translation style guide.
...
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Greg Price <gnprice@gmail.com>
2023-03-24 12:36:48 -07:00
Daniil Fadeev
e8f5e8da4f
message_controls: Fix "undefined" tooltip content.
2023-03-24 12:26:57 -07:00
David Rosa
00988c7ea8
help: Document mark messages as read via recent conversations.
...
- Adds `via-recent-conversations` tab to document the feature.
- Changes `desktop-web` tab -> `via-left-sidebar` for consistency.
2023-03-24 12:09:58 -07:00
David Rosa
99f48ef587
help: Move how to open Recent Conversations to include block.
...
Replaces instruction in Reading topics and Recent conversations
with include block.
2023-03-24 12:09:58 -07:00
Aman Agrawal
887cacd564
portico-header: Tag all links for translation.
2023-03-24 12:08:49 -07:00
Alex Vandiver
7448ab6234
bootstrap-aws-installer: Update the github.com SSH key.
...
Per https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ .
2023-03-24 12:01:55 -07:00
N-Shar-ma
b8cb72630f
click_handlers: Ensure typeahead clicks do not collapse compose box.
...
Added condition for when a user clicks anywhere in a typeahead menu, be
it the header or empty space at the top and bottom, to not collapse the
compose box.
This fixes the bug where clicking anywhere on the typeahead except the
options would result in the compose box collapsing, but the typeahead
menu staying open and still working (on selecting a option in this state,
it would be inserted at the start, as visible on reopening the compose box).
2023-03-24 12:00:57 -07:00
Anders Kaseorg
1db7f80f94
ruff: Fix PLW1508 Invalid type for environment variable default.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-24 11:57:07 -07:00
Anders Kaseorg
b719227b04
ruff: Fix C416 Unnecessary `dict` comprehension.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-24 11:57:07 -07:00
Anders Kaseorg
869ea542fa
ruff: Fix PLR1711 Useless `return` statement at end of function.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-03-24 11:57:07 -07:00