Skip to content

Load existing result files into Attachments dropdown on plot open #172

@IanMayo

Description

@IanMayo

Bug Description

When running a tool (e.g., range-bearing), the result file is saved to the assets folder and appears in the Attachments dropdown with a yellow halo. However, if the plot is closed and reopened, the result files are not shown in the Attachments dropdown.

Expected Behavior

When opening a plot, scan the assets/ directory for existing result files and populate the Attachments dropdown.

Current Behavior

  • Tool execution saves result to assets/range-bearing-*.json
  • Result appears in Attachments dropdown during session
  • After closing and reopening plot, Attachments shows empty Results section

Implementation Needed

  1. In openPlot.ts or stacService, scan assets/ folder for result files when loading plot
  2. Filter for result files (e.g., files with debrief:toolId metadata or naming convention)
  3. Pass result files to activityPanelProvider.setResultFiles() or similar
  4. Populate the Attachments dropdown on load

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions