From 31c57485a7deb6fc58d493774f202883ca9f0d76 Mon Sep 17 00:00:00 2001 From: Amir Mujacic Date: Thu, 27 Nov 2025 15:19:23 +0100 Subject: [PATCH] fix(playstation): Show warning when connection is good, but no errors --- .../settings/project/tempest/CredentialRow.tsx | 13 +++++++++++-- static/app/views/settings/project/tempest/types.ts | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/static/app/views/settings/project/tempest/CredentialRow.tsx b/static/app/views/settings/project/tempest/CredentialRow.tsx index 7895a1b38031a6..4ae4f421611e8e 100644 --- a/static/app/views/settings/project/tempest/CredentialRow.tsx +++ b/static/app/views/settings/project/tempest/CredentialRow.tsx @@ -67,7 +67,7 @@ export function CredentialRow({ } type StatusTagProps = { - statusType: 'error' | 'success' | 'pending'; + statusType: 'error' | 'success' | 'pending' | 'warning'; message?: string; }; @@ -75,6 +75,7 @@ const STATUS_CONFIG = { error: {label: 'Error', type: 'error'}, success: {label: 'Active', type: 'default'}, pending: {label: 'Pending', type: 'info'}, + warning: {label: 'Active', type: 'warning'}, } as const; function StatusTag({statusType, message}: StatusTagProps) { @@ -95,5 +96,13 @@ function getStatusType(credential: { return 'pending'; } - return credential.messageType === MessageType.ERROR ? 'error' : 'success'; + if (credential.messageType === MessageType.ERROR) { + return 'error'; + } + + if (credential.messageType === MessageType.WARNING) { + return 'warning'; + } + + return 'success'; } diff --git a/static/app/views/settings/project/tempest/types.ts b/static/app/views/settings/project/tempest/types.ts index e2521612d18cb7..b17bb233036c02 100644 --- a/static/app/views/settings/project/tempest/types.ts +++ b/static/app/views/settings/project/tempest/types.ts @@ -1,6 +1,8 @@ export enum MessageType { SUCCESS = 'success', ERROR = 'error', + WARNING = 'warning', + INFO = 'info', } export type TempestCredentials = {