diff --git a/docs/plans/2026-06-27-001-fix-ssr-modal-regressions-plan.md b/docs/plans/2026-06-27-001-fix-ssr-modal-regressions-plan.md index e4449f92..00e51dbc 100644 --- a/docs/plans/2026-06-27-001-fix-ssr-modal-regressions-plan.md +++ b/docs/plans/2026-06-27-001-fix-ssr-modal-regressions-plan.md @@ -93,21 +93,28 @@ animate: - By contrast, `dialog/success-modal-` and the Invoice Pay card (`last-modal-step transition duration-150`) keep transitions, so the intended pattern still exists to copy from. -**FIX — DONE (subtle fade) & verified:** added the codebase's existing `fade-in transition-opacity -duration-300` to all three wizard step cards (new-invoice basic-details + accounts, vendor -step-card, client step-card). `fade-in` is defined in `resources/input.css` -(`.htmx-added .fade-in { opacity:0 }` → transitions to 1 after htmx settle), so each card fades in -on open *and* on every step swap. Verified live: cards always settle to **opacity 1** (never stuck -invisible) on both open and step navigation — no functional risk. - -Notes / intentionally deferred (needs design intent + visual sign-off, so not done autonomously): -- The transaction-edit "reference" card's `last-modal-step` class is **undefined** (a no-op); its - only real transition is `transition duration-150`. So there was no clean reference slide to copy. -- The richer **forward/backward slide** transitions (the old `mm/*` modal-stack system using - `group/transition` + `forward`/`backward` + `htmx-*:translate-x-2/3`) were deliberately deleted in - Phase 11 and purged from the CSS. Re-introducing directional slides is a larger design decision - (which element carries `htmx-swapping`/`htmx-added` — the form vs the card — plus settle timing) - and is left for a human-in-the-loop pass if the subtle fade isn't enough. +**FIX — DONE (forward/back slide restored) in the shared `wizard2` engine.** The user confirmed the +old wizard had a directional **slide forward/back** between steps; the engine migration dropped it. +Restored the original mechanism (read out of the deleted `mm/multi_modal.clj`) in one shared place: +- `wizard2/step-slide-classes` — the `group-[.forward]/transition:htmx-*` + `group-[.backward]/…` + variants, now applied to the swapped wizard `