DrJKL
03aa8b462d
fix(subgraph): reactive price badge for ADR 0009 promoted widgets
...
Under ADR 0009 host-wins, PromotedWidgetView no longer mutates the
interior widget on edit. The subgraph wrapper's credits badge was still
computed against the inner LGraphNode's raw widget value and so stayed
frozen at the conversion-time price when the user changed a promoted
combo on the wrapper.
- getNodeDisplayPrice / buildJsonataContext accept an optional
widgetOverrides map so callers can supply effective widget values
without mutating the inner widget.
- For a SubgraphNode wrapping a single api node, updateSubgraphCredits
now pushes a wrapper-aware badge getter that builds overrides from
the wrapper's PromotedWidgetView host values and calls
getNodeDisplayPrice with them. The legacy static / multi-node
branches are preserved.
- usePartitionedBadges touches each PromotedWidgetView's host value and
the inner api node's pricing inputs inside the wrapper's badge
computed so a promoted edit invalidates the wrapper's badge.
priceBadge.spec.ts tag converted to the typed `{ tag: [...] }` form.
Amp-Thread-ID: https://ampcode.com/threads/T-019e5248-7986-77ae-a78b-41cd08c5af38
Co-authored-by: Amp <amp@ampcode.com >
2026-05-22 18:33:53 -07:00
..
2026-04-28 08:52:49 +00:00
2026-04-19 04:58:34 +00:00
2026-03-15 22:46:47 +09:00
2026-03-15 22:46:47 +09:00
2026-05-08 12:11:06 +00:00
2025-12-29 15:03:34 -08:00
2026-03-27 09:11:26 +09:00
2026-03-15 22:46:47 +09:00
2026-03-28 13:08:52 -07:00
2026-05-06 02:40:01 +00:00
2026-05-14 20:06:51 +00:00
2026-05-04 20:25:55 -04:00
2026-05-06 02:40:01 +00:00
2026-03-15 22:46:47 +09:00
2026-03-27 16:04:36 -04:00
2026-03-28 23:19:04 -07:00
2026-05-12 20:33:05 +00:00
2026-05-20 11:22:42 -07:00
2025-12-08 19:48:11 -07:00
2026-03-15 22:46:47 +09:00
2025-12-08 19:48:11 -07:00
2026-04-13 00:13:04 -04:00
2026-01-16 22:11:00 -07:00
2026-05-14 20:09:48 +00:00
2026-05-18 18:59:20 +00:00
2026-03-15 22:46:47 +09:00
2026-03-15 22:46:47 +09:00
2026-03-24 12:25:18 -07:00
2026-05-18 02:58:37 +00:00
2026-05-14 02:26:11 +00:00
2026-05-21 19:52:56 +00:00
2026-05-22 17:45:39 -07:00
2026-03-29 08:27:53 +09:00
2026-05-07 02:49:02 -07:00
2026-03-27 09:11:26 +09:00
2026-05-21 22:44:26 -07:00
2026-03-15 22:46:47 +09:00
2026-04-16 12:54:12 +00:00
2026-04-28 19:13:12 -04:00
2026-05-21 19:25:26 +00:00
2026-04-28 02:18:31 +00:00
2026-05-21 19:25:26 +00:00
2026-05-21 02:26:26 +00:00
2026-05-14 12:28:21 -07:00
2026-04-28 02:18:31 +00:00
2026-04-15 11:42:22 +00:00
2026-04-15 11:42:22 +00:00
2026-04-28 02:18:31 +00:00
2026-04-10 19:47:20 +00:00
2026-05-12 14:42:31 +00:00
2026-05-07 10:27:15 +00:00
2026-04-08 11:28:59 -07:00
2026-04-14 23:33:11 +00:00
2026-05-19 01:55:11 +00:00
2026-04-13 20:43:25 +00:00
2026-04-16 12:54:12 +00:00
2026-05-14 12:28:21 -07:00
2026-04-28 02:18:31 +00:00
2026-04-28 17:21:55 +00:00
2026-04-15 15:25:47 +00:00
2026-04-28 09:46:25 -04:00
2026-04-16 12:54:12 +00:00
2026-04-16 12:54:12 +00:00
2026-05-05 11:17:30 +00:00
2026-04-13 15:50:11 +00:00
2026-04-16 12:38:01 +00:00
2026-04-15 15:25:47 +00:00
2026-04-09 20:50:56 -07:00
2026-04-08 11:28:59 -07:00
2026-04-08 11:28:59 -07:00
2026-04-16 09:44:06 +00:00
2026-05-17 20:54:07 -04:00
2026-04-13 20:43:25 +00:00
2026-05-12 15:06:13 +09:00
2026-05-08 12:11:06 +00:00
2026-05-13 22:39:32 -07:00
2026-04-11 01:25:14 +00:00
2026-04-28 02:18:31 +00:00
2026-05-01 09:35:29 +00:00
2026-04-10 19:47:20 +00:00
2026-04-13 20:43:25 +00:00
2026-04-11 01:25:14 +00:00
2026-04-20 17:35:17 -07:00
2026-04-16 13:43:02 +09:00
2026-04-11 01:25:14 +00:00
2026-04-15 15:25:47 +00:00
2026-05-04 20:30:42 +00:00
2026-05-20 05:23:46 +00:00
2026-05-04 20:30:42 +00:00
2026-04-20 22:43:28 +00:00
2026-05-12 15:06:13 +09:00
2026-04-15 10:50:44 -04:00
2026-04-16 09:48:13 +00:00
2026-04-09 20:50:56 -07:00
2026-04-15 15:25:47 +00:00
2026-04-14 17:40:23 +00:00
2026-05-05 20:24:13 -07:00
2026-04-10 19:47:20 +00:00
2026-04-09 20:50:56 -07:00
2026-05-04 12:54:52 -07:00
2026-05-05 08:47:07 +00:00
2026-05-21 19:44:12 +00:00
2026-04-28 22:02:42 +00:00
2026-04-08 11:28:59 -07:00
2026-05-13 10:35:16 +00:00
2026-04-09 20:50:56 -07:00
2026-04-28 08:33:42 -04:00
2026-05-04 20:31:15 -04:00
2026-05-04 20:31:15 -04:00
2026-04-13 20:43:25 +00:00
2026-05-13 20:33:19 +00:00
2026-04-23 22:17:16 -04:00
2026-04-15 15:25:47 +00:00
2026-05-11 18:51:52 +00:00
2026-04-15 16:52:41 +00:00
2026-05-19 10:56:41 +00:00
2026-04-11 01:25:14 +00:00
2026-04-30 17:30:04 +00:00
2026-04-28 02:18:31 +00:00
2026-04-13 20:43:25 +00:00
2026-05-04 15:52:33 -07:00
2026-04-15 15:25:47 +00:00
2026-04-29 20:52:58 +00:00
2026-04-28 22:02:33 +00:00
2026-04-23 19:33:18 +00:00
2026-04-08 11:28:59 -07:00
2026-04-13 20:43:25 +00:00
2026-05-13 10:19:39 -04:00
2026-04-13 20:43:25 +00:00
2026-05-06 01:54:18 -07:00
2026-05-15 14:00:33 -07:00
2026-05-22 18:33:53 -07:00
2026-04-08 11:28:59 -07:00
2026-05-06 15:07:57 +00:00
2026-05-02 05:40:45 +00:00
2026-04-10 19:47:20 +00:00
2026-04-13 20:43:25 +00:00
2026-04-13 20:43:25 +00:00
2026-04-08 11:28:59 -07:00
2026-04-14 17:40:23 +00:00
2026-04-14 17:40:23 +00:00
2026-04-15 15:25:47 +00:00
2026-04-28 09:46:25 -04:00
2026-05-06 02:40:01 +00:00
2026-04-28 02:18:31 +00:00
2026-04-15 15:25:47 +00:00
2026-04-30 16:15:53 -07:00
2026-05-14 02:26:11 +00:00
2026-05-04 20:30:42 +00:00
2026-05-04 20:30:42 +00:00
2026-05-19 10:56:41 +00:00
2026-05-20 02:59:44 +00:00
2026-04-13 20:43:25 +00:00
2026-05-14 15:54:40 -07:00
2026-04-08 11:28:59 -07:00
2026-05-20 02:59:44 +00:00
2026-04-14 17:40:23 +00:00
2026-05-04 12:54:52 -07:00
2026-04-08 11:28:59 -07:00
2026-04-11 01:25:14 +00:00
2026-04-13 20:43:25 +00:00
2026-04-15 15:25:47 +00:00
2026-04-22 11:29:08 -07:00
2026-04-11 01:25:14 +00:00
2026-04-13 22:15:45 +00:00
2026-05-04 21:51:50 +00:00
2026-05-22 15:24:31 +00:00
2026-05-01 09:09:31 +00:00
2026-04-13 20:43:25 +00:00
2026-05-11 09:28:23 +00:00
2026-04-11 01:25:14 +00:00