Related links#1054
Related links#1054JaviviJR wants to merge 28 commits intoMbinOrg:dev/new_featuresfrom JaviviJR:related-links
Conversation
|
Limit it to links would be fine for me, but I don't think that it makes sense 🤔 |
| } | ||
| } | ||
|
|
||
| public function getRelatedLinks(): array |
There was a problem hiding this comment.
Could you add phpDoc so we know which kind of array is returned? I really liked if the returned value would be of RelatedLink[] so an array of objects, so we can add some validation logic so we can mark links as "checked" or something so we know that the rel=me is actually correct
There was a problem hiding this comment.
Discussed Discussed on element chat.
I don't know a elegant way to denormalize the json field from table and return it on get method. This'll required some dependencies inside entity that I think is not a good practice.
Instead, I created a RelatedLinkDTO class and this will be returned in UserDTO.
BentiGorlich
left a comment
There was a problem hiding this comment.
I'd love if the add button would something like this (but that is not a requirement):

I noticed that the links are not yet displayed on the profile page. Are you planning on adding that in this PR?
(The activity pub representation of the fields is also missing, but I expected to do that myself anyways :) but if you'd like to try that as well, feel free to do so)
|
Oh and please change the target of the PR to |
Added new dynamic field in profile section witch let us to add related links.
|
First of all thanks for your time and effort ❤️ From your comment and screenshots I (already) have a few remarks (sorry 🙈):
I think I did it by making a div with a margin left the same size as the buttons and then just put
What happens when the value is not a link? |
|
There is a conflict with |
|
Fixed merge conflicts.. |
Revisit the latest code changes
|
Fix the php-cs-fixer |
|
PR should be ready for last review now.. I hope. 🥳 |
cf72318 to
7cd555b
Compare
Co-authored-by: Melroy van den Berg <melroy@melroy.org>
ed923ae to
9b44612
Compare
|
@JaviviJR did you push all your changes? The modifications of the edit profile page and the user box are not there, yet |
e05d4f2 to
6bae56c
Compare
07d0603 to
7f7b1bf
Compare
|
This PR is stale because it has been open 40 days with no activity. |






Added new dynamic field in profile section witch let us to add related links.
#839