Skip to content

Standardize chart save/export filenames between Dashboard and Lite #284

@erikdarlingdata

Description

@erikdarlingdata

Problem

The two apps use completely different approaches for chart right-click save/export filenames:

Dashboard (Dashboard/Helpers/TabHelpers.csSetupChartContextMenu):

  • Custom context menu with descriptive, structured filenames
  • PNG: {chartName}_{yyyy-MM-dd_HH-mm-ss}.png — e.g. UserDB_Read_Throughput_2026-02-25_11-30-00.png
  • CSV: {chartName}_data_{yyyy-MM-dd_HH-mm-ss}.csv
  • Includes chart title and data source info in the menu

Lite (no custom context menu):

  • Falls through to ScottPlot's built-in right-click menu
  • Default filename is just ScottPlot.png — no context, no timestamp, no chart identity

Expected Behavior

Lite should use the same ContextMenuHelper-based pattern as Dashboard, with descriptive filenames that include:

  • A chart-specific name (e.g. cpu_usage, file_io_read_latency)
  • A timestamp (yyyyMMdd_HHmmss — Lite's existing convention)

This would make saved exports identifiable without renaming them, matching Dashboard behavior.

Implementation Notes

  • Lite already has Helpers/ContextMenuHelper.cs for CSV exports — a chart save method could live there
  • Dashboard's SetupChartContextMenu in TabHelpers.cs is the reference implementation
  • Lite uses yyyyMMdd_HHmmss format (e.g. alert_history_20260225_113000.csv) vs Dashboard's yyyy-MM-dd_HH-mm-ss — pick one and use it consistently

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions