Repository navigation
feat(dashboard): auto-hide reveal/dismiss interaction — state machine, overlay host, pin escape (#14660) - #14907
Closed
neo-opus-grace wants to merge 1 commit into
Conversation
Contributor
Author
|
Closing per operator architecture challenge on the base PR: the stack assumed PR #14906's presentation shape was right, and it is not (raw vdom buttons + manual DOM delegation inside component.Base instead of real button.Base children / container composition / createVdomReference). The D2 logic layer survives untouched — DockRevealStateMachine + its 13 specs, the adapter extent resolver, and the executor-routed pin contract re-land in a fresh PR from dev after the reworked #14906 merges. Ticket #14660 stays open and assigned. Branch retained for salvage. |
Merged
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #14660
Ships line D2 — the reveal/dismiss interaction contract — on top of the D1 rail (stacked on
agent/14654-autohide-rail-affordance, PR #14906; rebase ontodev+ retarget follows its merge). The timing brain isDockRevealStateMachine, a pure, timer-injectable class with the full states/transitions table in JSDoc and named design constants (DWELL_MS,DISMISS_GRACE_MS; the 200/160ms slide durations stay in CSS where animation belongs).DockRailupgrades click from the D1 interim (direct restore) to the contract default — click = focused transient reveal, re-click dismisses — with hover-reveal strictly behind the workspace opt-in (autoHideRevealOnHover, dwell-gated, never steals focus), threaded through the adapter from projection options.DockRevealOverlayis the presentation host: edge-anchored, sized from the last committed split extent (new pureDockLayoutAdapter.resolveRevealExtent()) else a configurable fraction, translating DOM reality into semantic intents the machine consumes. The persist path is the overlay pin:setItemPinned(true)through the same reducer contract as every dock affordance — dismissal in every form emits nothing.Evidence: L2 (unit contract specs — 190/190 dashboard suite green, incl. 13 machine specs on injected fake timers) → L2 required (close-target ACs are spec-checkable: state table, focus-hold, executor-routed pin, never-persist). Residual: none — live hover/focus DOM verification rides the Demo-A showcase + the reserved tour e2e (#14591).
AC map
DockRevealStateMachineJSDoc carries the states table and the transitions table;DWELL_MS/DISMISS_GRACE_MSare named statics, workspace-overridable via rail configs (revealDwellMs,revealDismissGraceMs).focus-hold: a focused reveal never auto-dismisses) and rail↔overlay binding (bindRevealOverlay … focus-hold holds).onRevealPinRequested→commitOperation({operation: 'setItemPinned', pinned: true})→ callback /DockZoneModel.applyOperation(); the model clearsautoHiddenitself (landed guard). Specs cover commit, policy block, and stale-projection executor rejection.dev(per stacked-PR review semantics).Deltas from ticket
pinnable: falseitem with a disabled tab would become unreachable content — item loss. Reveal is policy-free; only PIN is policy-gated. The D1 tab-disable code and specs are superseded in this stack.<overlay id>__pane-slot): the consuming workspace mounts/clears the revealed pane, same seam asresolveComponentRef— keeps the overlay pane-blind at this altitude.Test Evidence
New:
DockRevealStateMachine.spec.mjs(13 — dwell, grace, focus-hold, retarget, fail-close, destroy, all on injected fake timers),DockRevealOverlay.spec.mjs(5 — visibility incl. grace window, sizing, pin policy mirror, intent translation). Rewritten:DockRail.spec.mjs(10 — click-reveal, never-persist, pin escape, policy, hover opt-in, overlay binding, fail-close). Extended:DockLayoutAdapter.spec.mjs(resolveRevealExtentcases + hover opt-in threading).Post-Merge Validation
dev+ retarget after PR feat(dashboard): auto-hide rail + reveal/dismiss + pin — the atomic interaction arc (#14654) #14906 merges; full CI on the merge candidate before cross-family approval.autoHideRevealOnHoverfor the S3 hover beat).observe_motion(Whitebox e2e: dock-layout operations + animation assertions via the NL fixture #14591, reserved lane).Commits
Process note: authored during an operator-granted temporary Fable 5 model window (2026-07-10).
Authored by Grace (Claude Fable 5, Claude Code). Session ef6b9a4a-54ec-4afb-8438-f89a3ee46ad2.