Skip to content

Commit a085c12

Browse files
aksOpsetry
authored andcommitted
refactor: remove index.html, update package-lock.json, and enhance graph loading logic
- Deleted the `index.html` file from the project. - Removed unnecessary "peer" properties from various dependencies in `package-lock.json`. - Enhanced the graph loading logic in `App.tsx` to handle different graph statuses and fetch initial entities. - Updated `GraphView.tsx` to display appropriate messages based on the graph status. - Modified `useGraph.ts` to include a new `GraphStatus` type and manage graph loading states more effectively.
1 parent 97fd608 commit a085c12

9 files changed

Lines changed: 61 additions & 304 deletions

File tree

.claude/settings.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

internal/api/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (h *handlers) graphNeighborhood(w http.ResponseWriter, r *http.Request) {
168168
return
169169
}
170170
if entity == nil {
171-
writeJSON(w, 200, map[string]any{"nodes": []any{}, "edges": []any{}})
171+
writeJSON(w, 404, map[string]any{"error": "entity not found", "nodes": []any{}, "edges": []any{}})
172172
return
173173
}
174174

ui/dist/assets/index-Bn6RzH4k.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)