Context
Splits the engine-only Neo.dialog.Base#initVnode slice out of #21959 per @neo-gpt-sophie's RA-2 on first-time contributor PR #21991 (@theguysudo) and @neo-gpt-emmy's handoff confirmation (https://github.com/neomjs/neo/pull/21991#issuecomment-7089047751), so #21991 resolves a 1:1 close target ahead of the 2026-11-23 07:00 UTC Engine 14 examples lock while #21959 remains open for the remaining editor witness and examples/covers criteria (#21942).
- Live latest-open + closed sweep: checked latest 20 open (49 open, orange band; sub-issue split under #21959) + open and closed search (
dialog initVnode animateTargetId off-screen, dialog initVnode animateTargetId, #4548 & #21959 read) at 2026-11-23T01:29:00Z; no duplicate narrow engine leaf exists.
- A2A in-flight claim sweep: checked latest 30 messages across all read states (
2026-11-23T01:02Z–01:28Z); no overlapping claim on src/dialog/Base.mjs.
- MC sweep:
dialog Base initVnode animateTargetId wrapperStyle offscreen return super, 5 results, no conflicting decision.
- Own-assignment sweep: 2 open (
#22051 in review via #22054, #21847 post-cut live verification), none overlapping.
- Ownership:
handoff: @theguysudo (active contributor PR #21991; maintainer release-cut finish directed by @tobiu per pull-request-workflow.md §10, self-assigned to @neo-gemini-julia as maintainer sponsor).
The Problem
Commit 1dced6c8c8 (#7147) renamed VdomLifecycle#render to initVnode, leaving Neo.dialog.Base's off-screen wrapper reset (wrapperStyle.left = 'initial', wrapperStyle.top = 'initial' when !me.animateTargetId) on the dead render(mount) method (src/dialog/Base.mjs:1128-1147). Any dialog shown without an animateTargetId via show() -> initVnode(true) remained parked off-screen at -10000px behind its modal mask. In addition, renaming the override to async initVnode(mount) must return super.initVnode(mount) rather than discarding its {vnode, ...} payload (src/mixin/VdomLifecycle.mjs:849-851).
The Architectural Reality
- Design authority:
"Creates the vnode tree for this component and mounts the component... If getting there, we return the data from vdom.Helper: create(), containing the vnode." (src/mixin/VdomLifecycle.mjs:840-850) and "If there is no animation target, we need to ensure that the initial offscreen positioning from .neo-floating gets reverted" (src/dialog/Base.mjs:1135).
src/component/Base.mjs:2022: show() invokes me.startMountFlight(me.initVnode(true)) when !me.vnode && !me.vnodeInitialising.
src/dialog/Base.mjs:1128-1150: initVnode(mount) reverts wrapperStyle.left and wrapperStyle.top to 'initial' when !me.animateTargetId and delegates to super.initVnode(mount).
The Fix
- Rename
Neo.dialog.Base#render(mount) to async initVnode(mount) in src/dialog/Base.mjs and return super.initVnode(mount) so awaiting callers receive the superclass {vnode, ...} payload.
- Cover both
!animateTargetId and animateTargetId paths plus the returned superclass {vnode} payload (stubbed and real initVnode(false)) in test/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs.
Decision Record impact
none — restores Neo.dialog.Base lifecycle override parity after #7147.
Acceptance Criteria
Out of Scope
- Remaining #21959 criteria: the
openEventEditor(id) / openTaskEditor(id) no-rendered-bar unit witness (AC-2 of #21959) and the examples/scheduler/eventEditor + examples/gantt/taskEditor open-on-load frames, lookFor copy, neomjs/pages cover pairs, and design read (AC-3..AC-7 of #21959, actively coordinated with @neo-gpt-emmy under #21942).
Avoided Traps
await super.initVnode(mount) without return: Drops the {vnode, ...} payload promised by VdomLifecycle#initVnode (RA-1 on #21991).
- Closing #21959 from an engine-only PR: Orphans AC-2..AC-7 before the two editor examples and covers land (
RA-2 on #21991).
Related
Origin Session ID: 12bb6bb7-21ca-4b36-824f-66ea4320e1d8
Retrieval Hint: "Dialog Base initVnode animateTargetId wrapperStyle offscreen return super payload 21991 21959"
Context
Splits the engine-only
Neo.dialog.Base#initVnodeslice out of #21959 per@neo-gpt-sophie's RA-2 on first-time contributor PR #21991 (@theguysudo) and@neo-gpt-emmy's handoff confirmation (https://github.com/neomjs/neo/pull/21991#issuecomment-7089047751), so #21991 resolves a 1:1 close target ahead of the2026-11-23 07:00 UTCEngine 14 examples lock while #21959 remains open for the remaining editor witness and examples/covers criteria (#21942).dialog initVnode animateTargetId off-screen,dialog initVnode animateTargetId,#4548嗇read) at2026-11-23T01:29:00Z; no duplicate narrow engine leaf exists.2026-11-23T01:02Z–01:28Z); no overlapping claim onsrc/dialog/Base.mjs.dialog Base initVnode animateTargetId wrapperStyle offscreen return super, 5 results, no conflicting decision.#22051in review via#22054,#21847post-cut live verification), none overlapping.handoff: @theguysudo(active contributor PR #21991; maintainer release-cut finish directed by@tobiuperpull-request-workflow.md §10, self-assigned to@neo-gemini-juliaas maintainer sponsor).The Problem
Commit
1dced6c8c8(#7147) renamedVdomLifecycle#rendertoinitVnode, leavingNeo.dialog.Base's off-screen wrapper reset (wrapperStyle.left = 'initial',wrapperStyle.top = 'initial'when!me.animateTargetId) on the deadrender(mount)method (src/dialog/Base.mjs:1128-1147). Any dialog shown without ananimateTargetIdviashow()->initVnode(true)remained parked off-screen at-10000pxbehind its modal mask. In addition, renaming the override toasync initVnode(mount)must returnsuper.initVnode(mount)rather than discarding its{vnode, ...}payload (src/mixin/VdomLifecycle.mjs:849-851).The Architectural Reality
"Creates the vnode tree for this component and mounts the component... If getting there, we return the data from vdom.Helper: create(), containing the vnode."(src/mixin/VdomLifecycle.mjs:840-850) and"If there is no animation target, we need to ensure that the initial offscreen positioning from .neo-floating gets reverted"(src/dialog/Base.mjs:1135).src/component/Base.mjs:2022:show()invokesme.startMountFlight(me.initVnode(true))when!me.vnode && !me.vnodeInitialising.src/dialog/Base.mjs:1128-1150:initVnode(mount)revertswrapperStyle.leftandwrapperStyle.topto'initial'when!me.animateTargetIdand delegates tosuper.initVnode(mount).The Fix
Neo.dialog.Base#render(mount)toasync initVnode(mount)insrc/dialog/Base.mjsandreturn super.initVnode(mount)so awaiting callers receive the superclass{vnode, ...}payload.!animateTargetIdandanimateTargetIdpaths plus the returned superclass{vnode}payload (stubbed and realinitVnode(false)) intest/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs.Decision Record impact
none— restoresNeo.dialog.Baselifecycle override parity after#7147.Acceptance Criteria
Neo.dialog.BasewithoutanimateTargetIdrevertswrapperStyle.leftandwrapperStyle.topto'initial'oninitVnode(), while a dialog withanimateTargetIdpreserves its off-screen parking until animation (test/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs, red ondev).Neo.dialog.Base#initVnode(mount)returns the superclasssuper.initVnode(mount)payload containingvnodein both stubbed lifecycle assertions and a direct unstubbeddialog.initVnode(false)call (test/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs).Out of Scope
openEventEditor(id)/openTaskEditor(id)no-rendered-bar unit witness (AC-2 of #21959) and theexamples/scheduler/eventEditor+examples/gantt/taskEditoropen-on-load frames,lookForcopy,neomjs/pagescover pairs, and design read (AC-3..AC-7 of #21959, actively coordinated with@neo-gpt-emmyunder #21942).Avoided Traps
await super.initVnode(mount)withoutreturn: Drops the{vnode, ...}payload promised byVdomLifecycle#initVnode(RA-1on #21991).RA-2on #21991).Related
Origin Session ID: 12bb6bb7-21ca-4b36-824f-66ea4320e1d8 Retrieval Hint: "Dialog Base initVnode animateTargetId wrapperStyle offscreen return super payload 21991 21959"