Skip to content

Add an export report button for completed desktop scans #157

Description

@Muawiya-contact

Goal

Let users export the completed scan report to a JSON file from the desktop app.

This helps users share a report, compare scans, or attach details to a GitHub issue without taking screenshots.

Suggested starting point

Frontend:

app/src/App.jsx

Tauri commands:

app/src-tauri/src/commands.rs

The backend already returns a serializable report:

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Report {
    pub findings: Vec<Finding>,
    pub duplicate_sets: Vec<dedup::DuplicateSet>,
    pub total_reclaimable: u64,
    pub files_scanned: u64,
}

A first version can add an Export report button after a scan completes and write pretty JSON using a save dialog.

Acceptance criteria

  • Export appears only after a completed report exists.
  • Preview/in-progress reports are not exported as final reports.
  • JSON is readable and contains findings, duplicate sets, totals, and files scanned.
  • Export errors show a friendly message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appThe Tauri desktop appbackendThe engine and CLI behind the UIenhancementNew feature or requestfrontendThe desktop app's UI layerhelp wantedExtra attention is neededlevel: intermediateNeeds familiarity with one cratepriority: mediumWorth doing, not urgent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions