Skip to content

feat: demo DB, graph rendering fix, NQL execution, and E2E pipeline#12

Merged
rprabhat merged 5 commits into
mainfrom
feat/demo-db-auto-select
Apr 4, 2026
Merged

feat: demo DB, graph rendering fix, NQL execution, and E2E pipeline#12
rprabhat merged 5 commits into
mainfrom
feat/demo-db-auto-select

Conversation

@rprabhat
Copy link
Copy Markdown
Collaborator

@rprabhat rprabhat commented Apr 4, 2026

Summary

  • Auto-create demo database at ~/.nexus/demo on app launch with 11 nodes and 16 edges
  • Fix force-graph rendering (removed broken custom canvas overlay, added zoomToFit)
  • Fix TypeScript types for force-graph v1.47
  • Auto-select demo database and load nodes/edges on app mount
  • Implement NQL query execution (was a stub) with MATCH, SEARCH, GET, COUNT support
  • Add E2E test script (scripts/e2e-test.sh) with 20 test cases
  • Add GitHub Actions workflow for E2E testing (.github/workflows/e2e-tests.yml)

Demo Data

  • People: Alex, Manager
  • Places: Office, Home
  • Events: StressfulMeeting, PoorSleep, Travel
  • Symptoms: Fatigue, ExtremeTiredness, Headache
  • Medications: Caffeine
  • Relationships: WORKS_AT, LIVES_AT, HAPPENED_AT, EXPERIENCED, TRIGGERED, MANAGED_WITH, HAS_SYMPTOM

NQL Queries Supported

  • MATCH (n:Label) — find nodes by label
  • MATCH (n)-[r:TYPE]->(m) — find nodes with relationship edges
  • GET nodes WHERE label contains 'X' — search nodes
  • COUNT nodes / COUNT edges — count entities
  • Default (no pattern) — return all nodes and edges

rprabhat and others added 2 commits April 4, 2026 17:46
- Add comprehensive E2E test script (scripts/e2e-test.sh)
- Add GitHub Actions workflow for E2E testing
- Tests cover: demo DB creation, data integrity, graph rendering, frontend auto-select, Rust compilation, database CRUD
- 20 test cases covering all critical paths

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- Replace stub nql_execute with functional query engine
- Support MATCH, SEARCH, GET, FIND, COUNT query patterns
- MATCH (n:Label) returns filtered nodes by label
- MATCH (n)-[r]->(m) returns nodes with relationship edges
- GET/FIND nodes WHERE label contains 'X' returns matching nodes
- COUNT nodes/edges returns total counts
- Default query (no pattern) returns all nodes and edges

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@rprabhat rprabhat force-pushed the feat/demo-db-auto-select branch from 23a3c78 to 00b7ce3 Compare April 4, 2026 06:46
rprabhat and others added 3 commits April 4, 2026 17:52
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@rprabhat rprabhat merged commit 38fa1ac into main Apr 4, 2026
8 checks passed
@rprabhat rprabhat deleted the feat/demo-db-auto-select branch April 4, 2026 07:09
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