znetsixe f4ec49254a Full sweep: fix broken features, redesign NodePreview, wire AI service
FIXES (from comprehensive audit):
- NodePreview: complete rewrite — 380px left panel with document
  summaries, commitment list, phase track visualization, scrollable.
  Fixed children count bug (was showing [object Object]).
  Slides in from left (not right) to not overlap branch handles.
- CommitmentForm: added required validation on eigenaar_id field
- MetroMap: wired custom metro node creation with form + POST /metro-nodes
- MetroMap: removed dead handleCliCommand console.log
- MetroMap: added metro node creation modal (naam + beschrijving)

NEW — AI Service integration:
- ai-service/main.py: real Anthropic API integration via httpx
  - Reads ANTHROPIC_API_KEY from env, uses claude-haiku-4-5-20251001
  - /api/chat fetches project context from PostgreSQL (docs, commitments)
  - /api/summarize sends content to Claude for summarization
  - /api/search does basic text search on documents + kennis_artikelen
- AiController.php: Laravel proxy for /api/ai/chat → ai-service
- CliBar.vue: complete rewrite with async API calls, processing state,
  error handling, conversation history, auto-scroll
  - Receives projectId prop for context-scoped AI queries
  - Shows "denken..." animation while waiting for response
- docker-compose.yml: passes ANTHROPIC_API_KEY to ai-service container
- config/services.php: ai service URL configuration

To activate AI: set ANTHROPIC_API_KEY in .env and rebuild ai-service.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 15:07:51 +02:00

Innovatieplatform

Innovation governance platform for the R&D Lab at Waterschap Brabantse Delta. Supports the full lifecycle of innovation trajectories — from signal to handover — with AI-powered search, summarization, and project assistance.

Tech Stack

  • Backend: Laravel 13 (PHP 8.3+) — service-oriented, event-driven, API-first
  • Frontend: Vue 3 + Inertia.js + Vite 8 + Tailwind CSS 4.2
  • Visualization: D3.js 7.9 (zoomable metro map)
  • Database: PostgreSQL 16 + pgvector
  • AI Service: Python FastAPI + LangGraph + RAG
  • Infrastructure: Docker Compose (nginx, php-fpm, worker, scheduler, ai-service, postgresql, redis)

Quick Start

# Clone and setup
git clone https://gitea.wbd-rd.nl/vps1_gitea_admin/innovatieplatform.git
cd innovatieplatform
composer setup

# Development (starts Laravel server, queue worker, logs, and Vite)
composer dev

Docker

docker compose up -d

Services: nginx (:80), postgresql (:5432), redis (:6379), ai-service (:8000)

Project Structure

app/
  Models/          21 Eloquent models (Project, Fase, Commitment, Document, ...)
  Enums/           14 status/type enums (ProjectStatus, FaseType, ...)
  Services/        Business logic (ProjectService, MapDataService, ThemaService)
  Http/Controllers/  API + Inertia controllers
resources/js/
  Pages/           Inertia page components (MetroMap, Auth, Dashboard)
  Components/      Vue components (MetroCanvas, CliBar, NodePreview, Breadcrumb)
  Layouts/         App layout wrapper
ai-service/        Python FastAPI AI service
wiki/              Project knowledge base (wiki-template schema)
docker/            Docker configs (php, nginx, scheduler)
.claude/agents/    10 Claude Code agent definitions

Documentation

  • CLAUDE.md — Architecture principles, build agents, MVP scope
  • STYLE_GUIDE.md — Metro map UI + retro-futurism design system
  • wiki/ — Knowledge base with structured data, architecture docs, and query tools

Wiki

python wiki/tools/query.py health          # Project health overview
python wiki/tools/query.py entity "project" # Everything about an entity
bash wiki/tools/search.sh "keyword"         # Full-text search
bash wiki/tools/lint.sh                     # Check wiki health

Tests

composer test
Description
No description provided
Readme 6.1 MiB
Languages
PHP 45.4%
Vue 31%
Blade 15.2%
Python 6.1%
Shell 1.4%
Other 0.9%