Files
chart/viewer/model.go
T
mchusandClaude Sonnet 4.6 52c372ce90 feat(viewer): add PrintMode for browser print/PDF export
Adds RenderOptions.PrintMode flag. When true:
- view.js (table filters) is not loaded
- window.print() fires on page load
- @media print CSS hides filters, collapses grid to single column,
  adds page-break hints for section cards

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-10 11:57:21 +03:00

41 lines
710 B
Go

package viewer
type pageData struct {
Title string
HasSnapshot bool
PrintMode bool
Error string
NoticeTitle string
NoticeBody string
DownloadArchiveURL string
DownloadArchiveLabel string
Meta []fieldRow
Sections []sectionView
}
type sectionView struct {
ID string
Title string
Kind string
Rows []fieldRow
Columns []string
Items []tableRow
Groups []tableGroupView
}
type fieldRow struct {
Key string
Value string
}
type tableRow struct {
Severity string
Cells map[string]string
}
type tableGroupView struct {
Title string
Columns []string
Items []tableRow
}