Skip to content

v1.5.4

Choose a tag to compare

@twalichiewicz twalichiewicz released this 31 Jul 01:07
· 107 commits to main since this release
Immutable release. Only release title and notes can be modified.
460898b

v1.5.4 — discussion heat, appearance settings, per-site hiding

Features

Discussion heat. Quote-linked annotations only ever caught comments that
quoted literally — roughly a fifth of a thread. Heat scores the rest against
the article's paragraphs with BM25 and renders passages several people are
discussing as an ambient wash. It abstains aggressively: a comment must
clearly favour one paragraph, and three comments must converge before anything
is drawn. Rides the annotations BETA setting, off by default.

Theme. Detect from the page, or pin to light or dark.

Button appearance. Circle or squircle, 24–64px, live preview, reset.

Per-site hiding. An eye-with-slash button in the header hides the current
site immediately. Hidden sites are managed from settings, since hiding a site
removes the only route to settings on it.

Fixes

#32 — host pages stealing focus while typing. Events leaving a shadow root
are retargeted, so a page's event.target check sees HNewhere's container
rather than the text field, its "is the user typing?" guard passes, and the
shortcut fires. Reproduced with a GitHub-style s handler: typing "test" gave
"te" and focus jumped to the page. Keyboard events from HNewhere's fields now
stop at the host element.

Settings clipped in the submit popover. #popover's overflow: hidden
existed to clip its header's rounded corners but also clipped the absolutely
positioned dropdown, so on pages with no discussion most of settings was cut
off. The header now rounds its own corners.

Notes for review

  • No behavior change at defaults. Every new setting reproduces 1.5.3 exactly,
    and heat is gated behind annotations, which ships off.
  • applyButtonMobileStyle runs at every viewport despite its name, and used to
    re-assert hardcoded size/shape on each resize. Both it and
    createFloatingHNButton now go through one applyButtonAppearance().
  • The #popover clipping change is the only one that could affect existing
    layout — worth a look on a short viewport.
  • Still open, pre-existing: applyButtonMobileStyle also resets top/right
    on resize, so a dragged desktop button returns to the corner.
  • Heat's thresholds (HEAT_MIN_Z_RATIO = 0.55, three-comment floor) were
    derived analytically, not tuned against real articles. First real exposure
    should inform them.