1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix: actions table UI improvements (#6042)

Includes some small fixes and improvements to the actions table UI:
 - Fix webhook icon not properly loading
 - Make actions execution param names bold in the tooltip
 - Make filters param names bold in the tooltip
This commit is contained in:
Nuno Góis 2024-01-26 09:52:19 +00:00 committed by GitHub
parent 32dd377c3e
commit 6ee4d2724e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,8 @@ export const ProjectActionsActionsCell = ({
{Object.entries(executionParams).map(
([param, value]) => (
<li key={param}>
{param}: {value}
<strong>{param}</strong>:{' '}
{value}
</li>
),
)}

View File

@ -28,7 +28,7 @@ export const ProjectActionsFiltersCell = ({
<>
{filters.map(([parameter, value]) => (
<StyledItem key={parameter}>
{parameter}: {value}
<strong>{parameter}</strong>: {value}
</StyledItem>
))}
</>

View File

@ -6,6 +6,7 @@ import webhooksIcon from 'assets/icons/webhooks.svg';
import { Link as RouterLink } from 'react-router-dom';
import { ComponentType } from 'react';
import { wrapperStyles } from 'component/common/Table/cells/LinkCell/LinkCell.styles';
import { formatAssetPath } from 'utils/formatPath';
const StyledCell = styled(Box)({
display: 'flex',
@ -49,7 +50,7 @@ export const ProjectActionsTriggerCell = ({
<TextCell>
<StyledCell>
<StyledIcon
src={webhooksIcon}
src={formatAssetPath(webhooksIcon)}
alt='Incoming webhook'
variant='rounded'
/>