Skip to content

Only show signatures in edit mode #11

@roiguri

Description

@roiguri

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')}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions