Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Update kv list filter to not search on type #22648

Merged
merged 8 commits into from
Aug 31, 2023

Conversation

hashishaw
Copy link
Contributor

Searching on type has been causing issues as of a recent Ember Upgrade, because the input loses focus each time the query param is updated (which causes a full page refresh). We had a hack to manually focus the input after page load, but found it was not working as expected within a namespace.

To reduce flakiness on this interaction, we have opted to replace the old functionality with a streamlined search bar which requires submit (or ENTER key) to search. Note that pressing the ESC key while the input is focused will direct the user to the previous "folder", as it did in the previous iterations of the nested search bar.
New search bar in KV V2 only

@hashishaw hashishaw added this to the 1.15 milestone Aug 30, 2023
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 30, 2023
@value={{this.query}}
placeholder="Search secret path"
aria-describedby="Search by secret path"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

<form {{on "submit" (perform this.handleSearch)}}>
<Hds::SegmentedGroup as |S|>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hellobontempo can probably speak more to this, but should we make an hds ticket to keep track of this component being used? 🙂

@@ -83,84 +89,4 @@ export default class KvListFilterComponent extends Component {
this.navigate(null, input);
}
}
/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay for removing some of these key events!

@github-actions
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just here to say THANK YOU! Performance wise this should be a much better experience.

@hashishaw hashishaw merged commit 8da06f9 into main Aug 31, 2023
64 checks passed
@hashishaw hashishaw deleted the ui/VAULT-19472/kv-list-filter-fix branch August 31, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants