Commit 917a3a7
fix(node-ui): round-3 Codex — SWM assertionGraph guard + VM/discarded empty-state copy
Round-3 review fixes on the S4 assertion detail view (kept as a focused
4th commit rather than folded into C1 — the fixup's helpers.ts hunk
overlaps C2's breadcrumb helpers + C3's primarySubGraphOf, so an
autosquash into C1 conflicts mechanically; a standalone commit is the
clean, conflict-free shape team-lead OK'd).
- Finding 2 (api.ts fetchAssertionState): the assertionGraph fallback
was URI-shape-unsafe. For an SWM input (a `urn:dkg:assertion:…`
lifecycle URN) whose `dkg:assertionGraph` did NOT resolve
(legacy/partial `_meta` row), echoing the URN made fetchAssertionTriples
query `GRAPH <urn:…>` (a graph that never holds triples) → bogus render.
Now: urn-input + unresolved → assertionGraph: undefined (Triples/Entities
fall to their empty-state). WM data-graph-URI input still echoes itself.
- Finding 3 (assertionEmptyStateCopy, ux §4.7.1 locked): the empty-state
copy now keys off `dkg:state` (4 branches) instead of special-casing
promoted only — published/finalized show the VM / Knowledge-Assets line
("entities → Knowledge Assets" at the VM boundary, §4.8), discarded is
terminal, created/promoted unchanged. Plain text, no links.
- Finding 1 (remote SWM state) reply-not-valid (no replicated state
source); finding-1 round-2 discarded-neutral badge + finding-2 round-2
literal-display decode already shipped earlier in C1.
Tests: SWM-legacy-no-assertionGraph guard + WM-echo counterpart
(use-assertion-state); assertionEmptyStateCopy 4-branch truth table
(assertion-detail-helpers); published empty-state DOM render
(assertion-detail-view). Finding-2 guard negative-proofed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9f3025c commit 917a3a7
10 files changed
Lines changed: 1131 additions & 142 deletions
File tree
- packages/node-ui
- src/ui
- hooks
- views
- project
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
844 | 856 | | |
845 | 857 | | |
846 | | - | |
847 | | - | |
| 858 | + | |
| 859 | + | |
848 | 860 | | |
849 | 861 | | |
850 | 862 | | |
| |||
871 | 883 | | |
872 | 884 | | |
873 | 885 | | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
874 | 899 | | |
875 | 900 | | |
876 | 901 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 902 | + | |
881 | 903 | | |
882 | 904 | | |
883 | 905 | | |
| |||
945 | 967 | | |
946 | 968 | | |
947 | 969 | | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
948 | 991 | | |
949 | 992 | | |
950 | 993 | | |
951 | 994 | | |
952 | 995 | | |
953 | | - | |
954 | | - | |
955 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
956 | 1002 | | |
957 | 1003 | | |
958 | 1004 | | |
| |||
961 | 1007 | | |
962 | 1008 | | |
963 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
964 | 1016 | | |
965 | 1017 | | |
966 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
487 | 492 | | |
488 | 493 | | |
489 | 494 | | |
490 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
491 | 500 | | |
492 | 501 | | |
493 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
333 | 341 | | |
334 | | - | |
| 342 | + | |
335 | 343 | | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
339 | | - | |
| 347 | + | |
340 | 348 | | |
341 | 349 | | |
342 | 350 | | |
| |||
696 | 704 | | |
697 | 705 | | |
698 | 706 | | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
704 | 721 | | |
705 | 722 | | |
706 | 723 | | |
| |||
788 | 805 | | |
789 | 806 | | |
790 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
791 | 831 | | |
792 | 832 | | |
793 | 833 | | |
| |||
828 | 868 | | |
829 | 869 | | |
830 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
831 | 874 | | |
832 | 875 | | |
833 | 876 | | |
| |||
865 | 908 | | |
866 | 909 | | |
867 | 910 | | |
868 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
869 | 917 | | |
870 | 918 | | |
871 | 919 | | |
| |||
0 commit comments