-
Notifications
You must be signed in to change notification settings - Fork 395
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
[WIP] Feature/profile page - requests for comments #34
Conversation
(original comment by @SISheogorath hackmdio/codimd#952 (comment) )
Definitely! It was only put into the menu on the main page, because there was no profile page yet.
Not sure if you got all, but EJS will definitely complain when there is something missing. All in all, I really like your work! Seems like user profiles are moving forward! And I'm really curious about what we will get as result! |
(original comment by @davidmehren hackmdio/codimd#952 (comment) ) How does this interact with users from other auth sources, eg. LDAP? Normal apps might not have permission to change user attributes or delete them. |
(original comment by @SISheogorath hackmdio/codimd#952 (comment) ) @davidmehren Just realized you referred to the editing of the attributes in CodiMD. Not sure if we want to restrict them. How do other application handle that? I think most of them simply allow to change these details. At least discourse and GitLab do so, as far as I can say. |
(my comment originally posted here: hackmdio/codimd#952 (comment) ) Thanks for reminding me, until now i was only concerned with local users. I will add it to the TODO list. Since I use none of the other login providers, I'd value any input on that part. I might need to disable password change for those users, but display name ( |
unresolved debate about length of user names can be found here: hackmdio/codimd#952 (review) |
(my comment originally published here: hackmdio/codimd#952 (comment) ) I will be going for username / displayname next. Along the way I'll probably rebase this a few times, so previous discussion might end up folded up in github. |
07db983
to
1b23905
Compare
1b23905
to
4dcdbb1
Compare
I would rather set a minimum length of 1 for display names. But there are reasons to not limit anything ;-) |
ba2b91b
to
347018c
Compare
Is there anything that can be done to move things forward on this one? |
I rebase this on top of the current master from time to time. I will not be able to do any meaningful work for the next four or five weeks on this, I'm afraid. But: anyone who wants to work on this is very welcome to do so! I'm on riot at least once a day and I'll gladly answer any questions there or in this pull request! |
What would help me tremendously is testing the other login providers. I only use email login, so I haven't really tested yet if I interfered with the others in any way so far. |
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
347018c
to
91a87f3
Compare
Signed-off-by: Claudius <opensource@amenthes.de>
…se you couldn't add a new user with the current signup form Signed-off-by: Claudius <opensource@amenthes.de>
Deleting a user from your account management page makes more sense. Also, so far this action was triggered by a GET request, now it's a more reasonable POST request, which is the suggested method for destructive things. Features page is now more prominently linked to from the history or landing page. It was previously below the user dropdown. Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
Signed-off-by: Claudius <opensource@amenthes.de>
91a87f3
to
e8295d9
Compare
@ccoenen Want to rebase to 2.0? |
Yes, I'll do this. I think we should finish this one for 2.0 too. I will need some help with testing, but other than that this shouldn't be very problematic. I can start working on that in a week or so. |
While I agree that we should have a profile page in 2.0, I don't think we can move forward with this PR. The new frontend already started reimplementing a profile page and the proposed API includes (at least parts of) the relevant REST calls. I'm really sorry to throw away all your work, but I don't see a feasible way to combine this code with the plans for 2.0. Of course, your input on implementing this feature in the new frontend and API is still very much appreciated. |
This work was not thrown away, as far as I know a lot of his was actually taken into consideration and worked with by the frontend team when they did their implementation :) |
(moved over from hackmdio/codimd#952 )
I am currently implementing a profile page that would let you edit your display name (henceforth:
name
) and possibly edit your password. It is far from finished, and I did a little bit of groundwork for future pages along the way. Those should get their own pull requests, probably.)Questions:
We could put "delete user" on that page instead of the index-page-menu. Opinions?I think it's decided that it should go into profile.TODO:
-----8<---- MVP line, cut here if neccessary ---8<----
/user/:username
actually use username instead of user.iddocuments i contributed and document I own is a bit tricky, those should be opt-in since they make documents discoverable that would otherwise have remained hidden.(checked off for "won't be done for now")For a MVP we could "just not link to it, yet" but already deploy it. We could get some feedback this way and improve it more before we officially ship it.