Marcel
ae1688319e
test(annotation): replace synchronous query().toBeNull() with async not.toBeInTheDocument()
...
Svelte defers DOM updates to microtasks; .query() is a synchronous
snapshot that can fire before the element disappears — making the
absence assertions in AnnotationShape and AnnotationLayer non-deterministic.
Sweeps all 4 instances across both spec files (Sara's ≤5 threshold).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-12 10:21:24 +02:00
Marcel
a53c656077
test(annotation): expand AnnotationLayer prop-combo coverage
...
Pointer hover events, multiple annotations with activeAnnotationId,
dimmed-overrides-faded, canDraw delete button, blockNumbers map.
5 new tests covering ~10 branches.
Refs #496 .
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-11 21:50:28 +02:00
Marcel
8a22eeaa16
test(annotation): add full pointer-drag cycles for AnnotationEditOverlay
...
Adds full drag cycles (down + move + up) for all 8 handles, full
move-area cycle, non-primary pointermove and pointerup ignored,
no-movement pointerup early-return path.
12 new tests covering ~24 additional branches.
Refs #496 .
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-11 21:50:28 +02:00
Marcel
7fae13ff4e
test(annotation): expand AnnotationLayer coverage
...
Container style branches (cursor with/without canDraw, touch-action),
drawing pointer flow (canDraw=false skips, pointerdown on existing
annotation skips, no preview when not drawing, pointermove without
draw, pointerup without draw).
7 new tests, +14 covered branches.
Refs #496 .
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-11 21:50:28 +02:00
Marcel
41a42c77bb
test(annotation): expand AnnotationEditOverlay coverage
...
Adds keyboard navigation (Arrow{Up,Down,Left,Right}, shiftKey step,
non-arrow no-op, edge clamping at all four sides), pointer drag
flows (move-area + each of the 8 handles), early-return branches
for non-primary pointers and pointer events without active drag.
28 tests, +20 covered branches over previous 7-test version.
Refs #496 .
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-11 21:50:28 +02:00
Marcel
567612761d
refactor: move lib-root files to lib/shared/ and finalize domain structure
...
- Move api.server.ts, errors.ts, types.ts, utils.ts, relativeTime.ts to lib/shared/
- Move person relationship components to lib/person/relationship/
- Move Stammbaum components to lib/person/genealogy/
- Move HelpPopover to lib/shared/primitives/
- Update all import paths across routes, specs, and lib files
- Update vi.mock() paths in server-project test files
- Remove now-empty legacy directories (components/, hooks/, server/, etc.)
- Update vite.config.ts coverage include paths for new structure
- Update frontend/CLAUDE.md to reflect domain-based lib/ layout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:53:31 +02:00
Marcel
1e656d2db4
refactor: move document transcription, annotation, viewer sub-packages
...
- transcription/: TranscriptionBlock, Column, EditView, PanelHeader, ReadView,
Section + transcriptionMarkers, blockConflictMerge, saveBlockWithConflictRetry
+ useBlockAutoSave, useBlockDragDrop hooks
- annotation/: AnnotationLayer, AnnotationShape, AnnotationEditOverlay
- viewer/: PdfViewer, PdfControls + useFileLoader, usePdfRenderer hooks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:01:39 +02:00