Skip to content

Commit 22a9050

Browse files
committed
test(react): describe the ablation site of the retired-dialect pin by its leg
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E5XcbmSeZTDGm5zCYkC9XV
1 parent 3e3159f commit 22a9050

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎ui/packages/react/src/__tests__/SchemaRenderer.visibilityDialectsRetired.test.tsx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
*
2525
* ## Reverse verification (direction predicted before running)
2626
*
27-
* Restoring a `visibleOn` leg to `VISIBILITY_SHOW_KEYS` turns the first case
28-
* RED (the node vanishes); restoring `hiddenOn` to `VISIBILITY_HIDE_KEYS`
29-
* turns the second RED; restoring `disabledOn` to `ENABLEMENT_NODE_GATE_KEYS`
30-
* turns the third RED. The leak cases go RED if the keys leave the strip list
27+
* The legs are hand-written `if` blocks in `SchemaRenderer`'s `shouldHide` /
28+
* `isDisabled` memos (the `VISIBILITY_*_KEYS` lists only drive the
29+
* diagnostics). Restoring a `visibleOn` leg after the `visible` one — one
30+
* line, `if (schema.visibleOn !== undefined) return !evaluate(schema.visibleOn)`
31+
* — turns the first case RED (the node vanishes); a `hiddenOn` leg after
32+
* `hidden` turns the second and third RED; a `disabledOn` leg after `disabled`
33+
* turns the fourth RED. The leak cases go RED if the keys leave the strip list
3134
* in the props destructure. The controls stay GREEN in every direction.
3235
*/
3336

0 commit comments

Comments
 (0)