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

Autofill search field behaviour #221

Open
ianleeder opened this issue Aug 18, 2023 · 5 comments
Open

Autofill search field behaviour #221

ianleeder opened this issue Aug 18, 2023 · 5 comments
Labels

Comments

@ianleeder
Copy link

Did something change on the search field behaviour? I have one site running UIOMatic 3.1.9.660, and if I enter a search term, navigate away and back, the field is empty.

I have another site running UIOMatic 5.1.4, and if I search, navigate away, and navigate back, the search field is pre-populated and my view is filtered.

@TimGeyssens
Copy link
Owner

what do you prefer? 😄

@ianleeder
Copy link
Author

Personally I find it very misleading coming back to a page that is pre-filtered. It's not obvious that a search filter has been applied.

Is there a way to disable this behaviour? Even if it's in code, can you point me to it? I'm running from a fork at the moment anyway.

@timaaltra
Copy link

probably in the list view controller

@ianleeder
Copy link
Author

Thanks @timaaltra, I found it in /src/UIOMatic/wwwroot/backoffice/uiomatic/list.controller.js:

$scope.searchTerm = state.searchTerm;
$scope.searchFilter = state.searchTerm;

I still find this "feature" disconcerting, as the search box is subtle, and the list doesn't indicate that it is filtered in any way.

I'm happy to close this "question", but not sure if you wanted to leave this as a prompt to revisit the implementation, or create a config entry to enable/disable this.

@JasonEleventeen
Copy link

JasonEleventeen commented Oct 9, 2023

Thanks @timaaltra, I found it in /src/UIOMatic/wwwroot/backoffice/uiomatic/list.controller.js:

$scope.searchTerm = state.searchTerm;
$scope.searchFilter = state.searchTerm;

I still find this "feature" disconcerting, as the search box is subtle, and the list doesn't indicate that it is filtered in any way.

I'm happy to close this "question", but not sure if you wanted to leave this as a prompt to revisit the implementation, or create a config entry to enable/disable this.

I added this feature a few years ago for a customer. The use case they had was opening an object for editing, and then clicking back cleared their search. When they were several objects deep, this became unworkable for the user as they lost the context of where they were. This was a simple fix that kept them happy. It might be more of a UX issue that it's not obvious a filter is being applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants