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:
parent
32dd377c3e
commit
6ee4d2724e
@ -45,7 +45,8 @@ export const ProjectActionsActionsCell = ({
|
|||||||
{Object.entries(executionParams).map(
|
{Object.entries(executionParams).map(
|
||||||
([param, value]) => (
|
([param, value]) => (
|
||||||
<li key={param}>
|
<li key={param}>
|
||||||
{param}: {value}
|
<strong>{param}</strong>:{' '}
|
||||||
|
{value}
|
||||||
</li>
|
</li>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
|
@ -28,7 +28,7 @@ export const ProjectActionsFiltersCell = ({
|
|||||||
<>
|
<>
|
||||||
{filters.map(([parameter, value]) => (
|
{filters.map(([parameter, value]) => (
|
||||||
<StyledItem key={parameter}>
|
<StyledItem key={parameter}>
|
||||||
{parameter}: {value}
|
<strong>{parameter}</strong>: {value}
|
||||||
</StyledItem>
|
</StyledItem>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
|
@ -6,6 +6,7 @@ import webhooksIcon from 'assets/icons/webhooks.svg';
|
|||||||
import { Link as RouterLink } from 'react-router-dom';
|
import { Link as RouterLink } from 'react-router-dom';
|
||||||
import { ComponentType } from 'react';
|
import { ComponentType } from 'react';
|
||||||
import { wrapperStyles } from 'component/common/Table/cells/LinkCell/LinkCell.styles';
|
import { wrapperStyles } from 'component/common/Table/cells/LinkCell/LinkCell.styles';
|
||||||
|
import { formatAssetPath } from 'utils/formatPath';
|
||||||
|
|
||||||
const StyledCell = styled(Box)({
|
const StyledCell = styled(Box)({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@ -49,7 +50,7 @@ export const ProjectActionsTriggerCell = ({
|
|||||||
<TextCell>
|
<TextCell>
|
||||||
<StyledCell>
|
<StyledCell>
|
||||||
<StyledIcon
|
<StyledIcon
|
||||||
src={webhooksIcon}
|
src={formatAssetPath(webhooksIcon)}
|
||||||
alt='Incoming webhook'
|
alt='Incoming webhook'
|
||||||
variant='rounded'
|
variant='rounded'
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user