Commit 8651490
committed
fix(graph): handle schema-v2 array consumed_by shape in hook→consumer edges
The graph template was written for legacy consumed_by string shape
('PluginName Class::method'). Schema v2 stores it as an array of
{plugin, where, kind} objects per the wp-plugin-onboard skill spec.
Calling .split() on an array threw TypeError and aborted graph build,
leaving the canvas empty.
Normalize both shapes into a uniform consumer list before edge
building. Strings still work; arrays render one edge per object,
labelling the consumer node with plugin + kind.1 parent a1006a1 commit 8651490
1 file changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
427 | 429 | | |
428 | 430 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
439 | 453 | | |
440 | 454 | | |
441 | 455 | | |
| |||
0 commit comments