Commit graph

106 commits

Author SHA1 Message Date
Pier-Jean Malandrino
fe4e792885 Fix audit findings: remove domain→infra violation, align Serve API, fix DI
- Delete domain/parsing.py (broke hexagonal layering by importing infra)
- Migrate all tests to import directly from domain.value_objects and
  infra.local_converter
- Rewrite ServeConverter to match real Docling Serve v1 API contract:
  options sent as individual form fields (not JSON blob), response
  parsed from document.json_content (DoclingDocument), proper bbox
  coord_origin handling (TOPLEFT/BOTTOMLEFT)
- Transmit all conversion options including generate_picture_images
- Replace fragile lazy import circular dep with FastAPI Depends() +
  app.state for AnalysisService injection
- Add frontend file size validation (50MB) before upload

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 10:58:58 +02:00
Pier-Jean Malandrino
a3486a8501 Add ServeConverter adapter for remote Docling Serve integration
Implement the HTTP client adapter that delegates document conversion
to a remote Docling Serve instance via its /v1/convert/file endpoint.
Switchable via CONVERSION_ENGINE=remote env var. Includes health check,
API key auth, response parsing, and 30 new tests covering parsing,
type mapping, HTTP calls, and DI wiring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 10:36:35 +02:00
Pier-Jean Malandrino
3743ed4ca8 Refactor backend to hexagonal architecture for converter extensibility
Extract domain value objects and ports from parsing.py, move Docling-specific
code to infra/local_converter.py, and convert analysis_service to a class
with injected DocumentConverter. This prepares the codebase for plugging in
alternative conversion backends (e.g. Docling Serve) via the Protocol pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 10:34:07 +02:00
Pier-Jean Malandrino
c9de4bbd8a Fix esbuild vulnerability by upgrading Vite 5 → 6 and vitest
Update vite 5.4.21 → 6.4.1, @vitejs/plugin-vue and vitest to resolve
Dependabot alert #1 (esbuild dev server request forgery, now at 0.25.12)
2026-03-28 15:16:09 +01:00
Pier-Jean Malandrino
19125d4230 Fix picomatch vulnerability by updating typescript-eslint
Update typescript-eslint 8.57.1 → 8.57.2 to resolve Dependabot alert #3
(POSIX Character Classes method injection in picomatch, now at 4.0.4)
2026-03-28 15:15:01 +01:00
Pier-Jean Malandrino
c3e96b62cd
Merge pull request #24 from scub-france/bug-doc-upload
Fix evetn listening redirection on doc upload
2026-03-24 08:47:55 +01:00
Pier-Jean Malandrino
40cba0f036 Fix type in emit 2026-03-24 08:38:55 +01:00
Pier-Jean Malandrino
079595b57d Fix evetn listening redirection on doc upload 2026-03-23 10:59:52 +01:00
Pier-Jean Malandrino
d22f2e973e Add GIF in README 2026-03-23 10:55:54 +01:00
Pier-Jean Malandrino
f77579ea2c Add missing config for doc publication 2026-03-23 10:25:55 +01:00
Pier-Jean Malandrino
1edd0668d1 Fix Ruff errror, update node and fix buttton breakline 2026-03-23 10:13:24 +01:00
Pier-Jean Malandrino
f267f6c183 Just can't help myself with this.. 2026-03-23 10:04:39 +01:00
Pier-Jean Malandrino
41ee11f5c7
Merge pull request #22 from scub-france/live-documentaiton
Add live documentaiton and change architecture diagram
2026-03-23 09:51:57 +01:00
Pier-Jean Malandrino
c2aeec3092 Add live documentaiton and change architecture diagram 2026-03-23 09:51:03 +01:00
Pier-Jean Malandrino
765b3aa4b8
Merge pull request #21 from scub-france/build-doc
Build true detailed documentaiton
2026-03-22 08:56:50 +01:00
Pier-Jean Malandrino
e2fe935b63 Build true detailed documentaiton 2026-03-22 08:56:00 +01:00
pjmalandrino
b45bb87339 COnsolidation of bbox pipelin and add tests 2026-03-21 19:45:04 +01:00
Pier-Jean Malandrino
6cdd00ed1f
Merge pull request #20 from scub-france/typescipt-migraiton
Migrate frontend in typescript
2026-03-21 16:07:06 +01:00
pjmalandrino
8871c9162c Migrate frontend in typescript 2026-03-21 15:58:43 +01:00
Pier-Jean Malandrino
81076dd308
Merge pull request #19 from scub-france/quality-focus
Add qualityt check and contributing doc
2026-03-21 15:39:29 +01:00
pjmalandrino
577225d10e Add qualityt check and contributing doc 2026-03-21 15:34:54 +01:00
Pier-Jean Malandrino
411cf38a1a
Merge pull request #18 from scub-france/split-rendering
Refacto and add cp paste btn
2026-03-21 15:08:26 +01:00
pjmalandrino
2db251182f Refacto and add cp paste btn 2026-03-21 15:03:10 +01:00
Pier-Jean Malandrino
9fe05756e8
Merge pull request #17 from scub-france/split-rendering
Split the results of OCR
2026-03-20 21:49:06 +01:00
pjmalandrino
7bb4f8e298 Split the results of OCR 2026-03-20 21:45:26 +01:00
Pier-Jean Malandrino
d177dae842
Update README.md 2026-03-20 20:13:44 +01:00
pjmalandrino
c3c0149532 Add docker push
Some checks failed
Release Docker Image / Build & push Docker image (push) Has been cancelled
2026-03-20 18:26:20 +01:00
pjmalandrino
2e1518d26d Update documentation 2026-03-20 17:41:17 +01:00
Pier-Jean Malandrino
463f84a758
Merge pull request #16 from scub-france/add-ci
Add CI
2026-03-20 16:37:21 +01:00
pjmalandrino
c224f4933b Add CI 2026-03-20 16:32:52 +01:00
Pier-Jean Malandrino
58b6f925d2
Merge pull request #15 from scub-france/graphical-improvments
Add slide on side bar in Studio mode
2026-03-20 16:25:25 +01:00
pjmalandrino
d28dfd6d81 Add slide on side bar in Studio mode 2026-03-20 16:24:38 +01:00
Pier-Jean Malandrino
5a8b290758
Merge pull request #14 from scub-france/graphical-improvment
Change document tab place and add landing page
2026-03-20 14:01:35 +01:00
pjmalandrino
20e79f4361 Change document tab place and add landing page 2026-03-20 13:57:05 +01:00
Pier-Jean Malandrino
b06d5fdf95
Merge pull request #13 from scub-france/refact-fixes
Mke some fixes and refacto
2026-03-20 12:37:48 +01:00
pjmalandrino
ad1f1a81d3 Mke some fixes and refacto 2026-03-20 12:36:26 +01:00
Pier-Jean Malandrino
6ee54fafe9
Merge pull request #12 from scub-france/history-document-management
History document management
2026-03-20 09:43:05 +01:00
pjmalandrino
ea71f7247c Add tests 2026-03-20 09:42:14 +01:00
pjmalandrino
7821cd397b Allow History consultaiton on click, add documents management tab 2026-03-20 09:37:40 +01:00
Pier-Jean Malandrino
55f3f22c4b
Merge pull request #11 from scub-france/connect-configuration
Connect options with model configuration
2026-03-20 09:23:50 +01:00
pjmalandrino
d77fe2d989 Add configuration descriptions 2026-03-20 09:23:26 +01:00
pjmalandrino
e69ff90650 Connect options with model configuration 2026-03-20 08:59:20 +01:00
Pier-Jean Malandrino
5b8eb42fe6
Merge pull request #10 from scub-france/small-fixes
Add a stronger testing strategy
2026-03-18 14:47:15 +01:00
pjmalandrino
049ef443cc Add a stronger testing strategy 2026-03-18 14:46:37 +01:00
Pier-Jean Malandrino
62dd81ae9c
Update README.md
Badges
2026-03-17 20:48:06 +01:00
Pier-Jean Malandrino
fc0c20b3a7
Merge pull request #9 from scub-france/small-fixes
Final fixes before first release
2026-03-17 17:09:59 +01:00
pjmalandrino
ac1b68ac18 Final fixes before first release 2026-03-17 17:09:34 +01:00
pjmalandrino
6522d4ad9e Remove unused files and update .gitignore 2026-03-17 16:10:57 +01:00
Pier-Jean Malandrino
3a9f2ee3ad
Merge pull request #8 from scub-france/Work-Docker-Integration
Work docker integration
2026-03-17 16:06:50 +01:00
pjmalandrino
5fff141045 Radical architecture change, migration to a more lightweight 2026-03-17 16:06:27 +01:00