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

Datatable filtering and sorting #192

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

wazolab
Copy link
Member

@wazolab wazolab commented Mar 12, 2024

⚠️ Vuetify has been upgraded to v3.4.0.
We could do even better sorting / filtering with the latest version and avoid data transformation prior to rendering.
In new Vuetify version we have the ability to use raw data in sort & filter.
Usage of latest Vuetify version might create side-effects on other Vuetify components which is out of the scope of this PR.

How work Sort / Filter on DataTable

For value display in template, we are using an untouched pois data structure coming from the API.

We are adding to pois all composed fields with single string value (ex: addr, route, @frodrigo : do we have more specific cases ? ), this way we have conventional field to be displayed / sorted and filtered.

During Sort & Filter we are using valueToString function in order to flatten array values on the fly as we can’t do it earlier. We need the array value for Field Component.

@wazolab wazolab self-assigned this Mar 12, 2024
@wazolab wazolab requested a review from frodrigo March 12, 2024 09:43
@frodrigo
Copy link
Member

Please, rebase this branch.

@wazolab wazolab force-pushed the 172-datatable-filtering-and-sorting branch from c214f0a to a082cc7 Compare March 12, 2024 14:03
@wazolab
Copy link
Member Author

wazolab commented Mar 12, 2024

@frodrigo: PR rebase !

@wazolab wazolab force-pushed the 172-datatable-filtering-and-sorting branch 19 times, most recently from 93d3900 to 07e3998 Compare March 13, 2024 10:38
@wazolab wazolab force-pushed the 172-datatable-filtering-and-sorting branch from 07e3998 to d957790 Compare March 13, 2024 11:01
@frodrigo frodrigo merged commit 152c0f9 into develop Mar 13, 2024
1 check passed
@wazolab wazolab deleted the 172-datatable-filtering-and-sorting branch March 13, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants