Repository navigation
Conversation
Word-diffing an evidence popover broke two things on the survey preview: an inserted popover landed inside the <ins> wrapper, so it stopped being the direct child `.ev:hover > .ev-pop` needs and the hover showed nothing; and evidence added to unchanged prose was marked only inside that hidden popover, so a reviewer saw no change at all. Each popover is now swapped for one opaque placeholder before the diff and restored after, with an "evidence added"/"evidence removed" chip on the claim. The popover CSS also uses a descendant combinator so any diff wrapper is tolerated. Suggested-by: @jbragg
🤖 Independent AI code review (Codex)Automated review of the PR by a separately invoked Codex reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate. P0 (blocking)None. P1 (should fix)
P2 (nits)None. Recommendation: request-changes |
|
Resolved both findings in
Validation: |
🤖 Independent AI code review (Gemini)Automated review of the PR by a separately invoked Gemini reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate. P0 (blocking)None. P1 (should fix)
P2 (nits)None. Recommendation: request-changes |
|
Resolved the three findings from the latest review in
Validation: |
|
Reproduced the reported "hover shows nothing" case against
... accepted <del>papers.</del><ins>papers<span class="ev-pop" role="note">…</span></ins></span><ins>.</ins>The popover is emitted inside This branch ( ... accepted <del>papers.</del><ins>papers</ins><span class="wc-ev-chip wc-ev-add">evidence added</span><span class="ev-pop" role="note">…</span></span><ins>.</ins>Popover restored as a direct child of The survey's preview pins Suggested-by: @jbragg |
asta-mothership-agent
left a comment
There was a problem hiding this comment.
Reviewed the current head (7f341b3). I found no blocking issues. The opaque-placeholder approach keeps evidence popovers out of word-diff wrappers, restores the required direct-child relationship, and makes evidence-only changes visible with added/removed chips. The follow-up commits also tighten tag/class matching and cover the previously reported single-quote, near-class, data-class, and custom-element cases.
Validation: tests/test_what_changed.py passes locally (27 tests), repository-wide Ruff lint and format checks pass, and the GitHub CI matrix is green.
# Conflicts: # plugins/asta-tools/skills/workspace/assets/what-changed.py
|
Updated with current |
|
The evidence-popover implementation and regression tests are folded into #290 so the consolidation has one implementation PR. |
Two defects reported against the survey's PR preview, both in how the
what-changedgenerator treats evidence popovers.Hovers that show nothing. The popover is shown with pure CSS via
.ev:hover > .ev-pop— a child combinator. The word diff splits a changedclaim into
<ins>/<del>runs, and when the popover fell inside one of thoseruns it stopped being a direct child of
.ev, so hovering did nothing. On thesurvey preview 2 of 34 popovers were in that state — and they were the two
claims whose evidence the PR had just added, i.e. exactly the ones a reviewer
wants to hover.
Added evidence was invisible. When a claim's prose is unchanged and only its
evidence is new, the whole change lives inside a popover that is hidden until
hover. The diff rendered it as
<ins>on text nobody can see, so the pageshowed no change on that claim.
Fix: each
<span class="ev-pop">…</span>subtree is swapped for one opaqueplaceholder tag before the diff and restored after. Identical evidence aligns as
unchanged instead of being word-diffed; the placeholder is not an inline tag, so
emit_runemits it outside any wrapper and the restored popover is a directchild of
.evagain; and a placeholder that the diff inserted or deletedrestores with a visible
evidence added/evidence removedchip on the claim.The restored popover remains a direct child of
.ev, preserving the extension.s child-combinator isolation.Regenerated the survey preview's
what-changed.htmlfrom the same two sitetrees with this change: all 34 popovers are direct children of
.ev(was 32),and the three claims that PR gained evidence for each carry an
evidence addedchip. Three tests cover added / unchanged / removed evidence; the module's
tests,
ruff checkandruff format --checkare clean.Reviewer requested:
jbraggSuggested-by: @jbragg
🤖 Generated with Claude Code