-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented UX component for configuring and editing alias actions. Signed-off-by: AWSHurneyt <[email protected]> * Implemented unit and integration tests for alias action UX. Signed-off-by: AWSHurneyt <[email protected]> * Refactored existing test to accommodate addition of alias action UX. Signed-off-by: AWSHurneyt <[email protected]> * Fixed a bug preventing validation messages from appearing under both combo boxes at once. Signed-off-by: AWSHurneyt <[email protected]> * Removed redundant 'popout' icons from 'Learn more' links. Having 'target="_blank"' in the link attributes provides the icon. Updated snapshots. Signed-off-by: AWSHurneyt <[email protected]> * Added unit tests for AliasUiAction. Signed-off-by: AWSHurneyt <[email protected]> * Refactored alias action UX to include toggles to hide/display the add/remove combo boxes. Implemented a modal to confirm clearing combo box entries when toggling display. Signed-off-by: AWSHurneyt <[email protected]> * Refactored UX to remove the alias combo box clear confirmation modal based on PR feedback. Signed-off-by: AWSHurneyt <[email protected]> * Updated the 2.8 release notes. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
- Loading branch information
1 parent
d0fdde2
commit 5f5a172
Showing
38 changed files
with
1,426 additions
and
47 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
cypress/fixtures/plugins/index-management-dashboards-plugin/sample_policy_alias_action.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"policy": { | ||
"policy_id": "test_alias_policy_id", | ||
"description": "Example policy with an alias action.", | ||
"default_state": "alias-state", | ||
"states": [ | ||
{ | ||
"name": "alias-state", | ||
"actions": [ | ||
{ | ||
"alias": { | ||
"actions": [ | ||
{ | ||
"remove": { | ||
"aliases": ["alias1", "alias2"] | ||
} | ||
}, | ||
{ | ||
"remove": { | ||
"alias": "alias3" | ||
} | ||
}, | ||
{ | ||
"add": { | ||
"aliases": ["alias4", "alias5"] | ||
} | ||
}, | ||
{ | ||
"add": { | ||
"aliases": "alias6" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"transitions": [] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
public/pages/CreatePolicy/utils/__snapshots__/helpers.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`inputLimitText renders the component with 0 inputs 1`] = ` | ||
<div | ||
class="euiText euiText--extraSmall" | ||
> | ||
<div | ||
class="euiTextColor euiTextColor--subdued" | ||
> | ||
You can add up to 10 more aliases. | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`inputLimitText renders the component with 0 inputs remaining 1`] = ` | ||
<div | ||
class="euiText euiText--extraSmall" | ||
> | ||
<div | ||
class="euiTextColor euiTextColor--subdued" | ||
> | ||
You have reached the limit of 10 aliases. | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`inputLimitText renders the component with 1 input remaining 1`] = ` | ||
<div | ||
class="euiText euiText--extraSmall" | ||
> | ||
<div | ||
class="euiTextColor euiTextColor--subdued" | ||
> | ||
You can add up to 1 more alias. | ||
</div> | ||
</div> | ||
`; |
Oops, something went wrong.