Repository navigation
Conversation
The dashboard widget editor's step builder (event, page or session steps, their comboboxes and selects) becomes kit/funnel-steps: a view generic over the caller's message, the step schemas, and StepEdit with the pure edits it makes. The widget editor keeps its attribute filter line and plugs it in; its six step edits collapse into ProductEdit.Step. No behavior change. Product analytics (next) mounts the same builder.
This comment has been minimized.
This comment has been minimized.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The step edits arrive through the kit's control ids; this covers the combobox and select paths end to end, not just the parsed ids.
This comment has been minimized.
This comment has been minimized.
…builder-kit # Conflicts: # apps/web/src/page/dashboards/widget/lowering-product.ts # apps/web/src/page/dashboards/widget/product-apply.ts # apps/web/src/page/dashboards/widget/product-selects.ts # apps/web/src/page/dashboards/widget/view-steps.ts
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Maple review🟢 Confidence 10/10 · safe to merge. Faithful move: each removed widget edit has an equivalent in the kit, and the pure edits and ids are pinned by tests. Moves the funnel/paths step builder, its schemas and pure step edits into
|
Moves the dashboard widget editor's funnel step builder into the page kit, so Product analytics (next in the stack) can mount the same editor.
apps/web/src/page/kit/funnel-steps.ts: the step schemas (StepDraft,StepKind,StepTextField),StepEditwith the pure edits it makes (applyStepEdit), the control ids and their parser, the combobox update, andstepBuilder, a view generic over the caller's message.eventStepExtra. Its six step edits collapse intoProductEdit.Step({ scope, edit }).step-<control>-<scope>-<index>. The combobox finds its input with the id in a CSS selector, so the ids can't contain:. A test pins that.No behavior change for the dashboard editor.
Verification
bunx vitest run src/page/dashboards/widget src/page/kit/funnel-steps.test.ts: 43 tests pass, including the existing funnel and paths editor scene tests (session step demoted on reorder, paths anchor edits, step filter autocomplete).tsrs --noEmitclean;oxlint -c .oxlintrc.effect.json,ui:index:checkandui:patterns:checkpass./lab/product-analytics(PR 2). The dashboard editor itself gets checked on the preview deploy.Stack: this PR → #2172
Summary by CodeRabbit