feat: use script setup for filter views #951
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#951
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen/frontend:feature/use-script-setup-for-filter-views"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: feat: use script setup for filter viewsto feat: use script setup for filter viewsEditing a filter seems to fail:
I think because the
filterService
is not exposed in the frontend? And because of that it can't set the loading state based onfilterService.loading
.Did you test that? I'm relatively sure this was due to some race condition breaking things - probably not an ideal way to work around it the way I did though, if it does not happen anymore it should be fine.
My idea was that with the changed
savedFilter.id
the element gets a new key and thus gets remounted => has the same sideeffect.But no, didn't test :/
51f9e46432
to18d1a61e13
Fixed
Now there's this:
Not sure if related to the pr?
When do you get that?
When editing a filter.
Fixed in~13da68f517
EDIT: force pushed. see comment below
13da68f517
to1d2f1212cc
@ -264,1 +266,3 @@
this.params = value
// FIXME: filters should only be converted to snake case in
// the last moment
this.params = objectToSnakeCase(value)
@konrad: Fixed with this
Hi dpschen!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://951-featureuse-script-setup-for-filter-views--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
It looks like the filter does not get popuplated when editing:
The filter title should be present in the input.
1d2f1212cc
to04e0ea03fb
Good catch. Was missing a
immediate: true
in the watcher =)@konrad: can you check again? =)
Looks like everything is working now. Thanks!