Skip to content

Add query visualization layers across CLI and Web UI#6

Open
Sungwook-You wants to merge 18 commits into
AlexAI-MCP:mainfrom
Sungwook-You:feature/query-visualization-layers
Open

Add query visualization layers across CLI and Web UI#6
Sungwook-You wants to merge 18 commits into
AlexAI-MCP:mainfrom
Sungwook-You:feature/query-visualization-layers

Conversation

@Sungwook-You

Copy link
Copy Markdown

Summary

  • add opencrab query-viz command to generate query-result layer JSON files
  • add web query layer support: LayerPanel, QueryInput, and graph overlay integration
  • add layer index bootstrap and update GUIDE with query layer usage
  • harden layer/index write path and related API behavior for local graph endpoints

Validation

  • py -m pytest (project tests passed)
  • cd apps/web && npm run build && npm run lint (passed)

Sungwook-You and others added 18 commits May 21, 2026 16:57
Design for natural language query → graph layer visualization feature.

- CLI: query-viz command using HybridQuery + multi-hop BFS
- Web UI: layer panel, query input, graph overlay
- Static file architecture (no API dependency)
- Layer-based management (toggle on/off)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Fix TOCTOU in ensure_layer_store by using exclusive open mode ('x')
- Fix race condition in write_layer with write-to-temp-then-replace pattern
- Add threading lock to prevent Windows file access conflicts
- Add concurrent execution tests to validate thread-safety

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Create LayerPanel component for toggling query layers
- Create QueryInput component for search functionality
- Integrate layer loading and state management in dashboard
- Add layerNodes/layerEdges props to GraphView for overlay rendering
- Merge base graph data with layer data for visualization
- Configure ESLint for Next.js project

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- serialize index writes without Windows replace contention
- use sqlite context managers in API graph endpoints

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@Sungwook-You Sungwook-You left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-check complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant