Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fixing qodo findings
Sameer6305e7696f462a2d
diff --git a/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx b/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsxindex f22fb547..78790f3d 100644--- a/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx+++ b/explorer/src/workspaces/DecisionWorkspace/DecisionWorkspace.tsx@@ -100,6 +100,7 @@ export function DecisionWorkspace() {useEffect(() => {const ctrl = new AbortController();setListLoading(true);+ setError("");fetch("/api/decisions", { signal: ctrl.signal }).then(async (r) => {if (!r.ok) throw new Error(`HTTP ${r.status}`);@@ -135,6 +136,7 @@ export function DecisionWorkspace() {setSelected(d);setChainLoading(true);setChain([]);+ setError("");try {const res = await fetch(`/api/decisions/${encodeURIComponent(d.decision_id)}/chain`, { signal: ctrl.signal });if (!res.ok) throw new Error(`HTTP ${res.status}`);diff --git a/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx b/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsxindex 8b3f4e0d..926ea173 100644--- a/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx+++ b/explorer/src/workspaces/LineageWorkspace/LineageDiagram.tsx@@ -54,6 +54,7 @@ export function LineageDiagram() {useEffect(() => {if (!activeId) {+ setError("");setNodes([]);setEdges([]);return;@@ -66,6 +67,7 @@ export function LineageDiagram() {];const fetchLineage = async () => {+ setError("");try {const res = await fetch("/api/provenance?node_id=" + encodeURIComponent(activeId));diff --git a/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx b/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsxindex ce76e2bf..33746269 100644--- a/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx+++ b/explorer/src/workspaces/ManageWorkspace/KGOverviewTab.tsx@@ -163,11 +163,7 @@ export function KGOverviewTab() {</button></div>- {error && (- <div style={{ margin: "12px 22px", padding: "10px 14px", borderRadius: "var(--ws-radius-sm)", background: "var(--ws-red-soft)", border: "1px solid rgba(255,123,114,0.28)", color: "#fca5a5", fontSize: 13 }}>- {error}- </div>- )}+<div className="ws-scroll" style={{ flex: 1, padding: "18px 22px", display: "flex", flexDirection: "column", gap: 16 }}>{/* Stat cards */}diff --git a/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx b/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsxindex 62dff1e1..355770e7 100644--- a/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx+++ b/explorer/src/workspaces/OntologyWorkspace/SKOSVocabularyManager.tsx@@ -330,6 +330,7 @@ function SchemePanel({useEffect(() => {if (!expanded) return;setLoading(true);+ setError("");fetch(`/api/vocabulary/hierarchy?scheme=${encodeURIComponent(scheme.uri)}`).then(async (r) => {if (!r.ok) throw new Error(`HTTP ${r.status}`);diff --git a/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx b/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsxindex d7188fc4..423383ce 100644--- a/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx+++ b/explorer/src/workspaces/OntologyWorkspace/VersionsTab.tsx@@ -51,6 +51,7 @@ export function VersionsTab() {const loadVersions = useCallback(async () => {if (!ontologyUri) return;+ setError("");try {const response = await fetch(`/api/ontology/versions/${encodeURIComponent(ontologyUri)}`);if (response.ok) {@@ -66,6 +67,7 @@ export function VersionsTab() {}, [ontologyUri]);const loadProposals = useCallback(async () => {+ setError("");try {const response = await fetch("/api/ontology/proposals");if (response.ok) {diff --git a/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx b/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsxindex dfcfa60f..9ecafe46 100644--- a/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx+++ b/explorer/src/workspaces/SparqlWorkspace/SparqlWorkspace.tsx@@ -72,11 +72,9 @@ export function SparqlWorkspace() {headers: { "Content-Type": "application/json" },body: JSON.stringify({ query }),});- if (!res.ok && res.status !== 400 && res.status !== 500) {- // Some specific errors may return 400/500 with JSON payload- if (!res.headers.get("content-type")?.includes("application/json")) {- throw new Error(`HTTP ${res.status}`);- }+ if (!res.headers.get("content-type")?.includes("application/json")) {+ const text = await res.text();+ throw new Error(`HTTP ${res.status}: ${text.substring(0, 100)}`);}const data = await res.json();if (res.status === 207) {@@ -96,8 +94,9 @@ export function SparqlWorkspace() {}]);}setResult(data);- } catch {- setResult({ error: "Network error — could not reach the SPARQL endpoint." });+ } catch (e) {+ const msg = e instanceof Error ? e.message : "Network error — could not reach the SPARQL endpoint.";+ setResult({ error: msg });} finally {setIsLoading(false);}