feat: annotations linked to file version (#55) #58
Reference in New Issue
Block a user
Delete Branch "feature/55-file-hash-annotations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
FileService.uploadFile()now reads file bytes once, computes a SHA-256 hash, and returns it alongside the S3 key via a newUploadResultrecordfile_hash VARCHAR(64)to bothdocumentsanddocument_annotations; annotations capture the document's hash at creation timePdfVieweraccepts adocumentFileHashprop and filters annotations to only show those whose hash matches the current file (or have no hash). An amber notice banner appears when outdated annotations existannotation_outdated_noticeadded in de/en/esTest plan
./mvnw test)svelte-checkintroduces no new type errorsannotations are hidden after a different file is uploaded— upload PDF, create annotation, replace file → annotation hidden + notice shownannotations reappear after re-uploading the original file— upload PDF, annotate, replace, re-upload original → annotation visible, no noticeCloses #55