Marcel
0f613e49ce
refactor(shared): move FieldLabelBadge primitive to shared/primitives
...
FieldLabelBadge is a generic UI primitive (additive/replace badge used in form
field labels). It lived in the document domain but was already imported by
PersonTypeahead (person domain), creating a person → document coupling.
Moving it to shared/primitives eliminates that cross-domain dependency.
Refs #410
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 18:09:01 +02:00
Marcel
507fa088fd
refactor(document): move statusDotClass and statusLabel to document domain
...
These functions describe DocumentStatus display logic (dot colours, readable
labels) and belong in the document domain. They were incorrectly placed in
personFormat.ts. Moving them to documentStatusLabel.ts removes the
person → document dependency and prepares the codebase for the
boundaries/dependencies ESLint rule.
Refs #410
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 18:09:01 +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
efcc347c00
refactor: move shared components to lib/shared/ sub-packages
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:40:14 +02:00
Marcel
d6db7a07bd
refactor: move shared utilities to lib/shared/ sub-packages
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:35:15 +02:00
Marcel
7dd05af867
refactor: move tag domain components to lib/tag/
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:27:25 +02:00
Marcel
d5d36e661a
refactor: move person domain components and utils to lib/person/
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:26:21 +02:00
Marcel
920742ba1c
refactor: move ocr domain components to lib/ocr/
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 14:23:55 +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
Marcel
e7f8aa5894
refactor: move document domain core to lib/document/
...
Moves ~25 components, utils (search, filename, groupDocuments,
documentStatusLabel, validateFile), bulkSelection store, and
TranscriptionSection sub-component. Fixes broken relative imports.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-05 13:56:36 +02:00