-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Update kv list filter to not search on type (#22648)
- Loading branch information
Showing
5 changed files
with
133 additions
and
263 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,35 +1,21 @@ | ||
<div class="navigate-filter"> | ||
<div class="field" data-test-nav-input> | ||
<p class="control has-icons-left"> | ||
<Input | ||
id="secret-filter" | ||
class="filter input" | ||
placeholder="Filter secrets" | ||
@value={{@filterValue}} | ||
@type="text" | ||
data-test-component="kv-list-filter" | ||
{{on "input" this.handleInput}} | ||
{{on "keydown" this.handleKeyDown}} | ||
{{on "focus" this.setFilterIsFocused}} | ||
{{did-insert this.focusInput}} | ||
autocomplete="off" | ||
/> | ||
<Icon @name="search" class="search-icon has-text-grey-light" /> | ||
</p> | ||
</div> | ||
</div> | ||
{{#if (and this.filterIsFocused this.isFilterMatch)}} | ||
<p class="help has-text-grey is-size-8 has-left-padding-xs" data-test-help-enter> | ||
<kbd>ENTER</kbd> | ||
to go to see details. | ||
<kbd>ESC</kbd> | ||
to clear input. | ||
</p> | ||
{{else}} | ||
<p class="help has-text-grey is-size-8 has-left-padding-xs" data-test-help-tab> | ||
<kbd>TAB</kbd> | ||
to autocomplete. | ||
<kbd>ESC</kbd> | ||
to clear input. | ||
</p> | ||
{{/if}} | ||
<form {{on "submit" (perform this.handleSearch)}}> | ||
<Hds::SegmentedGroup as |S|> | ||
<S.TextInput | ||
id="secret-id" | ||
@value={{this.query}} | ||
placeholder="Search secret path" | ||
aria-describedby="Search by secret path" | ||
size="32" | ||
{{on "input" this.handleInput}} | ||
{{on "keydown" this.handleKeyDown}} | ||
data-test-kv-list-filter | ||
/> | ||
<S.Button | ||
@color="secondary" | ||
@text="Search" | ||
@icon={{if this.handleSearch.isRunning "loading" "search"}} | ||
type="submit" | ||
data-test-kv-list-filter-submit | ||
/> | ||
</Hds::SegmentedGroup> | ||
</form> |
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
Oops, something went wrong.