0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(console): update the third-party app details page tag (#5294)

* fix(console): update the third-party app details page tag

update the third-party app details page tag

* fix(phrases): align the app tag capital case

align the app tag capital case
This commit is contained in:
simeng-li 2024-01-25 11:48:53 +08:00 committed by GitHub
parent cdaf3608c5
commit 9d15d88d28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 37 additions and 32 deletions

View file

@ -109,7 +109,11 @@ function ApplicationDetailsContent({ data, oidcConfig, onApplicationUpdated }: P
<DetailsPageHeader
icon={<ApplicationIcon type={data.type} />}
title={data.name}
primaryTag={t(`${applicationTypeI18nKey[data.type]}.title`)}
primaryTag={
data.isThirdParty
? t(`${applicationTypeI18nKey.thirdParty}.title`)
: t(`${applicationTypeI18nKey[data.type]}.title`)
}
identifier={{ name: 'App ID', value: data.id }}
additionalActionButton={conditional(
!data.isThirdParty && {

View file

@ -150,7 +150,7 @@ function Applications({ tab }: Props) {
title={name}
subtitle={
isThirdParty
? t('applications.type.third_party.title')
? t(`${applicationTypeI18nKey.thirdParty}.title`)
: t(`${applicationTypeI18nKey[type]}.title`)
}
icon={<ApplicationIcon className={styles.icon} type={type} />}

View file

@ -10,6 +10,7 @@ export const applicationTypeI18nKey = Object.freeze({
[ApplicationType.Traditional]: 'applications.type.traditional',
[ApplicationType.MachineToMachine]: 'applications.type.machine_to_machine',
[ApplicationType.Protected]: 'applications.type.protected',
thirdParty: 'applications.type.third_party',
} as const);
/**

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -51,7 +51,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -14,7 +14,7 @@ const applications = {
application_created: 'Application created successfully.',
tab: {
my_applications: 'My apps',
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -44,7 +44,7 @@ const applications = {
description: 'N/A', // Not in use
},
third_party: {
title: 'Third-party app',
title: 'Third-party App',
subtitle: 'An app that is used as a third-party IdP connector',
description: 'E.g., OIDC, SAML',
},

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -51,7 +51,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -52,7 +52,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -51,7 +51,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -50,7 +50,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -50,7 +50,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -51,7 +51,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -51,7 +51,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -50,7 +50,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -50,7 +50,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -16,7 +16,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -51,7 +51,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -15,7 +15,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -49,7 +49,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -15,7 +15,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -49,7 +49,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */

View file

@ -15,7 +15,7 @@ const applications = {
/** UNTRANSLATED */
my_applications: 'My apps',
/** UNTRANSLATED */
third_party_applications: 'Third party apps',
third_party_applications: 'Third-party apps',
},
app_id: 'App ID',
type: {
@ -49,7 +49,7 @@ const applications = {
},
third_party: {
/** UNTRANSLATED */
title: 'Third-party app',
title: 'Third-party App',
/** UNTRANSLATED */
subtitle: 'An app that is used as a third-party IdP connector',
/** UNTRANSLATED */