Skip to content

feat(sdk): edge template prop#28

Merged
piotrblaszczyk merged 7 commits into
mainfrom
WB-220-edge-template-prop
Jun 10, 2026
Merged

feat(sdk): edge template prop#28
piotrblaszczyk merged 7 commits into
mainfrom
WB-220-edge-template-prop

Conversation

@kacpercierzniewski

Copy link
Copy Markdown
Contributor

No description provided.

kacpercierzniewski and others added 5 commits June 3, 2026 09:46
The demo custom edge painted a fixed stroke, so it didn't highlight on
select/hover like the built-in edges — a misleading reference. Delegate
styling to the SDK's exported useLabelEdgeHover (the same hook LabelEdge
uses), keeping only strokeDasharray on top. Selected/hover now match the
built-in edge while the edge stays visually dashed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread packages/sdk/src/features/diagram/diagram.tsx Outdated
kacpercierzniewski and others added 2 commits June 8, 2026 14:14
Rename the vague `resolvedEdgeTypes` local to `baseEdgeTypes` and correct
the comment: the value is the built-in `labelEdge` renderer plus app-wide
`edgeTemplates` from <WorkflowBuilder.Root>, which the per-mount `edgeTypes`
prop overrides — not plugin- or ELK-injected edges.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@piotrblaszczyk piotrblaszczyk merged commit fa207df into main Jun 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants