0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor(console,phrases): display inviter name on tenant invitations table (#5622)

* refactor(console,phrases): display inviter name on tenant invitations table

* chore: bump @logto/cloud

* chore: update pnpm lockfile
This commit is contained in:
Charles Zhao 2024-04-03 16:28:45 +08:00 committed by GitHub
parent caaad693bf
commit 316c11128a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 35 additions and 34 deletions

View file

@ -48,6 +48,6 @@
"access": "public"
},
"devDependencies": {
"@logto/cloud": "0.2.5-c2fffa4"
"@logto/cloud": "0.2.5-6c090b2"
}
}

View file

@ -28,7 +28,7 @@
"@fontsource/roboto-mono": "^5.0.0",
"@jest/types": "^29.5.0",
"@logto/app-insights": "workspace:^1.4.0",
"@logto/cloud": "0.2.5-c2fffa4",
"@logto/cloud": "0.2.5-6c090b2",
"@logto/connector-kit": "workspace:^2.1.0",
"@logto/core-kit": "workspace:^2.3.0",
"@logto/language-kit": "workspace:^1.1.0",

View file

@ -15,6 +15,7 @@ import UsersEmptyDark from '@/assets/images/users-empty-dark.svg';
import UsersEmpty from '@/assets/images/users-empty.svg';
import { useAuthedCloudApi } from '@/cloud/hooks/use-cloud-api';
import type { InvitationResponse, TenantInvitationResponse } from '@/cloud/types/router';
import Breakable from '@/components/Breakable';
import { RoleOption } from '@/components/OrganizationRolesSelect';
import { TenantsContext } from '@/contexts/TenantsProvider';
import ActionMenu, { ActionMenuItem } from '@/ds-components/ActionMenu';
@ -129,13 +130,13 @@ function Invitations() {
columns={[
{
dataIndex: 'user',
colSpan: 4,
colSpan: 2,
title: t('user'),
render: ({ invitee }) => <span>{invitee}</span>,
},
{
dataIndex: 'roles',
colSpan: 4,
colSpan: 2,
title: t('roles'),
render: ({ organizationRoles }) => {
if (organizationRoles.length === 0) {
@ -154,7 +155,7 @@ function Invitations() {
},
{
dataIndex: 'status',
colSpan: 4,
colSpan: 2,
title: t('invitation_status'),
render: ({ status }) => (
<Tag type="state" status={convertInvitationStatusToTagStatus(status)}>
@ -163,14 +164,14 @@ function Invitations() {
),
},
{
dataIndex: 'sentAt',
colSpan: 4,
title: t('invitation_sent'),
render: ({ createdAt }) => <span>{format(createdAt, 'MMM do, yyyy')}</span>,
dataIndex: 'inviter',
colSpan: 3,
title: t('inviter'),
render: ({ inviterName }) => <Breakable>{inviterName ?? '-'}</Breakable>,
},
{
dataIndex: 'expiresAt',
colSpan: 4,
colSpan: 2,
title: t('expiration_date'),
render: ({ expiresAt }) => <span>{format(expiresAt, 'MMM do, yyyy')}</span>,
},

View file

@ -91,7 +91,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@logto/cloud": "0.2.5-c2fffa4",
"@logto/cloud": "0.2.5-6c090b2",
"@silverhand/eslint-config": "5.0.0",
"@silverhand/ts-config": "5.0.0",
"@types/debug": "^4.1.7",

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -7,7 +7,7 @@ const tenant_members = {
admin: 'Admin',
collaborator: 'Collaborator',
invitation_status: 'Invitation status',
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
expiration_date: 'Expiration date',
invite_modal: {
title: 'Invite people to Silverhand',

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -16,7 +16,7 @@ const tenant_members = {
/** UNTRANSLATED */
invitation_status: 'Invitation status',
/** UNTRANSLATED */
invitation_sent: 'Invitation sent',
inviter: 'Inviter',
/** UNTRANSLATED */
expiration_date: 'Expiration date',
invite_modal: {

View file

@ -1235,8 +1235,8 @@ importers:
version: 3.22.4
devDependencies:
'@logto/cloud':
specifier: 0.2.5-c2fffa4
version: 0.2.5-c2fffa4(zod@3.22.4)
specifier: 0.2.5-6c090b2
version: 0.2.5-6c090b2(zod@3.22.4)
'@rollup/plugin-commonjs':
specifier: ^25.0.0
version: 25.0.7(rollup@4.12.0)
@ -2715,8 +2715,8 @@ importers:
specifier: workspace:^1.4.0
version: link:../app-insights
'@logto/cloud':
specifier: 0.2.5-c2fffa4
version: 0.2.5-c2fffa4(zod@3.22.4)
specifier: 0.2.5-6c090b2
version: 0.2.5-6c090b2(zod@3.22.4)
'@logto/connector-kit':
specifier: workspace:^2.1.0
version: link:../toolkit/connector-kit
@ -3202,8 +3202,8 @@ importers:
version: 3.22.4
devDependencies:
'@logto/cloud':
specifier: 0.2.5-c2fffa4
version: 0.2.5-c2fffa4(zod@3.22.4)
specifier: 0.2.5-6c090b2
version: 0.2.5-6c090b2(zod@3.22.4)
'@silverhand/eslint-config':
specifier: 5.0.0
version: 5.0.0(eslint@8.44.0)(prettier@3.0.0)(typescript@5.3.3)
@ -7644,8 +7644,8 @@ packages:
jose: 5.2.2
dev: true
/@logto/cloud@0.2.5-c2fffa4(zod@3.22.4):
resolution: {integrity: sha512-l7x0LwqCCkn9rhi0U8vDN76TYWVDs0zJHQd1PVlRuaWKQp7ynxmW5885b1oN2ACsNu6YeHuTuZ/qW8OXsgw0wQ==}
/@logto/cloud@0.2.5-6c090b2(zod@3.22.4):
resolution: {integrity: sha512-hyPwnd3endAlvW3/55zde2g2hUFGDbHMswh1HqIQoizBikgdI1KjZL9YF/kfTGAOr8AYHJQOYOpphWNcNQ1AZQ==}
engines: {node: ^20.9.0}
dependencies:
'@silverhand/essentials': 2.9.0