feat: make user settings links config driven #1990
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#1990
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen/frontend:feature/feat-make-links-config-driven"
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?
I'm not really sure if this is really an improvement, since it removes flexibility…
Since I did it I wanted to share it anyway.
One thing that I realized while doing this is:
We should extract these functions that tell if a user is able to do something / access somewhere as guards and use the same ones e.g. as guard in vue-router.
=> less duplication.
That sounds like a good idea. I think there's no way around duplicating the logic behind this with the rights management code in the api?
Yes, since we should test access in frontend before showing something that won't load because the user doesn't have the right to load it I also don't see any way around. (Writing the obvious here).
It would be good if we could keep it as close as possible.
There are ways to sync this of course but I have never done something like 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://1990-feature-feat-make-links-config-d--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!
There's the rights header which we're using to show or hide edit buttons on entities, but that won't work for things like getting all lists at once where the right is different for each list.