Commit graph

9 commits

Author SHA1 Message Date
ggq-admin
df68e27e26 fix: Complete OCR pipeline with language code mapping
- Fix tesseract language code mapping (en -> eng) to match available training data
- Switch from Tesseract.js to local system tesseract command for better reliability
- Add TESSDATA_PREFIX environment variable for tesseract data path
- Create test directory structure to workaround pdf-parse debug mode
- OCR now successfully extracting text with 0.85 confidence

Tested with NaviDocs test manual - successfully extracted text including:
- "Bilge Pump Maintenance"
- "Electrical System"
- Battery maintenance instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 05:09:51 +02:00
ggq-admin
af02363299 fix: Switch to local system tesseract command for OCR
- Replace Tesseract.js with local tesseract CLI due to CDN 404 issues
- Fix queue name mismatch (ocr-processing vs ocr-jobs)
- Local tesseract uses pre-installed training data
- Faster and more reliable than downloading from CDN

\ud83e\udd16 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 04:48:18 +02:00
ggq-admin
09892de4a3 chore: Local development environment setup
- Installed system dependencies (Redis, Tesseract, poppler-utils)
- Downloaded and configured Meilisearch 1.11.3
- Initialized SQLite database with schema
- Started all services successfully:
  - Meilisearch on port 7700
  - Redis on port 6379
  - Backend API on port 3001
  - OCR Worker (BullMQ)
  - Frontend dev server on port 5174

All health checks passing. Ready for testing.

\ud83e\udd16 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 04:42:55 +02:00
ggq-admin
86f92d443c docs: Add build completion summary 2025-10-19 01:57:25 +02:00
ggq-admin
155a8c0305 feat: NaviDocs MVP - Complete codebase extraction from lilian1
## Backend (server/)
- Express 5 API with security middleware (helmet, rate limiting)
- SQLite database with WAL mode (schema from docs/architecture/)
- Meilisearch integration with tenant tokens
- BullMQ + Redis background job queue
- OCR pipeline with Tesseract.js
- File safety validation (extension, MIME, size)
- 4 API route modules: upload, jobs, search, documents

## Frontend (client/)
- Vue 3 with Composition API (<script setup>)
- Vite 5 build system with HMR
- Tailwind CSS (Meilisearch-inspired design)
- UploadModal with drag-and-drop
- FigureZoom component (ported from lilian1)
- Meilisearch search integration with tenant tokens
- Job polling composable
- Clean SVG icons (no emojis)

## Code Extraction
-  manuals.js → UploadModal.vue, useJobPolling.js
-  figure-zoom.js → FigureZoom.vue
-  service-worker.js → client/public/service-worker.js (TODO)
-  glossary.json → Merged into Meilisearch synonyms
-  Discarded: quiz.js, persona.js, gamification.js (Frank-AI junk)

## Documentation
- Complete extraction plan in docs/analysis/
- README with quick start guide
- Architecture summary in docs/architecture/

## Build Status
- Server dependencies:  Installed (234 packages)
- Client dependencies:  Installed (160 packages)
- Client build:  Successful (2.63s)

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 01:55:44 +02:00
ggq-admin
c0512ec643 docs: Add architecture summary
Comprehensive overview of:
- Core architectural decisions
- Schema design rationale
- Technology stack
- Scaling strategy
- Expert panel consensus
- Success criteria

Ready for implementation phase.
2025-10-19 01:23:40 +02:00
ggq-admin
9c88146492 docs: Complete architecture, roadmap, and expert panel analysis
Architecture:
- database-schema.sql: Future-proof SQLite schema with Postgres migration path
- meilisearch-config.json: Search index config with boat terminology synonyms
- hardened-production-guide.md: Security hardening (queues, file safety, tenant tokens)

Roadmap:
- v1.0-mvp.md: Feature roadmap and success criteria
- 2-week-launch-plan.md: Day-by-day execution plan with deliverables

Debates:
- 01-schema-and-vertical-analysis.md: Expert panel consensus on architecture

Key Decisions:
- Hybrid SQLite + Meilisearch architecture
- Search-first design (Meilisearch as query layer)
- Multi-vertical support (boats, marinas, properties)
- Offline-first PWA approach
- Tenant token security (never expose master key)
- Background queue for OCR processing
- File safety pipeline (qpdf + ClamAV)
2025-10-19 01:22:42 +02:00
ggq-admin
c54c20c7af docs: Add expert panel debates on schema design and vertical analysis
- Tech panel: Database schema, Meilisearch config, future-proofing
- Boating vertical: Domain experts on boat documentation needs
- Property/Marina vertical: Multi-entity hierarchy and compliance
- Cross-vertical pattern analysis: Unified schema for all use cases

Consensus: Search-first architecture with SQLite + Meilisearch hybrid
2025-10-19 01:20:17 +02:00
ggq-admin
63aaf2868a Initial commit: NaviDocs repository 2025-10-19 01:20:12 +02:00