diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 12:16:37 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 12:16:37 -0500 |
| commit | 44831f8587947212f2df8c38e81a3c1b6fa588fc (patch) | |
| tree | af52e2ae3120977d0ac01a180f608f071b04cf50 /githooks/pre-commit | |
| parent | 8db6357d2e2f912ca382b259ea2675cf9058511e (diff) | |
| download | chime-44831f8587947212f2df8c38e81a3c1b6fa588fc.tar.gz chime-44831f8587947212f2df8c38e81a3c1b6fa588fc.zip | |
fix: stop tooltip dedup from hiding distinct events sharing a title
`chime--deduplicate-events-by-title' was keying off the user-facing
title alone, so two real "1:1" entries on different days collapsed to
one and the second one disappeared from the tooltip.
I changed the key to `(marker-file . marker-pos)' — the source heading
identity — so distinct headings keep both copies and recurring expansions
of one heading still fold to the soonest. When marker info is missing
(synthesized test events, edge cases) the key falls back to title, which
preserves the older fixtures the function was originally tested against.
Three new tests cover the regression paths: two distinct headings sharing
a title both survive, one heading expanded into multiple instances still
collapses to the soonest, and a mix of sourced and unsourced events
behaves correctly under both code paths.
Diffstat (limited to 'githooks/pre-commit')
0 files changed, 0 insertions, 0 deletions
