Repository navigation
Conversation
A setting hides people with no citation of their own at the chosen level. Those who link the rest to the root stay, drawn pale, and the root is always shown. A citation without QUAY counts only at "All", the default, so the chart doesn't change until the setting is used. Person cards still list every source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The threshold looked for ways to the root over every link in the data, but topola doesn't walk all of them: someone above it could be counted and not drawn, or an unneeded person kept pale. Now the walk is the one topola takes, with the fewest people below the threshold on the way. At «all» the chart gets no second limit, so it is drawn as before. When the selected person isn't on the chart, the view goes to the root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each person's way to the root was the cheapest alone, but together the ways could keep someone needless: a father without citations stayed for a sibling the mother links as well. They are now tried one by one, after ruling out those every way leads through, up to a limit that keeps tangled charts from taking seconds. Fitting a chart too wide to fit now centres on the root when the selected person isn't on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They draw hundreds of charts and went over the default 5 seconds there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new setting, «Люди на схеме: надёжность не ниже» (All, 0, 1, 2, 3), limits the chart by the
QUAYof each person's citations. At All, the default, the chart is drawn exactly as without the setting.ASSO) or notes on those.QUAYcounts only at All.The logic is
chartPeople,chartWalkandwithoutNeedlessinsrc/model/scope.ts.chartWalkrestates how topola's relatives chart walks the data, so a change in topola could break it;src/chart/chart-people.test.tscompares it with what topola really draws.Known limits
Citations only on a
FAM, such as on a marriage, don't count for the spouses or the children.Citations on
NOstructures don't count, although the card lists them.If
QUAYis rare in a file, the chart can shrink a lot: at threshold 3 the demo keeps 1 person of 10.The chart doesn't refit after the threshold changes, so part of it can end up off screen. The selected person, or else the root, stays in view.
A link with both
idandrootto a person hidden by the threshold opens their card without a box on the chart. Choosing such a person in the app, or a link withoutroot, makes them the root.A person above the threshold whom the chart doesn't draw at All either, such as a half-sibling through an ancestor's other marriage, isn't shown. At All the counts still include such people, as they do on
main.A needless pale person can stay in two cases: when the root has several marriages and dropping one would make topola climb to the remaining spouse's parents, and on very tangled charts, where the tries stop at a limit. With 30% of marriages among relatives on a 10,000-person tree that left about 10% more pale people; on trees without such marriages the count matched an unlimited run.
With a threshold the chart can get extra copies of people: when a root's other marriage drops out, topola climbs to the remaining spouse's parents.
The threshold costs time on big trees (generated trees, root in the last generation, level «все», model only):
One chart is computed on each selection. Without a threshold nothing changes.
One-sided
FAMSlinks, where a person points at a family that doesn't list them, can leave someone counted but not drawn, and a review reported a case that makes the chart fail to draw.mainfails on similar data at All.The legend is hidden on phones, so the pale box isn't explained there.
Testing
npm run check:allpassed on macOS on the final code: 614 unit, 130 e2e and 7 visual tests, with 8 e2e and 1 visual skipped. No new skips were added.chartPeoplewith real topola drawings: marriages among relatives, adoptions, second marriages and random trees. Taking out any pale person must lose someone who passes, except for roots with several marriages. One-off runs on 5,500 random trees also matched.cousins2, DISPROVEN links, single parents or shuffled marriage order. A review's own generator did cover them against the previous commit and found no mismatch with the drawing; that wasn't repeated afterwithoutNeedlesswas added.tests/e2e/source-quality.spec.tsalso includes an axe check with the threshold on.🤖 Generated with Claude Code