sea affinity prose reversals + reelhouse sea/sky reel-up swipe machine + SCROLL gear OK close — TDD
Three threads:
1. Reversal-aware SEA_DRAWN prose. The affinity clause now reads "the {orientation}
of the {card}" — "emanation" upright, "reversal" when the drawn card is reversed
— and a reversed card's abbrev gains a ℞ (U+211E, the sky wheel's retrograde
glyph) <sub> subscript inside the existing no-wrap span, e.g. "(Q ♥℞)".
_sea_affinity_for now carries the per-card `reversed` flag (it was in the hand
entry but discarded) → event.data → to_prose via d.get("reversed", False).
_card_abbrev gains reversed_flag=False so the shared SIG_READY caller is
untouched (significators are picked, never drawn reversed). TDD: drama ITs +2
(reversal orientation + ℞; upright emanation w.o ℞), epic IT +1 (reversed flows
end-to-end), existing SEA_DRAWN prose tests updated to "emanation of the".
2. Reelhouse sea/sky reel-up swipe machine. The burger Sea/Sky reopen btns are
.active from anywhere in the reelhouse, but opening a felt while parked on the
reelhouse pane pinned the aperture there (html.*-open freezes the scroll) with
the felt stranded off-screen in the hex pane (scroll-locked; NVM was the only
escape). New RoomViews.scrollToHex(cb): from the reelhouse it reels the aperture
UP to the ROOM hex, then fires the open cb on settle (the banner h2 reel follows
via the existing IO); already at the hex → synchronous (in-hex CAST SKY / DRAW
SEA unchanged). afterDescent (scrollend + 700ms ceiling) hoisted out of the Text
sub-btn machine + shared. Both sub-btn handlers (burger-btn.js sky, _sea_overlay
sea) route through it. Pinned in Jasmine (RoomViewsSpec +2) per the headless-
drops-delayed-scroll trap — the delayed-vs-synchronous DECISION, not real scroll.
3. SCROLL gear OK now closes the menu. room-scroll.js's filter-submit handler
referenced an UNDECLARED `roomMenu` → ReferenceError thrown AFTER applyFilter
ran, so the filter applied but the menu never closed. Look it up via
getElementById (mirrors the ATLAS OK / applets close). FT +1.
506 Jasmine specs + 8 room-scroll FTs + 61 drama + 649 epic/billboard ITs green.
[[project-sea-select-scroll-provenance]] [[feedback-headless-delayed-scroll-dropped]]
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1936,6 +1936,9 @@ def _sea_affinity_for(seat, spread, hand):
|
||||
"position": position, "position_label": label,
|
||||
"card_name": card_display, "corner_rank": card.corner_rank,
|
||||
"suit_icon": card.suit_icon,
|
||||
# The per-card orientation from the drawn hand — drives the SEA_DRAWN
|
||||
# prose's emanation/reversal wording + the ℞ abbrev subscript.
|
||||
"reversed": bool(entry.get("reversed")),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user