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

PR comments

This commit is contained in:
andreas-unleash 2022-08-05 12:16:51 +03:00
parent 478b94dab5
commit 33288caae4
5 changed files with 13 additions and 16 deletions

View File

@ -10,8 +10,8 @@ export const useStyles = makeStyles()(theme => ({
display: 'inline-flex',
alignItems: 'flex-start',
justifyContent: 'center',
gap: '12px',
marginTop: '12px',
gap: theme.spacing(1.5),
marginTop: theme.spacing(1.5),
},
alertRow: {
margin: theme.spacing(1, 0),
@ -21,7 +21,7 @@ export const useStyles = makeStyles()(theme => ({
},
name: {
fontWeight: 600,
padding: '4px',
padding: theme.spacing(0.5),
},
icon: {
textAlign: 'right',

View File

@ -36,8 +36,8 @@ export const PlaygroundResultFeatureDetails = ({
: !feature.isEnabledInCurrentEnvironment
? 'the environment is disabled'
: hasOnlyCustomStrategies(feature)
? 'all strategies are Unevaluated'
: 'all strategies are False or Uneavaluated';
? 'no strategies could be fully evaluated'
: 'all strategies are either False or could not be fully evaluated';
const color = feature.isEnabled
? theme.palette.success.main

View File

@ -19,7 +19,7 @@ const StyledValuesSpan = styled('span')(({ theme }) => ({
},
}));
interface ConstraintSingleValueProps {
interface PLaygroundConstraintAccordionViewHeaderMultipleValueProps {
constraint: PlaygroundConstraintSchema;
expanded: boolean;
maxLength: number;
@ -31,7 +31,7 @@ export const PLaygroundConstraintAccordionViewHeaderMultipleValues = ({
expanded,
allowExpand,
maxLength,
}: ConstraintSingleValueProps) => {
}: PLaygroundConstraintAccordionViewHeaderMultipleValueProps) => {
const { classes: styles } = useStyles();
const [expandable, setExpandable] = useState(false);

View File

@ -13,7 +13,7 @@ const StyledSingleValueChip = styled(Chip)(({ theme }) => ({
},
}));
interface ConstraintSingleValueProps {
interface PlaygroundConstraintAccordionViewHeaderSingleValueProps {
constraint: PlaygroundConstraintSchema;
allowExpand: (shouldExpand: boolean) => void;
}
@ -21,7 +21,7 @@ interface ConstraintSingleValueProps {
export const PlaygroundConstraintAccordionViewHeaderSingleValue = ({
constraint,
allowExpand,
}: ConstraintSingleValueProps) => {
}: PlaygroundConstraintAccordionViewHeaderSingleValueProps) => {
const { locationSettings } = useLocationSettings();
const { classes: styles } = useStyles();

View File

@ -1,13 +1,10 @@
export const getMappedParam = (key: string) => {
switch (key) {
case 'userIds':
case 'UserIds':
switch (key.toUpperCase()) {
case 'USERIDS':
return 'userId';
case 'hostNames':
case 'HostNames':
return 'hostname';
case 'IPs':
case 'IPS':
return 'remoteAddress';
case 'HOSTNAMES':
default:
return key;
}