Skip to content
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

Relationship graph fork #401

Merged
merged 16 commits into from
Mar 25, 2024

Conversation

geostag
Copy link
Collaborator

@geostag geostag commented Mar 9, 2024

this should do the relationship graph, styled in gramps-web manner, as a first version

@DavidMStraub
Copy link
Member

Finally tried it out, awesome work!

Two things that caught my attention (using the Gramps example database):

  • I have three unconnected people. Is that expected or should I investigate?
  • We should change the string for max number of ancestor generations to maximum degree of separation
  • It's currently not yet possible to click on a person to center it, like for the other charts, but that should be straightfoward to add in analogy, shouldn't it?

image

@geostag
Copy link
Collaborator Author

geostag commented Mar 16, 2024

  • unconnected people: which person did you choose as root person for the chart to get the disconnected ones?
  • agreed. Whats is the best way to do this: overwrite the renderControls in ViewTreeChartbase or create another _setDegSep and trigger on this in the generic renderControls?
  • Right, I simply forgot this :-) - will add it.

@geostag
Copy link
Collaborator Author

geostag commented Mar 17, 2024

  • unconnected pople: I also found situations, where I get unconnected people. The chart builds up nodes from two family sources: extended.primary_parent_family and extended.families. In cases, a person is part of additional extended.families, but there isn't any connection by children or parents to the rest of the graph (e.g. parents of this person not part of the person selection), this will lead to orphaned nodes. I will have to think about how to deal with it. Maybe with invisible fake parent node.
  • string "max number of ancestor generation": still not sure, what is the best way to do that. Maybe we also want an "all persons" button, to select all persons, wether they are connected to the center person or not. And thus need a specific "renderControls"?
  • clickable person: fixed

@DavidMStraub
Copy link
Member

agreed. Whats is the best way to do this: overwrite the renderControls in ViewTreeChartbase or create another _setDegSep and trigger on this in the generic renderControls?

Yes, I think _setDegSep (or perhaps more concisely _setSep) is the best approach.

@geostag
Copy link
Collaborator Author

geostag commented Mar 24, 2024

From my point of view ready for merge.

Please note: The person nodes do not contain images (different than in the other charts). This chart is intended to contain a very large number of persons, thus pulling images for all of them seems to be a bad idea.

@DavidMStraub DavidMStraub merged commit 07e5603 into gramps-project:main Mar 25, 2024
1 check passed
@DavidMStraub
Copy link
Member

Great work!

I feel the navigation tabs are getting a bit too long and who knows what else we will add 😉
Should we switch to something more efficient? Text only? Icons with tooltips? Dropdown?

image

@DavidMStraub
Copy link
Member

For now I'll just stack the icon I think.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants