Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Rename "profile summary" to "user card".
Lauryn Menard48e2482bbd1d
diff --git a/static/js/settings_profile_fields.js b/static/js/settings_profile_fields.jsindex e1e996200c9..bf3024a2a91 100644--- a/static/js/settings_profile_fields.js+++ b/static/js/settings_profile_fields.js@@ -59,7 +59,7 @@ export function field_type_id_to_string(type_id) {return undefined;}-// Checking custom profile field type is valid for showing display in profile summary checkbox field.+// Checking custom profile field type is valid for showing display on user card checkbox field.function is_valid_to_display_in_summary(field_type) {if (field_type === field_types.LONG_TEXT.id || field_type === field_types.USER.id) {return false;@@ -246,7 +246,7 @@ function set_up_create_field_form() {$("#profile_field_hint").val(default_hint);}- // Not showing "display in profile summary" option for long text/user profile field.+ // Not showing "display on user card" option for long text/user profile field.if (is_valid_to_display_in_summary(profile_field_type)) {$("#profile_field_display_in_profile_summary").closest(".input-group").show();const check_display_in_profile_summary_by_default =@@ -310,8 +310,7 @@ function open_custom_profile_field_form_modal() {clear_form_data();// If we already have 2 custom profile fields configured to be- // displayed in the user profile summary, disable the input to- // change it.+ // displayed on the user card, disable the input to change it.$("#add-new-custom-profile-field-form #profile_field_display_in_profile_summary").prop("disabled",display_in_profile_summary_fields_limit_reached,@@ -469,8 +468,8 @@ function open_edit_form_modal(e) {function set_initial_values_of_profile_field() {const $profile_field_form = $("#edit-custom-profile-field-form-" + field_id);- // If its passes or equals the max limit we are disabling option for display custom profile field- // in user profile summary and adding tooptip except already checked field.+ // If it exceeds or equals the max limit, we are disabling option for display custom+ // profile field on user card and adding tooptip, unless the field is already checked.if (display_in_profile_summary_fields_limit_reached && !field.display_in_profile_summary) {$profile_field_form.find("input[name=display_in_profile_summary]")@@ -565,8 +564,8 @@ function open_edit_form_modal(e) {});}-// If passes or equals the max limit, we are disabling option for-// display custom profile field in user profile summary and adding tooltip.+// If exceeds or equals the max limit, we are disabling option for+// display custom profile field on user card and adding tooltip.function update_profile_fields_checkboxes() {// Disabling only uncheck checkboxes in table, so user should able uncheck checked checkboxes.$("#admin_profile_fields_table .display_in_profile_summary_checkbox_false").prop(diff --git a/static/js/tippyjs.js b/static/js/tippyjs.jsindex c30fbae13e1..d2d013ffa9e 100644--- a/static/js/tippyjs.js+++ b/static/js/tippyjs.js@@ -386,7 +386,7 @@ export function initialize() {"#add-new-custom-profile-field-form .display_in_profile_summary_tooltip",],content: $t({- defaultMessage: "Only 2 custom profile fields can be displayed in the profile summary.",+ defaultMessage: "Only 2 custom profile fields can be displayed on the user card.",}),appendTo: () => document.body,onTrigger(instance) {diff --git a/static/templates/keyboard_shortcuts.hbs b/static/templates/keyboard_shortcuts.hbsindex f505dc32a80..4772e72f3f9 100644--- a/static/templates/keyboard_shortcuts.hbs+++ b/static/templates/keyboard_shortcuts.hbs@@ -209,7 +209,7 @@<td><span class="hotkey"><kbd class="arrow-key">←</kbd></span></td></tr><tr>- <td class="definition">{{t "Show message sender's profile" }}</td>+ <td class="definition">{{t "Show message sender's user card" }}</td><td><span class="hotkey"><kbd>U</kbd></span></td></tr><tr>diff --git a/static/templates/me_message.hbs b/static/templates/me_message.hbsindex da4cf21d744..5548af43ff1 100644--- a/static/templates/me_message.hbs+++ b/static/templates/me_message.hbs@@ -1,13 +1,13 @@<span class="message_sender no-select"><span class="sender_info_hover">- <span title="{{t 'View user profile' }} (u)">+ <span title="{{t 'View user card' }} (u)">{{> message_avatar}}</span></span><span class="sender-status"><span class="sender_info_hover sender_name-in-status auto-select" role="button" tabindex="0">- <span title="{{t 'View user profile' }} (u)" >+ <span title="{{t 'View user card' }} (u)" >{{msg/sender_full_name}}</span></span>diff --git a/static/templates/message_body.hbs b/static/templates/message_body.hbsindex 8c0a79282b5..1ecc11f1e25 100644--- a/static/templates/message_body.hbs+++ b/static/templates/message_body.hbs@@ -2,7 +2,7 @@{{#unless status_message}}<span class="message_sender sender_info_hover no-select">{{#if include_sender}}- <span title="{{t 'View user profile' }} (u)">+ <span title="{{t 'View user card' }} (u)">{{> message_avatar ~}}<span class="sender_name auto-select" role="button" tabindex="0">{{msg/sender_full_name}}{{> status_emoji msg/status_emoji_info}}</span>{{#if sender_is_bot}}diff --git a/static/templates/settings/add_new_custom_profile_field_form.hbs b/static/templates/settings/add_new_custom_profile_field_form.hbsindex 9b2442f8bc9..a2c226d32c2 100644--- a/static/templates/settings/add_new_custom_profile_field_form.hbs+++ b/static/templates/settings/add_new_custom_profile_field_form.hbs@@ -40,7 +40,7 @@<label class="checkbox profile_field_display_label" for="profile_field_display_in_profile_summary"><input type="checkbox" id="profile_field_display_in_profile_summary" name="display_in_profile_summary"/><span></span>- {{t 'Display in profile summary' }}+ {{t 'Display on user card' }}</label></div></div>diff --git a/static/templates/settings/edit_custom_profile_field_form.hbs b/static/templates/settings/edit_custom_profile_field_form.hbsindex 882c944307b..b4c4ca50d3d 100644--- a/static/templates/settings/edit_custom_profile_field_form.hbs+++ b/static/templates/settings/edit_custom_profile_field_form.hbs@@ -41,7 +41,7 @@<label class="checkbox edit_profile_field_display_label" for="edit_display_in_profile_summary_{{id}}"><input class="edit_display_in_profile_summary" type="checkbox" id="edit_display_in_profile_summary_{{id}}" name="display_in_profile_summary" {{#if display_in_profile_summary}} checked="checked" {{/if}}/><span></span>- {{t 'Display in profile summary' }}+ {{t 'Display on user card' }}</label></div>{{/if}}diff --git a/static/templates/settings/profile_field_settings_admin.hbs b/static/templates/settings/profile_field_settings_admin.hbsindex 3ad1cc6c8e9..84693b25a01 100644--- a/static/templates/settings/profile_field_settings_admin.hbs+++ b/static/templates/settings/profile_field_settings_admin.hbs@@ -13,7 +13,7 @@<th>{{t "Hint" }}</th><th>{{t "Type" }}</th>{{#if is_admin}}- <th class="display">{{t "Summary"}}</th>+ <th class="display">{{t "Card"}}</th><th class="actions">{{t "Actions" }}</th>{{/if}}</tbody>diff --git a/templates/zerver/help/custom-profile-fields.md b/templates/zerver/help/custom-profile-fields.mdindex 69acf6806ee..59a385e5974 100644--- a/templates/zerver/help/custom-profile-fields.md+++ b/templates/zerver/help/custom-profile-fields.md@@ -56,13 +56,13 @@ There are several different types of fields available.* **Person picker**: For selecting one or more users, like "Manager" or"Direct reports".-## Display custom fields in user profile summaries+## Display custom fields on user card-Organizations may find it useful to display additional fields in a user's-profile summary, such as pronouns, GitHub username, job title, team, etc.+Organizations may find it useful to display additional fields on the+user card, such as pronouns, GitHub username, job title, team, etc.All field types other than "Long text" or "Person" have a checkbox option-that controls whether to display a custom field in a user's profile summary.+that controls whether to display a custom field on the user card.There's a limit to the number of custom profile fields that can be displayedat a time. If the maximum number of fields is already selected, all unselectedcheckboxes will be disabled.@@ -74,14 +74,14 @@ checkboxes will be disabled.1. In the **Actions** column, click the **pencil** (<i class="fa fa-pencil"></i>)icon for the profile field you want to edit.-1. Toggle **Display in profile summary**.+1. Toggle **Display on user card**.4. Click **Save changes**.!!! tip ""You can also choose which custom profile fields will be displayed by toggling- the checkboxes in the **Summary** column of the **Custom profile fields** table.+ the checkboxes in the **Card** column of the **Custom profile fields** table.{end_tabs}diff --git a/templates/zerver/help/include/manage-this-user.md b/templates/zerver/help/include/manage-this-user.mdindex e9fd41bbc0e..048679f63bf 100644--- a/templates/zerver/help/include/manage-this-user.md+++ b/templates/zerver/help/include/manage-this-user.md@@ -1,3 +1,3 @@-{!profile-summary-three-dot-menu.md!}+{!user-card-three-dot-menu.md!}1. Click **Manage this user**.diff --git a/templates/zerver/help/include/profile-summary-three-dot-menu.md b/templates/zerver/help/include/profile-summary-three-dot-menu.mddeleted file mode 100644index 4f4d8e0f299..00000000000--- a/templates/zerver/help/include/profile-summary-three-dot-menu.md+++ /dev/null@@ -1,4 +0,0 @@-{!right-sidebar-profile-menu.md!}--1. Click on the **ellipsis** (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>)- in the user's profile summary.diff --git a/templates/zerver/help/include/right-sidebar-profile-menu.md b/templates/zerver/help/include/right-sidebar-user-card.mdsimilarity index 69%rename from templates/zerver/help/include/right-sidebar-profile-menu.mdrename to templates/zerver/help/include/right-sidebar-user-card.mdindex bf0b7e09928..66997996a50 100644--- a/templates/zerver/help/include/right-sidebar-profile-menu.md+++ b/templates/zerver/help/include/right-sidebar-user-card.md@@ -1,4 +1,4 @@1. Hover over a user's name in the right sidebar.1. Click on the **ellipsis** (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>)- to the right of their name.+ to the right of their name to open their **user card**.diff --git a/templates/zerver/help/include/right-sidebar-view-full-profile.md b/templates/zerver/help/include/right-sidebar-view-full-profile.mdindex b1ddb531ead..5469a3bbe9c 100644--- a/templates/zerver/help/include/right-sidebar-view-full-profile.md+++ b/templates/zerver/help/include/right-sidebar-view-full-profile.md@@ -1,3 +1,3 @@-{!right-sidebar-profile-menu.md!}+{!right-sidebar-user-card.md!}1. Click **View full profile**.diff --git a/templates/zerver/help/include/self-user-actions-menu.md b/templates/zerver/help/include/self-user-card.mdsimilarity index 67%rename from templates/zerver/help/include/self-user-actions-menu.mdrename to templates/zerver/help/include/self-user-card.mdindex e17075d31f3..e2a458fafac 100644--- a/templates/zerver/help/include/self-user-actions-menu.md+++ b/templates/zerver/help/include/self-user-card.md@@ -1,3 +1,4 @@1. Hover over your name in the right sidebar.-1. Click on the **ellipsis** (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>).+1. Click on the **ellipsis** (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>)+ to open your **user card**.diff --git a/templates/zerver/help/include/user-card-three-dot-menu.md b/templates/zerver/help/include/user-card-three-dot-menu.mdnew file mode 100644index 00000000000..cd72554cee0--- /dev/null+++ b/templates/zerver/help/include/user-card-three-dot-menu.md@@ -0,0 +1,3 @@+{!right-sidebar-user-card.md!}++1. Click on the **ellipsis** (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) in the user card.diff --git a/templates/zerver/help/keyboard-shortcuts.md b/templates/zerver/help/keyboard-shortcuts.mdindex 7086b3c151d..cd51032004b 100644--- a/templates/zerver/help/keyboard-shortcuts.md+++ b/templates/zerver/help/keyboard-shortcuts.md@@ -139,7 +139,7 @@ below, and add more to your repertoire as needed.### For a selected message (outlined in blue)-* **Show sender's profile**: <kbd>U</kbd>+* **Show message sender's user card**: <kbd>U</kbd>* **View image**: <kbd>V</kbd>diff --git a/templates/zerver/help/mention-a-user-or-group.md b/templates/zerver/help/mention-a-user-or-group.mdindex b2aa4734b34..15901c82a66 100644--- a/templates/zerver/help/mention-a-user-or-group.md+++ b/templates/zerver/help/mention-a-user-or-group.md@@ -23,7 +23,7 @@ messages and alert words.{start_tabs}-{!right-sidebar-profile-menu.md!}+{!right-sidebar-user-card.md!}1. Select **Copy mention syntax** to add it to your clipboard.@@ -35,7 +35,8 @@ messages and alert words.{start_tabs}-1. Click on a user's profile picture or name on a message they sent.+1. Click on a user's profile picture or name on a message they sent+ to open their **user card**.1. Select **Reply mentioning user** to start a reply to the conversationwith a mention inserted into the compose box.diff --git a/templates/zerver/help/mute-a-user.md b/templates/zerver/help/mute-a-user.mdindex d9e2badb517..88b8e03bf37 100644--- a/templates/zerver/help/mute-a-user.md+++ b/templates/zerver/help/mute-a-user.md@@ -51,7 +51,7 @@ have the following effects:{start_tabs}-{!profile-summary-three-dot-menu.md!}+{!user-card-three-dot-menu.md!}1. Click **Mute this user**.@@ -60,7 +60,8 @@ have the following effects:!!! Tip ""You can also click on a user's profile picture or name on a- message they sent, and skip to step 3.+ message they sent to open their **user card**, and skip to+ step 3.{end_tabs}diff --git a/templates/zerver/help/private-messages.md b/templates/zerver/help/private-messages.mdindex 61852da5f76..bbf8eac3243 100644--- a/templates/zerver/help/private-messages.md+++ b/templates/zerver/help/private-messages.md@@ -29,8 +29,9 @@ and do not appear in your list of streams.!!! tip ""- You can also click on any user in the right sidebar, or click on a- user's profile picture or name, and select **Send private message**.+ You can also click on any user in the right sidebar to start composing+ a private message to them. Or open their **user card** by clicking on+ their profile picture or name, and select **Send private message**.{tab|mobile}diff --git a/templates/zerver/help/status-and-availability.md b/templates/zerver/help/status-and-availability.mdindex 422709bc960..9b0d3f02c33 100644--- a/templates/zerver/help/status-and-availability.md+++ b/templates/zerver/help/status-and-availability.md@@ -23,7 +23,7 @@ You can set a status emoji, status message, or both.{tab|desktop-web}-{!self-user-actions-menu.md!}+{!self-user-card.md!}1. Click **Set a status**.@@ -52,8 +52,8 @@ and compose box.You can view status messages by hovering over your or anyone else's name in theleft or right sidebar, or by clicking the user's name or avatar in the main-message feed. If someone hasn't set a message as part of their status, then no-status message will appear.+message feed to open their **user card**. If someone hasn't set a message as+part of their status, then no status message will appear.## Availability@@ -88,7 +88,7 @@ the UI will be frozen as the approximate time you enabled this setting.{tab|desktop-web}-{!self-user-actions-menu.md!}+{!self-user-card.md!}1. To enable, you'll select **Go invisible**.diff --git a/templates/zerver/help/view-messages-sent-by-a-user.md b/templates/zerver/help/view-messages-sent-by-a-user.mdindex 33ae36f11ee..172e9deb14c 100644--- a/templates/zerver/help/view-messages-sent-by-a-user.md+++ b/templates/zerver/help/view-messages-sent-by-a-user.md@@ -7,7 +7,7 @@ including yourself.{start_tabs}-{!right-sidebar-profile-menu.md!}+{!right-sidebar-user-card.md!}1. Select **View messages sent** to view all messages sent by this user.@@ -17,7 +17,7 @@ including yourself.{start_tabs}-{!self-user-actions-menu.md!}+{!self-user-card.md!}1. Select **View messages sent** to view all the messages you've sent.@@ -33,7 +33,7 @@ including yourself.{start_tabs}-{!self-user-actions-menu.md!}+{!self-user-card.md!}1. Select **View messages with yourself** to view messages you sent toyourself.diff --git a/templates/zerver/help/view-someones-profile.md b/templates/zerver/help/view-someones-profile.mdindex 9e969354780..6451381c924 100644--- a/templates/zerver/help/view-someones-profile.md+++ b/templates/zerver/help/view-someones-profile.md@@ -47,7 +47,8 @@ Additional tabs showing:!!! Tip ""You can also click on a user's profile picture or name on a- message they sent, and skip to the last step.+ message they sent to open their **user card**, and skip to+ the last step.{tab|mobile}diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 1a4afa65a3f..0e2c824c86f 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -15593,7 +15593,7 @@ components:display_in_profile_summary:type: booleandescription: |- Whether the custom profile field, display or not in the user profile summary.+ Whether the custom profile field, display or not on the user card.Currently it's value not allowed to be `true` of `Long text` and `Person picker`[profile field types](/help/custom-profile-fields#profile-field-types).