nafiesl / silsilah

A genealogy/family tree application, built with Laravel.
MIT License
588 stars 283 forks source link

Feature Request: Create a homepage with family tree chart #22

Open biplobice opened 5 years ago

biplobice commented 5 years ago

I really love to have a homepage like the following image.

the-entire-royal-family-tree-explained-in-one-easy-chart-2

nafiesl commented 5 years ago

Thanks for the feature request.

I want to ask for more detail for each point:

For this feature i think we need new person tree page, instead of editing the existing tree view.

biplobice commented 5 years ago

Right now, on the users/{user_id}/tree route, we have implement the tree start from the selected person (not the oldest one).

For example- When I'll visit http://royalfamily.com I would like to see a tree like the above image. As we haven't selected any user we need to pick a user to show the tree. That could be the eldest or youngest one. In such a case I think eldest (By birth) is the better choice.

So the selected user will be set to the center of the tree?

I believe you already have that implementation on users/{user_id}/chart route. Here you're showing the user's grandparents to grandchildren.

I think this can be implemented by adding is_private attribute on user edit page.

I was saying about the whole application. Some people may not want to show the family tree to public. So, if the app setting is set to private, an user need to login to see the family tree. i.e. http://royalfamily.com will redirect to http://royalfamily.com/login

biplobice commented 2 years ago

Just to let you know, I found a Vue component similar to my feature request https://github.com/walkerz88/vue-family-tree

nafiesl commented 2 years ago

Hi @biplobice the component looks nice and meets the requirement for showing the spouse of the person. Thanks for still get in touch with this project :raised_hands: