From d849f025cf04dd3628055917db74e8f29344f2f6 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Thu, 8 Oct 2020 16:02:31 +0100 Subject: [PATCH] ui: L7 intentions improvements (#8851) * Disable source as well as destination on editing * Various visual/textual amends * Make errors only appear once you've interacted with a field * Move tests that involve selecting menus to a create form * Revert fieldsets and checkboxes --- .../consul-intention-form/fieldsets/index.hbs | 17 ++-- .../consul-intention-form/fieldsets/skin.scss | 11 ++- .../index.hbs | 86 +++++++++++------- .../skin.scss | 10 ++ .../index.hbs | 91 +++++++++++-------- .../index.hbs | 1 - .../index.scss | 19 ---- .../form-group/element/checkbox/index.hbs | 8 ++ .../form-group/element/error/index.hbs | 6 ++ .../components/form-group/element/index.hbs | 33 +++++++ .../components/form-group/element/index.js | 37 ++++++++ .../form-group/element/label/index.hbs | 6 ++ .../form-group/element/radio/index.hbs | 8 ++ .../form-group/element/text/index.hbs | 8 ++ ui-v2/app/components/form-group/index.hbs | 3 + ui-v2/app/components/form-group/index.js | 7 ++ .../styles/base/color/frame-placeholders.scss | 12 +++ .../styles/components/list-row/layout.scss | 20 ++++ ui-v2/app/styles/routes.scss | 1 + .../styles/routes/dc/intentions/index.scss | 3 + .../dc/intentions/filtered-select.feature | 20 +--- .../dc/intentions/form-select.feature | 5 +- 22 files changed, 292 insertions(+), 120 deletions(-) create mode 100644 ui-v2/app/components/form-group/element/checkbox/index.hbs create mode 100644 ui-v2/app/components/form-group/element/error/index.hbs create mode 100644 ui-v2/app/components/form-group/element/index.hbs create mode 100644 ui-v2/app/components/form-group/element/index.js create mode 100644 ui-v2/app/components/form-group/element/label/index.hbs create mode 100644 ui-v2/app/components/form-group/element/radio/index.hbs create mode 100644 ui-v2/app/components/form-group/element/text/index.hbs create mode 100644 ui-v2/app/components/form-group/index.hbs create mode 100644 ui-v2/app/components/form-group/index.js create mode 100644 ui-v2/app/styles/routes/dc/intentions/index.scss diff --git a/ui-v2/app/components/consul-intention-form/fieldsets/index.hbs b/ui-v2/app/components/consul-intention-form/fieldsets/index.hbs index 4a47457514..89f3f64145 100644 --- a/ui-v2/app/components/consul-intention-form/fieldsets/index.hbs +++ b/ui-v2/app/components/consul-intention-form/fieldsets/index.hbs @@ -9,6 +9,7 @@ {{#if (env 'CONSUL_NSPACES_ENABLED')}} {{/if}} @@ -69,9 +72,9 @@ {{service.Name}} {{/if}} - {{#if create}} - Search for an existing service, or enter any Service name. - {{/if}} + {{#if create}} + Search for an existing service, or enter any Service name. + {{/if}} {{#if (env 'CONSUL_NSPACES_ENABLED')}}