Skip to content

Past Test Interactions GUI#18

Open
uh-oh-monteiro wants to merge 2 commits intohalter-modsfrom
feat/access-past-reports
Open

Past Test Interactions GUI#18
uh-oh-monteiro wants to merge 2 commits intohalter-modsfrom
feat/access-past-reports

Conversation

@uh-oh-monteiro
Copy link

Summary

  • Add CSV export for history items: users can multi-select completed test runs and download a CSV containing all measurements, DUT IDs, timestamps, and git versions
  • Fix HistoryListHandler JSON filename regex to correctly parse DUT IDs containing hyphens (e.g. test-SOME-DUT-PASS-1234.json)
  • Replace expand/collapse toggle with progressive "Show 10 more" / "Collapse" pagination

Details

Backend (station_server.py):

  • New HistoryExportHandler at POST /history/export — accepts file_names and identifiers, reads JSON reports, flattens measurements from all phases, and returns a CSV
  • CSV columns: dut_id, start_time_millis, git_version, then all measurement names in encounter order
  • Fix JSON filename regex from (.+)-(STATUS)-(\d+) to ([^-]+)-(.+)-(STATUS)-(\d+) so the test name prefix is captured separately from hyphenated DUT IDs

Frontend (history.component., station.component.):

  • "Select" button enters export mode (visible only on remote clients with disk-backed history)
  • Checkbox UI with selection count, "Download CSV" triggers a blob download via the new endpoint
  • Left panel dims with pointer-events: none during export mode to prevent navigation while selecting
  • HistoryItem model gains a selected property for tracking export selections

How to test the changes

  • Open station web GUI from a remote client, verify "Select" button appears in history header
  • Enter export mode, select multiple items, click "Download CSV" — verify file downloads with correct filename pattern {test_name}-{station_id}-{millis}.csv
  • Open CSV and verify columns: dut_id, start_time_millis, git_version, followed by measurement columns with correct values
  • Verify items with hyphenated DUT IDs display correctly in history list
  • Verify "Show 10 more" / "Collapse" pagination works
  • Verify "Exit" clears selections and returns to normal mode

uh-oh-monteiro and others added 2 commits February 16, 2026 21:42
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 22059871454

Details

  • 0 of 93 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.7%) to 60.241%

Changes Missing Coverage Covered Lines Changed/Added Lines %
openhtf/output/servers/station_server.py 0 93 0.0%
Files with Coverage Reduction New Missed Lines %
openhtf/output/servers/station_server.py 1 0.0%
Totals Coverage Status
Change from base Build 21234852785: -0.7%
Covered Lines: 4691
Relevant Lines: 7787

💛 - Coveralls

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments