diff --git a/apps/navigator/package.json b/apps/navigator/package.json index 30bf3bf..0d3d6e6 100644 --- a/apps/navigator/package.json +++ b/apps/navigator/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "^19.3.0", "react-dom": "^19.3.0", - "structured-context": "^0.22.1", + "structured-context": "^0.23.0", "structured-context-map-views": "workspace:*" }, "devDependencies": { diff --git a/apps/navigator/src/UnattachedAnnotationPanel.tsx b/apps/navigator/src/UnattachedAnnotationPanel.tsx index 847817e..7b8c0d0 100644 --- a/apps/navigator/src/UnattachedAnnotationPanel.tsx +++ b/apps/navigator/src/UnattachedAnnotationPanel.tsx @@ -1,10 +1,7 @@ import type { UnattachedAnnotation } from 'structured-context-map-views'; import { AnnotationList } from './NodeDetails'; -/** - * Validation results with no node on the map: global rules, and nodes that failed their schema - * (those aren't in the graph). Grouped by node id, or under "Space" when the result has none. - */ +/** Validation results with no node on the map, grouped by node or file. */ export function UnattachedAnnotationPanel({ unattached, onClose, @@ -12,7 +9,7 @@ export function UnattachedAnnotationPanel({ unattached: readonly UnattachedAnnotation[]; onClose: () => void; }) { - const groups = Map.groupBy(unattached, (u) => u.nodeId ?? ''); + const groups = Map.groupBy(unattached, (u) => u.nodeId ?? u.location?.file ?? ''); return (