From 51e18c3db6f7f267297adb0fd0d698d5877303ce Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Sun, 15 Oct 2017 21:43:03 -0400 Subject: [PATCH] Apply UI fixes and updates --- ui/package.json | 4 +- ui/public/index.html | 2 +- ui/src/components/MappingRuleEditor.js | 142 ++++++++-------- ui/src/components/MappingRulesTable.js | 8 +- ui/src/components/PolicyEditor.js | 226 +++++++++++++++++++++++++ ui/src/components/RollupRuleEditor.js | 148 ++++++++-------- ui/src/components/RollupRulesTable.js | 9 +- ui/src/pages/Namespace.js | 31 ++-- ui/src/utils/index.js | 7 + ui/src/utils/index.test.js | 8 + ui/yarn.lock | 45 ++++- 11 files changed, 456 insertions(+), 174 deletions(-) create mode 100644 ui/src/components/PolicyEditor.js create mode 100644 ui/src/utils/index.js create mode 100644 ui/src/utils/index.test.js diff --git a/ui/package.json b/ui/package.json index 8a212f2..767ac63 100644 --- a/ui/package.json +++ b/ui/package.json @@ -7,6 +7,7 @@ "antd": "^2.12.5", "axios": "^0.16.2", "basscss": "^8.0.3", + "formik": "^0.9.4", "lodash": "^4.17.4", "moment": "2.18.1", "nprogress": "^0.2.0", @@ -16,7 +17,8 @@ "react-refetch": "^1.0.0", "react-router-dom": "^4.1.2", "react-scripts": "1.0.10", - "recompose": "^0.24.0" + "recompose": "^0.24.0", + "yup": "^0.22.0" }, "scripts": { "start": "react-scripts start", diff --git a/ui/public/index.html b/ui/public/index.html index 7574cca..680570d 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -19,7 +19,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - M3Ctrl + R2Ctrl