fix(orchestrator): E2E repairs of 085 to 099 and fades scoped to the swapped box
The first E2E run of 085 to 099 failed 69 tests and errored 2; every spec is green again when run alone, and a full rerun left only a Firefox swipe flake. That flake was a real defect: fadeSwap() ran a page-wide View Transition, and captured content takes no pointer hits, so a click or swipe during any list fade was lost. fadeTransition(run, box) now names only the swapped box (view-transition-name list-swap, the root none), so everything outside it stays hit-testable; screen changes stay page-wide. test_hub_motion_e2e proves a hit outside the box during a real fadeSwap; it fails with the scoping removed. The swipe spec passed 3 of 3 runs. Code: the Filter menu opens leftwards instead of past the viewport; kanban lines measure beating cards at rest; a 409 toast names the row's title; viewstore keeps the board legend; a closing context menu drops its focus; the first closed-cards poll only takes a baseline (081 cadence); the Match tile keeps the deck height; a swipe never starts a native link drag; the heartbeat glow survives reduced motion; the Resources toolbar fits 390 px; the Send button keeps 44 px. Specs: elements fading out (086) and the new Claude dialogs section (094) are expected; probes skip the docked bubble's own avatar (098); no assertion was loosened. MEDUSA: 5 false positives accepted on the operator's word (MM-SCAN-058 regex PLA in errors=replace, WM-SCAN-354 regex ELS in else ... code, EXA007 toolbar line moved). 🎯 Fix: 94 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 90 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
38788b54a5
commit
0b4e3d3e6a
33 files changed
+124
-52
No files matched your search
@@ -54,19 +54,30 @@
|
||||
|
||||
/**
|
||||
* @param {Function} run changes the DOM.
|
||||
* @param {Element} [box] the one container run changes. Only box is then captured, through the swap-box class, while
|
||||
* swap-scope takes the root out of the transition: a captured element takes no clicks until the transition ends,
|
||||
* so the rest of the page stays live. Without box the whole page is captured.
|
||||
* @returns {Promise} settles once run has changed the DOM. Inside a View Transition, so what leaves fades out; at once
|
||||
* without the API, under prefers-reduced-motion and while another transition runs, whose live new view then shows
|
||||
* the change.
|
||||
*/
|
||||
function fadeTransition(run) {
|
||||
function fadeTransition(run, box) {
|
||||
if (!document.startViewTransition || calm.matches || viewShift.running) {
|
||||
run();
|
||||
return Promise.resolve();
|
||||
}
|
||||
viewShift.running = true;
|
||||
if (box) {
|
||||
document.documentElement.classList.add("swap-scope");
|
||||
box.classList.add("swap-box");
|
||||
}
|
||||
const shift = document.startViewTransition(run);
|
||||
const done = () => {
|
||||
viewShift.running = false;
|
||||
if (box) {
|
||||
document.documentElement.classList.remove("swap-scope");
|
||||
box.classList.remove("swap-box");
|
||||
}
|
||||
};
|
||||
shift.finished.then(done, done);
|
||||
shift.ready.catch((error) => {
|
||||
|
||||
Reference in new issue
Block a user