Skip to content

Commit af99f3c

Browse files
committed
wip: invitation screens — status labels, role help, resend confirm, param dialog checks and focus, joined state
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyekmZuiE5TVrwDWqH
1 parent 9f13ee8 commit af99f3c

31 files changed

Lines changed: 517 additions & 74 deletions

‎packages/platform-objects/src/apps/translations/en.objects.generated.ts‎

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
146146
},
147147
params: {
148148
role: {
149+
helpText: "Owner: full control of the organization, including deleting it.\nAdmin: manages members, invitations, teams and organization settings.\nDelegated Admin: invites people and places them only where an administrator has delegated that.\nMember: works in the organization's apps with the access their permission sets give.\nExternal: someone from outside the organization, such as a supplier or customer, who sees only what is shared with them.",
149150
options: {
150151
owner: "Owner",
151152
admin: "Admin",
@@ -585,6 +586,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
585586
},
586587
params: {
587588
role: {
589+
helpText: "Owner: full control of the organization, including deleting it.\nAdmin: manages members, invitations, teams and organization settings.\nDelegated Admin: invites people and places them only where an administrator has delegated that.\nMember: works in the organization's apps with the access their permission sets give.\nExternal: someone from outside the organization, such as a supplier or customer, who sees only what is shared with them.",
588590
options: {
589591
owner: "Owner",
590592
admin: "Admin",
@@ -676,6 +678,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
676678
},
677679
params: {
678680
role: {
681+
helpText: "Owner: full control of the organization, including deleting it.\nAdmin: manages members, invitations, teams and organization settings.\nDelegated Admin: invites people and places them only where an administrator has delegated that.\nMember: works in the organization's apps with the access their permission sets give.\nExternal: someone from outside the organization, such as a supplier or customer, who sees only what is shared with them.",
679682
options: {
680683
owner: "Owner",
681684
admin: "Admin",
@@ -688,13 +691,24 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
688691
},
689692
add_member: {
690693
label: "Add Member",
691-
successMessage: "Member added"
694+
successMessage: "Member added",
695+
params: {
696+
role: {
697+
helpText: "Owner: full control of the organization, including deleting it.\nAdmin: manages members, invitations, teams and organization settings.\nDelegated Admin: invites people and places them only where an administrator has delegated that.\nMember: works in the organization's apps with the access their permission sets give.\nExternal: someone from outside the organization, such as a supplier or customer, who sees only what is shared with them."
698+
}
699+
}
692700
},
693701
update_member_role: {
694702
label: "Change Role",
703+
description: "Choose the new organization role for ${record.user_id?.name ?? 'this member'}.",
695704
successMessage: "Member role updated",
696705
outcomeMessages: {
697706
permission_set_granted: "Member role updated. The new role also granted the permission set ${result.grantedPermissionSet.label}."
707+
},
708+
params: {
709+
role: {
710+
helpText: "Owner: full control of the organization, including deleting it.\nAdmin: manages members, invitations, teams and organization settings.\nDelegated Admin: invites people and places them only where an administrator has delegated that.\nMember: works in the organization's apps with the access their permission sets give.\nExternal: someone from outside the organization, such as a supplier or customer, who sees only what is shared with them."
711+
}
698712
}
699713
},
700714
remove_member: {
@@ -748,11 +762,11 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
748762
status: {
749763
label: "Status",
750764
options: {
751-
pending: "pending",
752-
accepted: "accepted",
753-
rejected: "rejected",
754-
expired: "expired",
755-
canceled: "canceled"
765+
pending: "Pending",
766+
accepted: "Accepted",
767+
rejected: "Declined",
768+
expired: "Expired",
769+
canceled: "Canceled"
756770
}
757771
},
758772
inviter_id: {
@@ -816,6 +830,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
816830
},
817831
params: {
818832
role: {
833+
helpText: "Owner: full control of the organization, including deleting it.\nAdmin: manages members, invitations, teams and organization settings.\nDelegated Admin: invites people and places them only where an administrator has delegated that.\nMember: works in the organization's apps with the access their permission sets give.\nExternal: someone from outside the organization, such as a supplier or customer, who sees only what is shared with them.",
819834
options: {
820835
owner: "Owner",
821836
admin: "Admin",
@@ -833,6 +848,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
833848
},
834849
resend_invitation: {
835850
label: "Resend Invitation",
851+
description: "Resend the invitation to ${record.email}? Its expiry date starts over.",
836852
successMessage: "Invitation resent",
837853
outcomeMessages: {
838854
sent: "Invitation resent to ${result.email}",

‎packages/platform-objects/src/apps/translations/es-ES.objects.generated.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
146146
},
147147
params: {
148148
role: {
149+
helpText: "Propietario: control total de la organización, incluida su eliminación.\nAdministrador: gestiona los miembros, las invitaciones, los equipos y la configuración de la organización.\nAdministrador delegado: invita a personas y solo las ubica donde un administrador se lo ha delegado.\nMiembro: trabaja en las aplicaciones de la organización con el acceso que le dan sus conjuntos de permisos.\nExterno: alguien ajeno a la organización, como un proveedor o un cliente, que solo ve lo que se comparte con él.",
149150
options: {
150151
owner: "Propietario",
151152
admin: "Administrador",
@@ -585,6 +586,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
585586
},
586587
params: {
587588
role: {
589+
helpText: "Propietario: control total de la organización, incluida su eliminación.\nAdministrador: gestiona los miembros, las invitaciones, los equipos y la configuración de la organización.\nAdministrador delegado: invita a personas y solo las ubica donde un administrador se lo ha delegado.\nMiembro: trabaja en las aplicaciones de la organización con el acceso que le dan sus conjuntos de permisos.\nExterno: alguien ajeno a la organización, como un proveedor o un cliente, que solo ve lo que se comparte con él.",
588590
options: {
589591
owner: "Propietario",
590592
admin: "Administrador",
@@ -676,6 +678,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
676678
},
677679
params: {
678680
role: {
681+
helpText: "Propietario: control total de la organización, incluida su eliminación.\nAdministrador: gestiona los miembros, las invitaciones, los equipos y la configuración de la organización.\nAdministrador delegado: invita a personas y solo las ubica donde un administrador se lo ha delegado.\nMiembro: trabaja en las aplicaciones de la organización con el acceso que le dan sus conjuntos de permisos.\nExterno: alguien ajeno a la organización, como un proveedor o un cliente, que solo ve lo que se comparte con él.",
679682
options: {
680683
owner: "Propietario",
681684
admin: "Administrador",
@@ -688,13 +691,24 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
688691
},
689692
add_member: {
690693
label: "Añadir miembro",
691-
successMessage: "Miembro añadido"
694+
successMessage: "Miembro añadido",
695+
params: {
696+
role: {
697+
helpText: "Propietario: control total de la organización, incluida su eliminación.\nAdministrador: gestiona los miembros, las invitaciones, los equipos y la configuración de la organización.\nAdministrador delegado: invita a personas y solo las ubica donde un administrador se lo ha delegado.\nMiembro: trabaja en las aplicaciones de la organización con el acceso que le dan sus conjuntos de permisos.\nExterno: alguien ajeno a la organización, como un proveedor o un cliente, que solo ve lo que se comparte con él."
698+
}
699+
}
692700
},
693701
update_member_role: {
694702
label: "Cambiar rol",
703+
description: "Elija el nuevo rol en la organización para ${record.user_id?.name ?? 'este miembro'}.",
695704
successMessage: "Rol del miembro actualizado",
696705
outcomeMessages: {
697706
permission_set_granted: "Rol del miembro actualizado. El nuevo rol también concedió el conjunto de permisos ${result.grantedPermissionSet.label}."
707+
},
708+
params: {
709+
role: {
710+
helpText: "Propietario: control total de la organización, incluida su eliminación.\nAdministrador: gestiona los miembros, las invitaciones, los equipos y la configuración de la organización.\nAdministrador delegado: invita a personas y solo las ubica donde un administrador se lo ha delegado.\nMiembro: trabaja en las aplicaciones de la organización con el acceso que le dan sus conjuntos de permisos.\nExterno: alguien ajeno a la organización, como un proveedor o un cliente, que solo ve lo que se comparte con él."
711+
}
698712
}
699713
},
700714
remove_member: {
@@ -816,6 +830,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
816830
},
817831
params: {
818832
role: {
833+
helpText: "Propietario: control total de la organización, incluida su eliminación.\nAdministrador: gestiona los miembros, las invitaciones, los equipos y la configuración de la organización.\nAdministrador delegado: invita a personas y solo las ubica donde un administrador se lo ha delegado.\nMiembro: trabaja en las aplicaciones de la organización con el acceso que le dan sus conjuntos de permisos.\nExterno: alguien ajeno a la organización, como un proveedor o un cliente, que solo ve lo que se comparte con él.",
819834
options: {
820835
owner: "Propietario",
821836
admin: "Administrador",
@@ -833,6 +848,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
833848
},
834849
resend_invitation: {
835850
label: "Reenviar invitación",
851+
description: "¿Reenviar la invitación a ${record.email}? Su plazo de vencimiento vuelve a empezar.",
836852
successMessage: "Invitación reenviada",
837853
outcomeMessages: {
838854
sent: "Invitación reenviada a ${result.email}",

‎packages/platform-objects/src/apps/translations/ja-JP.objects.generated.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
146146
},
147147
params: {
148148
role: {
149+
helpText: "所有者:組織を完全に管理でき、組織の削除もできます。\n管理者:メンバー、招待、チーム、組織の設定を管理します。\n委任管理者:ユーザーを招待し、管理者から委任された範囲にのみ配置できます。\nメンバー:権限セットで付与されたアクセス権で組織のアプリを利用します。\n外部メンバー:仕入先や顧客など組織外のユーザーで、共有されたものだけを閲覧できます。",
149150
options: {
150151
owner: "所有者",
151152
admin: "管理者",
@@ -585,6 +586,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
585586
},
586587
params: {
587588
role: {
589+
helpText: "所有者:組織を完全に管理でき、組織の削除もできます。\n管理者:メンバー、招待、チーム、組織の設定を管理します。\n委任管理者:ユーザーを招待し、管理者から委任された範囲にのみ配置できます。\nメンバー:権限セットで付与されたアクセス権で組織のアプリを利用します。\n外部メンバー:仕入先や顧客など組織外のユーザーで、共有されたものだけを閲覧できます。",
588590
options: {
589591
owner: "所有者",
590592
admin: "管理者",
@@ -676,6 +678,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
676678
},
677679
params: {
678680
role: {
681+
helpText: "所有者:組織を完全に管理でき、組織の削除もできます。\n管理者:メンバー、招待、チーム、組織の設定を管理します。\n委任管理者:ユーザーを招待し、管理者から委任された範囲にのみ配置できます。\nメンバー:権限セットで付与されたアクセス権で組織のアプリを利用します。\n外部メンバー:仕入先や顧客など組織外のユーザーで、共有されたものだけを閲覧できます。",
679682
options: {
680683
owner: "所有者",
681684
admin: "管理者",
@@ -688,13 +691,24 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
688691
},
689692
add_member: {
690693
label: "メンバーを追加",
691-
successMessage: "メンバーを追加しました"
694+
successMessage: "メンバーを追加しました",
695+
params: {
696+
role: {
697+
helpText: "所有者:組織を完全に管理でき、組織の削除もできます。\n管理者:メンバー、招待、チーム、組織の設定を管理します。\n委任管理者:ユーザーを招待し、管理者から委任された範囲にのみ配置できます。\nメンバー:権限セットで付与されたアクセス権で組織のアプリを利用します。\n外部メンバー:仕入先や顧客など組織外のユーザーで、共有されたものだけを閲覧できます。"
698+
}
699+
}
692700
},
693701
update_member_role: {
694702
label: "ロールを変更",
703+
description: "${record.user_id?.name ?? 'このメンバー'} の新しい組織ロールを選択してください。",
695704
successMessage: "メンバーロールを更新しました",
696705
outcomeMessages: {
697706
permission_set_granted: "メンバーのロールを更新しました。新しいロールにより権限セット ${result.grantedPermissionSet.label} も付与されました。"
707+
},
708+
params: {
709+
role: {
710+
helpText: "所有者:組織を完全に管理でき、組織の削除もできます。\n管理者:メンバー、招待、チーム、組織の設定を管理します。\n委任管理者:ユーザーを招待し、管理者から委任された範囲にのみ配置できます。\nメンバー:権限セットで付与されたアクセス権で組織のアプリを利用します。\n外部メンバー:仕入先や顧客など組織外のユーザーで、共有されたものだけを閲覧できます。"
711+
}
698712
}
699713
},
700714
remove_member: {
@@ -816,6 +830,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
816830
},
817831
params: {
818832
role: {
833+
helpText: "所有者:組織を完全に管理でき、組織の削除もできます。\n管理者:メンバー、招待、チーム、組織の設定を管理します。\n委任管理者:ユーザーを招待し、管理者から委任された範囲にのみ配置できます。\nメンバー:権限セットで付与されたアクセス権で組織のアプリを利用します。\n外部メンバー:仕入先や顧客など組織外のユーザーで、共有されたものだけを閲覧できます。",
819834
options: {
820835
owner: "所有者",
821836
admin: "管理者",
@@ -833,6 +848,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
833848
},
834849
resend_invitation: {
835850
label: "招待を再送",
851+
description: "${record.email} に招待を再送しますか?有効期限は改めて始まります。",
836852
successMessage: "招待を再送しました",
837853
outcomeMessages: {
838854
sent: "${result.email} に招待を再送しました",

0 commit comments

Comments
 (0)