From dbc5fd597e698206c4bf87ea7ea384027250479f Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Wed, 29 Apr 2020 20:27:46 -0700 Subject: [PATCH] fix detector configuration page style based on UX review comments --- .../containers/DetectorConfig.tsx | 34 +++++++++---------- .../DetectorConfig/containers/Features.tsx | 33 ++++++++---------- .../DetectorConfig/containers/MetaData.tsx | 9 ++--- .../DetectorDetail.test.tsx.snap | 13 ++++++- 4 files changed, 45 insertions(+), 44 deletions(-) diff --git a/public/pages/DetectorConfig/containers/DetectorConfig.tsx b/public/pages/DetectorConfig/containers/DetectorConfig.tsx index b7ad44d2..9dd0962c 100644 --- a/public/pages/DetectorConfig/containers/DetectorConfig.tsx +++ b/public/pages/DetectorConfig/containers/DetectorConfig.tsx @@ -29,23 +29,21 @@ interface DetectorConfigProps extends RouteComponentProps { export const DetectorConfig = (props: DetectorConfigProps) => { return ( -
- - - - - - - - -
+ + + + + + + + ); }; diff --git a/public/pages/DetectorConfig/containers/Features.tsx b/public/pages/DetectorConfig/containers/Features.tsx index 35cd10c8..464a2165 100644 --- a/public/pages/DetectorConfig/containers/Features.tsx +++ b/public/pages/DetectorConfig/containers/Features.tsx @@ -51,7 +51,7 @@ export class Features extends Component { () => false ), sortField: 'name', - sortDirection: 'desc', + sortDirection: 'asc', }; } @@ -175,7 +175,6 @@ export class Features extends Component { const getCellProps = () => { return { - className: 'featureText', textOnly: true, }; }; @@ -187,27 +186,25 @@ export class Features extends Component { title={`Features (${featureNum})`} titleSize="s" subTitle={ - - Specify index fields that you want to find anomalies for by defining - features. A detector can discover anomalies across up to 5 features. - Once you define the features, you can preview your anomalies from a - sample feature output.{' '} - - Learn more   - - + +

+ Specify index fields that you want to find anomalies for by + defining features. A detector can discover anomalies for up to 5 + features. Once you define the features, you can preview your + anomalies from a sample feature output.{' '} + + Learn more   + + +

} actions={[ Edit, ]} - panelStyles={{ - left: '10px', - width: '1120px', - }} > {featureNum == 0 ? ( { title="Detector configuration" titleSize="s" actions={[Edit]} - panelStyles={{ - left: '10px', - width: '1120px', - }} > diff --git a/public/pages/DetectorDetail/containers/__tests__/__snapshots__/DetectorDetail.test.tsx.snap b/public/pages/DetectorDetail/containers/__tests__/__snapshots__/DetectorDetail.test.tsx.snap index 1a05cffd..effaac75 100644 --- a/public/pages/DetectorDetail/containers/__tests__/__snapshots__/DetectorDetail.test.tsx.snap +++ b/public/pages/DetectorDetail/containers/__tests__/__snapshots__/DetectorDetail.test.tsx.snap @@ -159,6 +159,17 @@ exports[` spec detector detail renders detector detail compone -
+
+
+
+
+
`;