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
- In
openPlot.ts or stacService, scan assets/ folder for result files when loading plot
- Filter for result files (e.g., files with
debrief:toolId metadata or naming convention)
- Pass result files to
activityPanelProvider.setResultFiles() or similar
- Populate the Attachments dropdown on load
Related
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
assets/range-bearing-*.jsonImplementation Needed
openPlot.tsorstacService, scanassets/folder for result files when loading plotdebrief:toolIdmetadata or naming convention)activityPanelProvider.setResultFiles()or similarRelated