Link to userdate from profile button closes #170 #173
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
question
S
UX research
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "170-userdata-for-profile-button"
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?
Description of the implemented changes
The changes were:
Set the link for the "profile" button. This led to every view needing the
current_user, resulting in a little refactoring of the the layout handling. This was done to make the current_user requirement explicit in authenticated views.Also edited the test helper functions to allow for multiple tests creating users with the same function
What has been changed?
current userin all viewsDefinition of Done
Code Quality
Accessibility
Testing
Additional Notes
http://localhost:4000/users/0dc6439e-b193-4d8b-b2b1-dadd8b23d946WIP: Link to userdate from profile button closes #170to Link to userdate from profile button closes #170Nice work :)
Just the linting / Todo thing.. but then approved :)
@ -23,2 +24,4 @@</Layout.app><Layouts.app flash={@flash} current_user={@current_user}><h1>Authenticated Content</h1>I know the h1 tag was there before, but I actually do not get when its rendered. Do you know? Because if its an h1 tag which says authenticated content we should maybe change it but if its not rendered we could also omit?
I'm not sure if that's the case with you but for me, the forgejo review UI confused me a bit. I found out that this code is part of an example in a documentation comment, so the h1 you're referring to will never get really rendered, it's just a placeholder to illustrate the functionality.
@ -0,0 +23,4 @@end@tag :skip# TODO: Implement user initials in navbar avatar - see issue #170Just a minor thing but: Lint is not passing with TODO s :/
Nice!
@ -6,3 +6,3 @@def render(assigns) do~H"""<Layouts.app flash={@flash}><Layouts.app flash={@flash} current_user={@current_user}>As a future possibility (outside of this PR), we could try Phoenix's new scopes feature for this.