Problem
Signatures (and possibly other annotation types) are currently visible in all modes that display the PDF viewer (view, split, compress, convert). Signatures should only be visible when in edit mode, as they are editing artifacts rather than part of the original document.
Request
Filter annotations passed to <PDFViewer> in non-edit modes so that only highlights are shown (or no annotations at all, depending on preferred behavior). Signatures and text annotations should be hidden outside of edit mode.
Affected Files
src/components/dashboard/tools/ViewTool.tsx — filter out signature/text annotations
src/components/dashboard/tools/SplitTool.tsx — same
src/components/dashboard/tools/CompressTool.tsx — same
src/components/dashboard/tools/ConvertTool.tsx — same
Implementation Notes
Each tool passes annotations from the store to <PDFViewer>. Filtering to only highlight type before passing would be sufficient:
annotations={annotations.filter(a => a.type === 'highlight')}
Problem
Signatures (and possibly other annotation types) are currently visible in all modes that display the PDF viewer (view, split, compress, convert). Signatures should only be visible when in edit mode, as they are editing artifacts rather than part of the original document.
Request
Filter annotations passed to
<PDFViewer>in non-edit modes so that only highlights are shown (or no annotations at all, depending on preferred behavior). Signatures and text annotations should be hidden outside of edit mode.Affected Files
src/components/dashboard/tools/ViewTool.tsx— filter out signature/text annotationssrc/components/dashboard/tools/SplitTool.tsx— samesrc/components/dashboard/tools/CompressTool.tsx— samesrc/components/dashboard/tools/ConvertTool.tsx— sameImplementation Notes
Each tool passes
annotationsfrom the store to<PDFViewer>. Filtering to onlyhighlighttype before passing would be sufficient: