Commit 6a81bf7
committed
feat(v7-f56b): UI badge + verify RPC gotcha for dim_env mismatch
cppmega_v4/jsonrpc/methods.py:
- verify RPC now appends a 'v7_f56b_dim_env_mismatch' gotcha
(severity=warning) whenever dim_env pins all three of (H, nh,
head_dim) and nh*head_dim ≠ H. Reuses the existing gotcha payload
channel so the UI GotchasTab renders it without any new plumbing.
vbgui/src/App.tsx:
- New absolutely-positioned banner inside the canvas pane:
data-testid='symbolic-dim-warn-badge', visible iff the gotcha is
present in spec.gotchas. Renders a yellow-amber alert with the
message text (data-testid='symbolic-dim-warn-message'), positioned
top-right of the canvas so it overlays without obscuring bricks.
- FlowCanvas now sits inside a relative-positioned wrapper to anchor
the badge; existing flex layout preserved (FlowCanvas keeps flex:1
inside the wrapper).
Existing App.integration + FlowCanvas vitest pass (10/10).
Ref: cppmega-mlx-j3qa.21 parent 2040299 commit 6a81bf7
2 files changed
Lines changed: 58 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
378 | 402 | | |
379 | 403 | | |
380 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
635 | 663 | | |
636 | 664 | | |
637 | 665 | | |
| |||
0 commit comments