feat: [AH-885]: fix issue with showing request and response body of webhook execution (#3448)

* feat: [AH-885]: fix issue with showing request and response body of webhook execution
This commit is contained in:
Shivanand Sonnad 2025-02-18 11:58:32 +00:00 committed by Harness
parent 06c48f3d3d
commit b5e78f3300
3 changed files with 8 additions and 3 deletions

View File

@ -16,4 +16,5 @@
/* eslint-disable */ /* eslint-disable */
// This is an auto-generated file // This is an auto-generated file
export declare const drawerContainer: string
export declare const tabsContainer: string export declare const tabsContainer: string

View File

@ -110,7 +110,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
</RbacButton> </RbacButton>
</Layout.Horizontal> </Layout.Horizontal>
}> }>
<Container> <Container className={css.drawerContainer}>
<Layout.Vertical padding="large" spacing="medium"> <Layout.Vertical padding="large" spacing="medium">
<Layout.Horizontal spacing="small" flex={{ alignItems: 'center', justifyContent: 'flex-start' }}> <Layout.Horizontal spacing="small" flex={{ alignItems: 'center', justifyContent: 'flex-start' }}>
<Text font={{ variation: FontVariation.CARD_TITLE }}> <Text font={{ variation: FontVariation.CARD_TITLE }}>
@ -166,7 +166,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
<CommandBlock <CommandBlock
darkmode darkmode
ignoreWhiteSpaces={false} ignoreWhiteSpaces={false}
commandSnippet={prettifyManifestJSON(data?.request ?? {})} commandSnippet={prettifyManifestJSON(data?.request?.body ?? {})}
/> />
} }
/> />
@ -177,7 +177,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
<CommandBlock <CommandBlock
darkmode darkmode
ignoreWhiteSpaces={false} ignoreWhiteSpaces={false}
commandSnippet={prettifyManifestJSON(data?.response ?? {})} commandSnippet={prettifyManifestJSON(data?.response?.body ?? {})}
/> />
} }
/> />