refactor(viewer): consolidate rendering and harden uploads

This commit is contained in:
Mikhail Chusavitin
2026-09-01 12:59:18 +03:00
parent ba751c861d
commit be68069a51
9 changed files with 214 additions and 276 deletions
+10 -19
View File
@@ -13,14 +13,13 @@ type pageData struct {
}
type sectionView struct {
ID string
Title string
Kind string
Rows []fieldRow
Columns []string
Items []tableRow
Groups []tableGroupView
SeverityOptions []severityOption
ID string
Title string
Kind string
Rows []fieldRow
Columns []string
Items []tableRow
Groups []tableGroupView
}
type fieldRow struct {
@@ -29,20 +28,12 @@ type fieldRow struct {
}
type tableRow struct {
Status string
Severity string
Cells map[string]string
RawCells map[string]any
}
type tableGroupView struct {
Title string
Columns []string
Items []tableRow
SeverityOptions []severityOption
}
type severityOption struct {
Value string
Label string
Title string
Columns []string
Items []tableRow
}