9 Commits

Author SHA1 Message Date
David Straub 067208beeb Expand branches of the tree charts by one generation (#1504)
* Expand branches of the tree charts by one generation

In the ancestor, descendant and hourglass charts, a card whose parents
or children are not shown gets an arrow on the side where its branch
grows. Clicking it adds one generation to that branch, keeping the
selected person. The expanded people are fetched with the chart's
request, so they are refreshed with it, and are forgotten when another
person or chart is shown.

The root person's menu button and the arrows share one style, with a
backdrop that fades lines under the chevron. The person preview and the
root person's shadow now belong to the card itself, so the buttons next
to it neither open the preview nor cast a shadow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show at least one generation of descendants in the tree charts

With zero descendant generations, the descendant chart showed only the
selected person and the hourglass chart only their ancestors. A stored
value below a setting's minimum now counts as the minimum.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 10:58:54 +02:00
David Straub afc597e3f8 Add a vertical tree direction to the tree charts (#1500)
The ancestor, descendant and hourglass charts get a "Tree direction"
setting. Vertically, generations are rows with ancestors above and
descendants below, as in the relationship chart. Connectors and the
root person's menu button follow the direction, and links fade when
the direction changes.

The settings dialog gets a general select setting, which the name
display format also uses, and keys its rows by setting, so an input
is not reused for another chart's setting.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:48:43 +02:00
David Straub efa68aed25 Draw right-angled connectors in the tree charts (#1498)
The ancestor, descendant and hourglass charts draw right-angled
connectors like the relationship chart, with rounded outer corners.
Each stretch of a shared stem or bar is drawn by one link only, and
links use an opaque colour, so overlapping lines do not look darker.

The tree charts show all child relations and dash the lines to
children who are not birth children, as the relationship chart does.
The descendant chart and the relatives menu now include adopted, step
and foster children.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:32:10 +02:00
David Straub 15a4087b78 Improve the menu of relatives in tree charts (#1434)
* Improve the menu of relatives in tree charts

- The triangle becomes a chevron button with a larger round hit area,
  hover and focus shading, a label, and keyboard access
- The chart view includes the button, so it is visible on narrow screens
- The menu uses md-menu with the person list avatar and dates, and the
  names in the chart name display format
- Menu items chosen with Enter or Space select, also in the fan chart
  colour menu
- Remove unused mwc-menu imports from the chart components

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Keep the menu button shaded while hovered or focused

The shading follows both states. Children and Parents are Gramps strings,
so they are not frontend strings.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 23:12:44 +02:00
David Straub 430395b6cb Refactor tree views part 8: animate transitions in relationship chart (#1429) 2026-09-15 17:20:59 +02:00
David Straub 584ba7276b Animate transitions in tree charts (#1426)
* Animate transitions in tree charts

* Address comments

* Address comments
2026-09-15 13:21:24 +02:00
David Straub 59fee2bfcc Refactor tree views part 5: Styling and interactive option (#1402)
* Refactor tree views part 5: Styling and interactive option

* Address comment
2026-09-11 20:54:01 +02:00
David Straub 9432398f0a Refactor tree views part 4: Update SVG in place rather than recreating it (#1401) 2026-09-11 19:20:21 +02:00
David Straub b74b7f9ed1 Keep newly selected person on screen when updating tree views (#1396) 2026-09-11 15:52:07 +02:00