Skip to content

Add ERM/ERD visualization and AQL query editor to Document Manager - #96

Merged
makr-code merged 8 commits into
mainfrom
copilot/implement-erm-erd-visualization
Dec 15, 2025
Merged

makr-code merged 8 commits into
mainfrom
copilot/implement-erm-erd-visualization

Conversation

Copilot AI commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor

Implements database schema visualization and query execution capabilities for the ThemisDB Document Management System per requirements for "Implementierung der ERM und ERD für die vollständige Visualisierung und editieren von Abfragen."

Schema Introspection

  • SchemaService with intelligent caching and fallback to predefined schema
  • Domain models for entities, attributes, and relationships (1:1, 1:N, N:1, N:M)
  • 8 core entities: documents, document_revisions, timeline_events, users, processes, tasks, favorites, audit_log

ERD Visualization (🗂️ Tab)

  • Canvas-based interactive diagrams with zoom/pan/auto-layout
  • Entity cards showing attributes with data types and primary key highlighting
  • Relationship lines indicating cardinality
  • Details sidebar for selected entities

Query Editor (🔍 Tab)

  • AQL syntax validation and execution via ThemisDB API
  • Saved queries with JSON persistence
  • 6 pre-configured example queries
  • Tabular result display with performance metrics (execution time, row count)
  • Split-pane layout: editor (top), results (bottom), saved queries (left)

Integration

  • Services and ViewModels registered in DI container
  • Value converters for UI bindings (InverseBoolToVisibilityConverter, BoolToFontWeightConverter, StringToIconConverter)
  • DataContext initialization via App.GetService<T>() pattern

Example AQL query:

FOR doc IN documents
  FILTER doc.created_at >= DATE_SUBTRACT(DATE_NOW(), 7, 'days')
  SORT doc.created_at DESC
  LIMIT 10
  RETURN doc

Files: 10 created, 5 modified (2,561 LOC)
Documentation: ERD_QUERY_EDITOR_GUIDE.md, IMPLEMENTATION_SUMMARY.md, README updates

Original prompt

Für das DMS im projekte ordner brauchen wir noch die Implementierung der ERM und ERD für die vollständige Visualisierung und editieren von Abfragen. Prüfe was vorhanden ist und implementiere nach best-practice.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Implement ERM and ERD for query visualization and editing Add ERM/ERD visualization and AQL query editor to Document Manager Dec 15, 2025
Copilot AI requested a review from makr-code December 15, 2025 09:45
@makr-code
makr-code marked this pull request as ready for review December 15, 2025 09:45
@makr-code
makr-code merged commit c24399c into main Dec 15, 2025
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
@makr-code makr-code mentioned this pull request Mar 12, 2026
8 tasks
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.

2 participants