docling-studio/frontend/src
Pier-Jean Malandrino b4ad874600 fix(#256): drop pushDocumentToStore duplicate, align rechunk return shape
The frontend had two endpoints pointing at the same operation:
  - features/document/api.ts:pushDocumentToStore  → POST /push
  - features/chunks/api.ts:pushChunksToStore      → POST /chunks/push

Backend now exposes a single /chunks/push route (semantically more
accurate — it's chunks that get pushed, not the doc itself), so the
document-side variant is removed. document/store.ts:pushToStore now
delegates to chunks/api.

rechunkDocument returned {jobId} based on the old async-job model.
The new backend rechunk runs synchronously and returns the chunk
list directly. The DocsLibraryPage caller now reports a count
(via new docs.rechunkDone i18n key) instead of a fake job id.

Adds data-e2e=tab-{mode} on the doc workspace tab strip so the
new Karate scenario can target the chunks tab without text matching.

Extends chunks/api.test.ts with HTTP error-propagation guards on
every call — the original 404 bug would have surfaced in CI.
2026-05-11 15:00:57 +02:00
..
__tests__/integration refactor(audit): remediate 0.5.0 audit findings — clean architecture, security, DRY, SOLID, perf 2026-04-29 14:00:00 +02:00
app feat(#251): API client typé create/update/delete + StoreForm + Create/Edit pages 2026-05-05 09:38:39 +02:00
features fix(#256): drop pushDocumentToStore duplicate, align rechunk return shape 2026-05-11 15:00:57 +02:00
pages fix(#256): drop pushDocumentToStore duplicate, align rechunk return shape 2026-05-11 15:00:57 +02:00
shared fix(#256): drop pushDocumentToStore duplicate, align rechunk return shape 2026-05-11 15:00:57 +02:00