Skip to content

Commit 071fff1

Browse files
committed
refactor: Rename actionButton to actionItem in StatusHeadingContainer and update related IDs for consistency
1 parent 50e1801 commit 071fff1

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/Shared/Components/AppStatusModal/AppStatusBody.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ const StatusHeadingContainer = ({
4343
type,
4444
appId,
4545
envId,
46-
actionButton,
46+
actionItem,
4747
}: PropsWithChildren<Pick<AppStatusBodyProps, 'type'>> & {
4848
appId: number
4949
envId?: number
50-
actionButton?: ReactNode
50+
actionItem?: ReactNode
5151
}) => (
5252
<div className="flexbox dc__content-space w-100">
5353
{children}
5454

5555
<div className="flexbox dc__align-items-center dc__gap-4">
56-
{actionButton}
56+
{actionItem}
5757
{type === 'release' ? (
5858
<Button
5959
dataTestId="visit-app-details"
@@ -97,14 +97,14 @@ export const AppStatusBody = ({
9797

9898
return [
9999
{
100-
id: `app-status-${1}`,
100+
id: `app-status-block${1}`,
101101
heading: type !== 'stack-manager' ? 'Application Status' : 'Status',
102102
value: (
103103
<StatusHeadingContainer
104104
type={type}
105105
appId={appDetails.appId}
106106
envId={appDetails.environmentId}
107-
actionButton={
107+
actionItem={
108108
ExplainWithAIButton &&
109109
appDetails.appStatus?.toLowerCase() !== StatusType.HEALTHY.toLowerCase() &&
110110
(debugNode || message) ? (
@@ -133,7 +133,7 @@ export const AppStatusBody = ({
133133
...(message
134134
? [
135135
{
136-
id: `app-status-${2}`,
136+
id: `app-status-block${2}`,
137137
heading: 'Message',
138138
value: message,
139139
},
@@ -142,7 +142,7 @@ export const AppStatusBody = ({
142142
...(customMessage
143143
? [
144144
{
145-
id: `app-status-${3}`,
145+
id: `app-status-block${3}`,
146146
heading: 'Message',
147147
value: customMessage,
148148
},
@@ -156,7 +156,7 @@ export const AppStatusBody = ({
156156
? getAppStatusInfoCardItems()
157157
: [
158158
{
159-
id: `deployment-status-${1}`,
159+
id: `deployment-status-block-${1}`,
160160
heading: 'Deployment Status',
161161
value: (
162162
<StatusHeadingContainer type={type} appId={appDetails.appId} envId={appDetails.environmentId}>

src/Shared/Components/AppStatusModal/AppStatusModalTabList.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const AppStatusModalTabList = ({
4646
status={appDetails.resourceTree?.status?.toUpperCase() || appDetails.appStatus}
4747
hideMessage
4848
showAnimatedIcon
49+
hideIconTooltip
4950
/>
5051
),
5152
} satisfies TabProps,
@@ -67,6 +68,7 @@ const AppStatusModalTabList = ({
6768
status={deploymentStatusDetailsBreakdownData?.deploymentStatus}
6869
hideMessage
6970
showAnimatedIcon
71+
hideIconTooltip
7072
/>
7173
),
7274
} satisfies TabProps,

0 commit comments

Comments
 (0)