From c16d1e4661f4c71cc9897a49420255c20593bf7c Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Wed, 1 Nov 2023 18:02:42 +0800 Subject: [PATCH] refactor(console): fix organization issues --- .../console/src/assets/icons/role-feature.svg | 43 +++++++++++++++++++ .../OrganizationRolesSelect/index.module.scss | 15 +++++++ .../OrganizationRolesSelect/index.tsx | 24 ++++++++++- .../ds-components/Button/index.module.scss | 13 +----- .../src/ds-components/Select/MultiSelect.tsx | 18 ++++---- .../ds-components/Select/index.module.scss | 4 ++ .../Members/AddMembersToOrganization.tsx | 1 + .../OrganizationDetails/Members/index.tsx | 3 +- .../OrganizationsTable/index.tsx | 8 ++++ .../Organizations/PermissionsField/index.tsx | 21 ++++++--- .../pages/Organizations/RolesField/index.tsx | 7 ++- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 3 +- .../admin-console/organizations.ts | 3 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- .../admin-console/organization-details.ts | 4 +- .../admin-console/organizations.ts | 4 +- .../translation/admin-console/user-details.ts | 3 +- 56 files changed, 200 insertions(+), 120 deletions(-) create mode 100644 packages/console/src/assets/icons/role-feature.svg create mode 100644 packages/console/src/components/OrganizationRolesSelect/index.module.scss diff --git a/packages/console/src/assets/icons/role-feature.svg b/packages/console/src/assets/icons/role-feature.svg new file mode 100644 index 000000000..ad20408b7 --- /dev/null +++ b/packages/console/src/assets/icons/role-feature.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/console/src/components/OrganizationRolesSelect/index.module.scss b/packages/console/src/components/OrganizationRolesSelect/index.module.scss new file mode 100644 index 000000000..5cd052c5e --- /dev/null +++ b/packages/console/src/components/OrganizationRolesSelect/index.module.scss @@ -0,0 +1,15 @@ +@use '@/scss/underscore' as _; + +.roleOption { + display: flex; + align-items: center; + gap: _.unit(1); + + &.large { + gap: _.unit(3); + } + + > span { + font: var(--font-label-2); + } +} diff --git a/packages/console/src/components/OrganizationRolesSelect/index.tsx b/packages/console/src/components/OrganizationRolesSelect/index.tsx index 9cf405fc7..e335849cd 100644 --- a/packages/console/src/components/OrganizationRolesSelect/index.tsx +++ b/packages/console/src/components/OrganizationRolesSelect/index.tsx @@ -1,8 +1,29 @@ import { type OrganizationScope } from '@logto/schemas'; +import classNames from 'classnames'; +import RoleIcon from '@/assets/icons/role-feature.svg'; import MultiSelect, { type Option } from '@/ds-components/Select/MultiSelect'; import useSearchValues from '@/hooks/use-search-values'; +import ThemedIcon from '../ThemedIcon'; + +import * as styles from './index.module.scss'; + +type RoleOptionProps = { + title?: string; + value: string; + size?: 'small' | 'large'; +}; + +export function RoleOption({ title, value, size = 'small' }: RoleOptionProps) { + return ( +
+ + {title ?? value} +
+ ); +} + type Props = { value: Array>; onChange: (value: Array>) => void; @@ -20,8 +41,9 @@ function OrganizationRolesSelect({ value, onChange, keyword, setKeyword }: Props ({ value: id, title: name }))} - placeholder="organizations.search_permission_placeholder" + placeholder="organizations.search_role_placeholder" isOptionsLoading={isLoading} + renderOption={RoleOption} onChange={onChange} onSearch={setKeyword} /> diff --git a/packages/console/src/ds-components/Button/index.module.scss b/packages/console/src/ds-components/Button/index.module.scss index 9e403c349..08e6ebea6 100644 --- a/packages/console/src/ds-components/Button/index.module.scss +++ b/packages/console/src/ds-components/Button/index.module.scss @@ -58,22 +58,11 @@ &.small { height: 30px; padding: 0 _.unit(3); + gap: _.unit(1); &.text { height: 24px; } - - .icon { - &:not(:last-child) { - margin-right: _.unit(1); - } - } - - .trailingIcon { - &:not(:first-child) { - margin-left: _.unit(1); - } - } } &.medium { diff --git a/packages/console/src/ds-components/Select/MultiSelect.tsx b/packages/console/src/ds-components/Select/MultiSelect.tsx index 3a7f1d8fe..e60591e08 100644 --- a/packages/console/src/ds-components/Select/MultiSelect.tsx +++ b/packages/console/src/ds-components/Select/MultiSelect.tsx @@ -1,4 +1,5 @@ import { type AdminConsoleKey } from '@logto/phrases'; +import { cond } from '@silverhand/essentials'; import classNames from 'classnames'; import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -28,6 +29,7 @@ type Props = { error?: string | boolean; placeholder?: AdminConsoleKey; isOptionsLoading?: boolean; + renderOption?: (option: Option) => React.ReactNode; }; function MultiSelect({ @@ -40,6 +42,7 @@ function MultiSelect({ error, placeholder, isOptionsLoading, + renderOption = ({ title, value }) => title ?? value, }: Props) { const inputRef = useRef(null); const selectRef = useRef(null); @@ -103,17 +106,16 @@ function MultiSelect({ }} > {value.map((option) => { - const { value, title } = option; return ( { event.stopPropagation(); }} > - {title ?? value} + {renderOption(option)} ({ { setKeyword(value); @@ -154,15 +156,15 @@ function MultiSelect({ {filteredOptions.length === 0 && (
{t('errors.empty')}
)} - {filteredOptions.map(({ value, title }) => ( + {filteredOptions.map((option) => ( { event.preventDefault(); - handleSelect({ value, title }); + handleSelect(option); }} > - {title ?? value} + {renderOption(option)} ))} diff --git a/packages/console/src/ds-components/Select/index.module.scss b/packages/console/src/ds-components/Select/index.module.scss index 6e12026c0..bd5e60e1d 100644 --- a/packages/console/src/ds-components/Select/index.module.scss +++ b/packages/console/src/ds-components/Select/index.module.scss @@ -47,6 +47,10 @@ background: transparent; flex-grow: 1; padding: _.unit(0.5); + + &::placeholder { + color: var(--color-placeholder); + } } } diff --git a/packages/console/src/pages/OrganizationDetails/Members/AddMembersToOrganization.tsx b/packages/console/src/pages/OrganizationDetails/Members/AddMembersToOrganization.tsx index eb645581c..b912b0789 100644 --- a/packages/console/src/pages/OrganizationDetails/Members/AddMembersToOrganization.tsx +++ b/packages/console/src/pages/OrganizationDetails/Members/AddMembersToOrganization.tsx @@ -75,6 +75,7 @@ function AddMembersToOrganization({ organization, isOpen, onClose }: Props) { onRequestClose={onClose} > {t('organization_details.add_members_to_organization', { diff --git a/packages/console/src/pages/OrganizationDetails/Members/index.tsx b/packages/console/src/pages/OrganizationDetails/Members/index.tsx index b7a78a805..e6a9bd51f 100644 --- a/packages/console/src/pages/OrganizationDetails/Members/index.tsx +++ b/packages/console/src/pages/OrganizationDetails/Members/index.tsx @@ -8,6 +8,7 @@ import ActionsButton from '@/components/ActionsButton'; import DateTime from '@/components/DateTime'; import EmptyDataPlaceholder from '@/components/EmptyDataPlaceholder'; import UserPreview from '@/components/ItemPreview/UserPreview'; +import { RoleOption } from '@/components/OrganizationRolesSelect'; import { defaultPageSize } from '@/consts'; import Button from '@/ds-components/Button'; import DangerousRaw from '@/ds-components/DangerousRaw'; @@ -83,7 +84,7 @@ function Members({ organization }: Props) {
{organizationRoles.map(({ id, name }) => ( - {name} + ))}
diff --git a/packages/console/src/pages/Organizations/OrganizationsTable/index.tsx b/packages/console/src/pages/Organizations/OrganizationsTable/index.tsx index 6e5f1c20b..8f564e614 100644 --- a/packages/console/src/pages/Organizations/OrganizationsTable/index.tsx +++ b/packages/console/src/pages/Organizations/OrganizationsTable/index.tsx @@ -13,11 +13,15 @@ import CopyToClipboard from '@/ds-components/CopyToClipboard'; import Search from '@/ds-components/Search'; import Table from '@/ds-components/Table'; import { type RequestError } from '@/hooks/use-api'; +import useTenantPathname from '@/hooks/use-tenant-pathname'; import AssignedEntities from '@/pages/Roles/components/AssignedEntities'; import { buildUrl } from '@/utils/url'; +/** The page size of the organizations table. */ const pageSize = defaultPageSize; +/** The organizations page root pathname. */ const pathname = '/organizations'; +/** The organizations API pathname in the management API. */ const apiPathname = 'api/organizations'; function OrganizationsTable() { @@ -34,12 +38,16 @@ function OrganizationsTable() { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); const isLoading = !response && !error; const [data, totalCount] = response ?? [[], 0]; + const { navigate } = useTenantPathname(); return ( } rowGroups={[{ key: 'data', data }]} + rowClickHandler={({ id }) => { + navigate(joinPath(pathname, id)); + }} columns={[ { title: t('general.name'), diff --git a/packages/console/src/pages/Organizations/PermissionsField/index.tsx b/packages/console/src/pages/Organizations/PermissionsField/index.tsx index 545e8fdd6..0009d69e8 100644 --- a/packages/console/src/pages/Organizations/PermissionsField/index.tsx +++ b/packages/console/src/pages/Organizations/PermissionsField/index.tsx @@ -1,15 +1,17 @@ import { type OrganizationScope } from '@logto/schemas'; import { type Nullable } from '@silverhand/essentials'; -import { useState } from 'react'; +import { useCallback, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import useSWR from 'swr'; +import useSWR, { useSWRConfig } from 'swr'; import ActionsButton from '@/components/ActionsButton'; import FormField from '@/ds-components/FormField'; +import Tag from '@/ds-components/Tag'; import useApi, { type RequestError } from '@/hooks/use-api'; import { buildUrl } from '@/utils/url'; import PermissionModal from '../PermissionModal'; +import { swrKey } from '../RolesField'; import TemplateTable, { pageSize } from '../TemplateTable'; /** @@ -21,19 +23,24 @@ function PermissionsField() { const { data: response, error, - mutate, + mutate: mutatePermissions, } = useSWR<[OrganizationScope[], number], RequestError>( buildUrl('api/organization-scopes', { page: String(page), page_size: String(pageSize), }) ); - + const { mutate: globalMutate } = useSWRConfig(); const [data, totalCount] = response ?? [[], 0]; const api = useApi(); const [isModalOpen, setIsModalOpen] = useState(false); const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); const [editData, setEditData] = useState>(null); + const mutate = useCallback(() => { + void mutatePermissions(); + // Mutate roles field to update the permissions list + void globalMutate((key) => typeof key === 'string' && key.startsWith(swrKey)); + }, [mutatePermissions, globalMutate]); const isLoading = !response && !error; @@ -44,7 +51,7 @@ function PermissionsField() { editData={editData} onClose={() => { setIsModalOpen(false); - void mutate(); + mutate(); }} />
{name}
, + render: ({ name }) => {name}, }, { title: t('general.description'), @@ -79,7 +86,7 @@ function PermissionsField() { }} onDelete={async () => { await api.delete(`api/organization-scopes/${data.id}`); - void mutate(); + mutate(); }} /> ), diff --git a/packages/console/src/pages/Organizations/RolesField/index.tsx b/packages/console/src/pages/Organizations/RolesField/index.tsx index 23047a3cc..5ea6d02f7 100644 --- a/packages/console/src/pages/Organizations/RolesField/index.tsx +++ b/packages/console/src/pages/Organizations/RolesField/index.tsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next'; import useSWR from 'swr'; import ActionsButton from '@/components/ActionsButton'; +import { RoleOption } from '@/components/OrganizationRolesSelect'; import FormField from '@/ds-components/FormField'; import Tag from '@/ds-components/Tag'; import useApi, { type RequestError } from '@/hooks/use-api'; @@ -15,6 +16,8 @@ import TemplateTable, { pageSize } from '../TemplateTable'; import * as styles from './index.module.scss'; +export const swrKey = 'api/organization-roles'; + /** * Renders the roles field that allows users to add, edit, and delete organization * roles. @@ -26,7 +29,7 @@ function RolesField() { error, mutate, } = useSWR<[OrganizationRoleWithScopes[], number], RequestError>( - buildUrl('api/organization-roles', { + buildUrl(swrKey, { page: String(page), page_size: String(pageSize), }) @@ -61,7 +64,7 @@ function RolesField() { title: t('general.name'), dataIndex: 'name', colSpan: 4, - render: ({ name }) =>
{name}
, + render: ({ name, id }) => , }, { title: t('organizations.permission_other'), diff --git a/packages/phrases/src/locales/de/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/de/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/de/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/de/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/de/translation/admin-console/organizations.ts b/packages/phrases/src/locales/de/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/de/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/de/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/de/translation/admin-console/user-details.ts b/packages/phrases/src/locales/de/translation/admin-console/user-details.ts index 25c425f0d..d5c268e88 100644 --- a/packages/phrases/src/locales/de/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/de/translation/admin-console/user-details.ts @@ -106,8 +106,7 @@ const user_details = { warning_no_sign_in_identifier: 'Der Benutzer muss mindestens einen der Anmelde-Identifikatoren (Benutzername, E-Mail, Telefonnummer oder soziales Konto) haben, um sich anzumelden. Sind Sie sicher, dass Sie fortfahren möchten?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/en/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/en/translation/admin-console/organization-details.ts index bdcd2b830..1952df38b 100644 --- a/packages/phrases/src/locales/en/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/en/translation/admin-console/organization-details.ts @@ -20,8 +20,7 @@ const organization_details = { remove_user_from_organization: 'Remove user from organization', remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', - search_role_placeholder: 'Type to search for roles', - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/en/translation/admin-console/organizations.ts b/packages/phrases/src/locales/en/translation/admin-console/organizations.ts index c4819e174..6decfb0a3 100644 --- a/packages/phrases/src/locales/en/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/en/translation/admin-console/organizations.ts @@ -24,7 +24,8 @@ const organization = { 'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.', role: 'Role', create_role_placeholder: 'Users with view-only permissions.', - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + search_role_placeholder: 'Type to search and select roles', guide: { title: 'Start with guides', subtitle: 'Jumpstart your app development process with our guides', diff --git a/packages/phrases/src/locales/en/translation/admin-console/user-details.ts b/packages/phrases/src/locales/en/translation/admin-console/user-details.ts index 752045ae0..041d873f0 100644 --- a/packages/phrases/src/locales/en/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/en/translation/admin-console/user-details.ts @@ -93,8 +93,7 @@ const user_details = { }, warning_no_sign_in_identifier: 'User needs to have at least one of the sign-in identifiers (username, email, phone number or social) to sign in. Are you sure you want to continue?', - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/es/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/es/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/es/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/es/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/es/translation/admin-console/organizations.ts b/packages/phrases/src/locales/es/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/es/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/es/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/es/translation/admin-console/user-details.ts b/packages/phrases/src/locales/es/translation/admin-console/user-details.ts index c5aa945e8..d1bb3f397 100644 --- a/packages/phrases/src/locales/es/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/es/translation/admin-console/user-details.ts @@ -105,8 +105,7 @@ const user_details = { warning_no_sign_in_identifier: 'El usuario necesita tener al menos uno de los identificadores de inicio de sesión (nombre de usuario, correo electrónico, número de teléfono o red social) para iniciar sesión. ¿Estás seguro/a de que quieres continuar?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/fr/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/fr/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/fr/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/fr/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/fr/translation/admin-console/organizations.ts b/packages/phrases/src/locales/fr/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/fr/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/fr/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/fr/translation/admin-console/user-details.ts b/packages/phrases/src/locales/fr/translation/admin-console/user-details.ts index 1e4181534..5a01cc828 100644 --- a/packages/phrases/src/locales/fr/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/fr/translation/admin-console/user-details.ts @@ -106,8 +106,7 @@ const user_details = { warning_no_sign_in_identifier: "L'utilisateur doit avoir au moins l'un des identifiants de connexion (nom d'utilisateur, e-mail, numéro de téléphone ou compte social) pour se connecter. Êtes-vous sûr(e) de vouloir continuer?", /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/it/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/it/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/it/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/it/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/it/translation/admin-console/organizations.ts b/packages/phrases/src/locales/it/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/it/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/it/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/it/translation/admin-console/user-details.ts b/packages/phrases/src/locales/it/translation/admin-console/user-details.ts index b53bf4be7..21a0bcf96 100644 --- a/packages/phrases/src/locales/it/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/it/translation/admin-console/user-details.ts @@ -106,8 +106,7 @@ const user_details = { warning_no_sign_in_identifier: "L'utente deve avere almeno uno degli identificatori di accesso (nome utente, email, numero di telefono, o social) per accedere. Sei sicuro di voler continuare?", /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/ja/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/ja/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/ja/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/ja/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/ja/translation/admin-console/organizations.ts b/packages/phrases/src/locales/ja/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/ja/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/ja/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/ja/translation/admin-console/user-details.ts b/packages/phrases/src/locales/ja/translation/admin-console/user-details.ts index 3e27a5b5c..873f24bc5 100644 --- a/packages/phrases/src/locales/ja/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/ja/translation/admin-console/user-details.ts @@ -101,8 +101,7 @@ const user_details = { warning_no_sign_in_identifier: 'ユーザーは、サインインに少なくとも1つの識別子(ユーザー名、メールアドレス、電話番号、またはソーシャル)を持っている必要があります。続行してよろしいですか?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/ko/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/ko/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/ko/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/ko/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/ko/translation/admin-console/organizations.ts b/packages/phrases/src/locales/ko/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/ko/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/ko/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/ko/translation/admin-console/user-details.ts b/packages/phrases/src/locales/ko/translation/admin-console/user-details.ts index 5af486d3d..b567bddfc 100644 --- a/packages/phrases/src/locales/ko/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/ko/translation/admin-console/user-details.ts @@ -102,8 +102,7 @@ const user_details = { warning_no_sign_in_identifier: '사용자는 로그인 식별자(사용자 이름, 이메일, 전화 번호 또는 소셜) 중 적어도 하나를 갖고 로그인해야 합니다. 계속 하시겠습니까?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/pl-pl/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/pl-pl/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/pl-pl/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/pl-pl/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/pl-pl/translation/admin-console/organizations.ts b/packages/phrases/src/locales/pl-pl/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/pl-pl/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/pl-pl/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/pl-pl/translation/admin-console/user-details.ts b/packages/phrases/src/locales/pl-pl/translation/admin-console/user-details.ts index 6f4a49e66..d106a4ffa 100644 --- a/packages/phrases/src/locales/pl-pl/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/pl-pl/translation/admin-console/user-details.ts @@ -102,8 +102,7 @@ const user_details = { warning_no_sign_in_identifier: 'Aby się zalogować, użytkownik musi mieć co najmniej jeden z identyfikatorów logowania (nazwa użytkownika, e-mail, numer telefonu lub konto społecznościowe). Czy na pewno chcesz kontynuować?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/pt-br/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/pt-br/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/organizations.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/pt-br/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/pt-br/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/user-details.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/user-details.ts index 33297eb4d..99c2ca52a 100644 --- a/packages/phrases/src/locales/pt-br/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/pt-br/translation/admin-console/user-details.ts @@ -103,8 +103,7 @@ const user_details = { warning_no_sign_in_identifier: 'O usuário precisa ter pelo menos um dos identificadores de login (nome de usuário, e-mail, número de telefone ou social) para fazer login. Tem certeza de que deseja continuar?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/pt-pt/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/organizations.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/pt-pt/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/user-details.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/user-details.ts index 47ba1d169..37d5251c5 100644 --- a/packages/phrases/src/locales/pt-pt/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/user-details.ts @@ -105,8 +105,7 @@ const user_details = { warning_no_sign_in_identifier: 'O utilizador precisa de ter pelo menos um dos identificadores de início de sessão (nome de utilizador, e-mail, número de telefone ou redes sociais) para iniciar sessão. Tem a certeza de que quer continuar?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/ru/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/ru/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/ru/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/ru/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/ru/translation/admin-console/organizations.ts b/packages/phrases/src/locales/ru/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/ru/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/ru/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/ru/translation/admin-console/user-details.ts b/packages/phrases/src/locales/ru/translation/admin-console/user-details.ts index 848dc794a..37cbb542e 100644 --- a/packages/phrases/src/locales/ru/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/ru/translation/admin-console/user-details.ts @@ -103,8 +103,7 @@ const user_details = { warning_no_sign_in_identifier: 'Пользователь должен иметь хотя бы один из идентификаторов входа (имя пользователя, электронная почта, номер телефона или социальная сеть), чтобы войти. Вы уверены, что хотите продолжить?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/tr-tr/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/organizations.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/tr-tr/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/user-details.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/user-details.ts index e03afd427..2822e194c 100644 --- a/packages/phrases/src/locales/tr-tr/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/user-details.ts @@ -104,8 +104,7 @@ const user_details = { warning_no_sign_in_identifier: 'Kullanıcının giriş yapmak için en az bir oturum açma kimliği (kullanıcı adı, e-posta, telefon numarası, veya sosyal) olması gerekiyor. Devam etmek istediğinizden emin misiniz?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/zh-cn/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/organizations.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/zh-cn/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/user-details.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/user-details.ts index 42424ae85..7a53d275b 100644 --- a/packages/phrases/src/locales/zh-cn/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/user-details.ts @@ -98,8 +98,7 @@ const user_details = { warning_no_sign_in_identifier: '用户需要至少拥有一个登录标识(用户名、邮箱、手机号或社交账户)才能登录。确定要继续吗?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/zh-hk/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/zh-hk/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/zh-hk/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/zh-hk/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/zh-hk/translation/admin-console/organizations.ts b/packages/phrases/src/locales/zh-hk/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/zh-hk/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/zh-hk/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/zh-hk/translation/admin-console/user-details.ts b/packages/phrases/src/locales/zh-hk/translation/admin-console/user-details.ts index 3a704b8e2..7bf3d5569 100644 --- a/packages/phrases/src/locales/zh-hk/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/zh-hk/translation/admin-console/user-details.ts @@ -98,8 +98,7 @@ const user_details = { warning_no_sign_in_identifier: '用戶需要至少擁有一個登錄標識(用戶名、電子郵件、電話號碼或社交帳號)才能登錄。確定要繼續嗎?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details); diff --git a/packages/phrases/src/locales/zh-tw/translation/admin-console/organization-details.ts b/packages/phrases/src/locales/zh-tw/translation/admin-console/organization-details.ts index 2e79e4f71..543e226fc 100644 --- a/packages/phrases/src/locales/zh-tw/translation/admin-console/organization-details.ts +++ b/packages/phrases/src/locales/zh-tw/translation/admin-console/organization-details.ts @@ -38,9 +38,7 @@ const organization_details = { remove_user_from_organization_description: 'Once removed, the user will lose their membership and roles in this organization. This action cannot be undone.', /** UNTRANSLATED */ - search_role_placeholder: 'Type to search for roles', - /** UNTRANSLATED */ - search_user_placeholder: 'Type to search for users', + search_user_placeholder: 'Type to search and select users', /** UNTRANSLATED */ at_least_one_user: 'At least one user is required.', }; diff --git a/packages/phrases/src/locales/zh-tw/translation/admin-console/organizations.ts b/packages/phrases/src/locales/zh-tw/translation/admin-console/organizations.ts index 2363d5462..33b2d9259 100644 --- a/packages/phrases/src/locales/zh-tw/translation/admin-console/organizations.ts +++ b/packages/phrases/src/locales/zh-tw/translation/admin-console/organizations.ts @@ -46,7 +46,9 @@ const organizations = { /** UNTRANSLATED */ create_role_placeholder: 'Users with view-only permissions.', /** UNTRANSLATED */ - search_permission_placeholder: 'Type to search for permissions', + search_permission_placeholder: 'Type to search and select permissions', + /** UNTRANSLATED */ + search_role_placeholder: 'Type to search and select roles', guide: { /** UNTRANSLATED */ title: 'Start with guides', diff --git a/packages/phrases/src/locales/zh-tw/translation/admin-console/user-details.ts b/packages/phrases/src/locales/zh-tw/translation/admin-console/user-details.ts index 4f1ae5554..eaf1eb1fc 100644 --- a/packages/phrases/src/locales/zh-tw/translation/admin-console/user-details.ts +++ b/packages/phrases/src/locales/zh-tw/translation/admin-console/user-details.ts @@ -98,8 +98,7 @@ const user_details = { warning_no_sign_in_identifier: '使用者需要至少擁有一個登入標識(使用者名稱、電子郵件、電話號碼或社交帳號)才能登入。確定要繼續嗎?', /** UNTRANSLATED */ - organization_roles_tooltip: - 'Organization roles assigned to the current user in this organization.', + organization_roles_tooltip: 'The roles assigned to the user within this organization.', }; export default Object.freeze(user_details);