-
- {title}
-
+
{title}
{value}
diff --git a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardField/StrategyCardField.styles.js b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardField/StrategyCardField.styles.js
index 93c707d765..b3c13df7c5 100644
--- a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardField/StrategyCardField.styles.js
+++ b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardField/StrategyCardField.styles.js
@@ -6,9 +6,6 @@ export const useStyles = makeStyles(theme => ({
justifyContent: 'space-between',
margin: '0.4rem 0',
},
- fieldTitle: {
- fontWeight: theme.fontWeight.semi,
- },
fieldValue: {
maxWidth: '50%',
},
diff --git a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.jsx b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.jsx
index b3264865ab..51bfd554f4 100644
--- a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.jsx
+++ b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.jsx
@@ -10,9 +10,15 @@ const StrategyCardList = ({ list, valuesName }) => {
return (
- List of {valuesName}
+
+ List of {valuesName}
+
{list.map(listItem => (
-
+
))}
);
diff --git a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.styles.js b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.styles.js
index ea1bb0f05e..146b110cc2 100644
--- a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.styles.js
+++ b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardList/StrategyCardList.styles.js
@@ -8,7 +8,6 @@ export const useStyles = makeStyles(theme => ({
margin: '0.25rem',
},
strategyListHeader: {
- fontWeight: theme.fontWeight.semi,
marginBottom: '0.5rem',
},
}));
diff --git a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardPercentage/StrategyCardPercentage.styles.js b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardPercentage/StrategyCardPercentage.styles.js
index adf5f4c237..301d751e30 100644
--- a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardPercentage/StrategyCardPercentage.styles.js
+++ b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardContent/common/StrategyCardPercentage/StrategyCardPercentage.styles.js
@@ -5,11 +5,7 @@ export const useStyles = makeStyles(theme => ({
display: 'flex',
justifyContent: 'space-between',
},
- title: {
- fontWeight: theme.fontWeight.semi,
- },
percentage: {
- color: theme.palette.success.main,
fontWeight: 'bold',
},
}));
diff --git a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.jsx b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.jsx
index 85a8d76c0c..8b80695fd1 100644
--- a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.jsx
+++ b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.jsx
@@ -1,11 +1,23 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { CardHeader, Typography, IconButton, Icon } from '@material-ui/core';
+import {
+ CardHeader,
+ Typography,
+ IconButton,
+ Icon,
+ Tooltip,
+} from '@material-ui/core';
import { useStyles } from './StrategyCardHeader.styles.js';
+import { ReactComponent as ReorderIcon } from '../../../../../assets/icons/reorder.svg';
-const StrategyCardHeader = ({ name, connectDragSource, removeStrategy, editStrategy }) => {
+const StrategyCardHeader = ({
+ name,
+ connectDragSource,
+ removeStrategy,
+ editStrategy,
+}) => {
const styles = useStyles();
return (
@@ -16,23 +28,36 @@ const StrategyCardHeader = ({ name, connectDragSource, removeStrategy, editStrat
}}
title={
<>
-
+
{name}
-
- edit
-
+
+
+
+ edit
+
+
+
{connectDragSource(
-
- reorder
-
+
+
+
+
+
)}
-
- delete
-
+
+
+
+ delete
+
+
+
>
}
diff --git a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.styles.js b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.styles.js
index 40160f8128..dabafe7bed 100644
--- a/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.styles.js
+++ b/frontend/src/component/feature/strategy/StrategyCard/StrategyCardHeader/StrategyCardHeader.styles.js
@@ -3,23 +3,21 @@ import { makeStyles } from '@material-ui/styles';
export const useStyles = makeStyles(theme => ({
strategyCardHeaderContent: {
width: '100%',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'space-between',
},
strategyCardHeader: {
display: 'flex',
- flexDirection: 'column',
background: `linear-gradient(${theme.palette.cards.gradient.top}, ${theme.palette.cards.gradient.bottom})`,
color: '#fff',
- textAlign: 'center',
- width: '100%',
+ textAlign: 'left',
},
strategyCardHeaderTitle: {
- fontWeight: 'bold',
- fontSize: theme.fontSizes.mainHeader,
- marginBottom: '0.7rem',
+ fontSize: theme.fontSizes.subHeader,
},
strategyCardHeaderActions: {
display: 'flex',
- justifyContent: 'space-between',
color: '#fff',
},
strateyCardHeaderIcon: {
diff --git a/frontend/src/component/feature/strategy/strategies-list-component.jsx b/frontend/src/component/feature/strategy/strategies-list-component.jsx
index 889e9b2dbf..87888a8dae 100644
--- a/frontend/src/component/feature/strategy/strategies-list-component.jsx
+++ b/frontend/src/component/feature/strategy/strategies-list-component.jsx
@@ -187,16 +187,20 @@ const StrategiesList = props => {
className={styles.infoCard}
onClose={() => setShowAlert(false)}
>
- Strategies allow you fine grained control over how to
- activate your features, and are composable blocks that
- are executed in an OR fashion. As an example, you can
- have a gradual rollout that targets 80% of users in a
- region of the world (using the enterprise feature of
- constraints), and another gradual rollout that targets
- 20% of the users in another region. If you don't add a
- strategy, the default strategy is activated which means
- that the feature will be strictly on/off for your entire
- userbase.
+
+ Activation strategies defines how you enable the new
+ feature to your users. Changes to the activation
+ strategies does not require redeployment of the
+ code.
+
+
+ Multiple activation strategies are composable blocks
+ that is executed in an OR fashion.
+
+ E.g. A gradual rollout activation strategy allows
+ you to gradually enable to feature to a subset of
+ your users without redeploy to production.
+
}
/>
diff --git a/frontend/src/component/feature/strategy/strategy.module.scss b/frontend/src/component/feature/strategy/strategy.module.scss
index 5c0f6b489f..78249eed75 100644
--- a/frontend/src/component/feature/strategy/strategy.module.scss
+++ b/frontend/src/component/feature/strategy/strategy.module.scss
@@ -11,7 +11,7 @@
width: 100%;
display: block;
background-color: #f2f9fc;
- overflow: "visible";
+ overflow: 'visible';
}
.paragraph {
@@ -156,3 +156,11 @@
padding: 0;
}
}
+
+@media (max-width: 860px) {
+ .strategyListCards {
+ flex-direction: column;
+ flex-wrap: none;
+ align-items: center;
+ }
+}