Commit 3c55fcf
authored
feat(reports): attestation kind selector + kind-aware CSV download (B1b) (#642)
Wire the Framework Attestation kind (B1a backend) into the Reports UI:
- Header gains a report-kind selector (Executive / Attestation), a
host:write affordance beside the scope pickers. The generate body
sends kind only when attestation is chosen; executive stays the
implicit default.
- The detail header's primary download is now kind-aware: an executive
report offers Download PDF, an attestation report offers Download CSV
(the per-host, per-rule evidence face). JSON (the signed canonical
face) is offered for both. downloadReportFace accepts the csv format.
- kindLabel maps attestation to "Attestation" for the Library type chip.
- Widen the Report.kind wire enum to [executive, attestation] and
regenerate server.gen.go + schema.d.ts.
Spec frontend-reports v1.6.0: C-09 + AC-10 (source-inspection test).
AC-07 assertion updated for the kind-aware primary control.1 parent e632f5e commit 3c55fcf
6 files changed
Lines changed: 456 additions & 360 deletions
File tree
- api
- frontend
- src
- api
- pages/reports
- tests/pages
- internal/server/api
- specs/frontend
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5403 | 5403 | | |
5404 | 5404 | | |
5405 | 5405 | | |
5406 | | - | |
| 5406 | + | |
5407 | 5407 | | |
5408 | 5408 | | |
5409 | 5409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3585 | 3585 | | |
3586 | 3586 | | |
3587 | 3587 | | |
3588 | | - | |
| 3588 | + | |
3589 | 3589 | | |
3590 | 3590 | | |
3591 | 3591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
| |||
172 | 179 | | |
173 | 180 | | |
174 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
175 | 205 | | |
176 | 206 | | |
177 | 207 | | |
| |||
439 | 469 | | |
440 | 470 | | |
441 | 471 | | |
442 | | - | |
| 472 | + | |
443 | 473 | | |
444 | 474 | | |
445 | 475 | | |
| |||
565 | 595 | | |
566 | 596 | | |
567 | 597 | | |
568 | | - | |
| 598 | + | |
569 | 599 | | |
570 | 600 | | |
571 | 601 | | |
572 | 602 | | |
573 | | - | |
| 603 | + | |
574 | 604 | | |
575 | 605 | | |
576 | 606 | | |
| |||
615 | 645 | | |
616 | 646 | | |
617 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
618 | 658 | | |
619 | 659 | | |
620 | 660 | | |
| |||
709 | 749 | | |
710 | 750 | | |
711 | 751 | | |
712 | | - | |
| 752 | + | |
713 | 753 | | |
714 | | - | |
| 754 | + | |
715 | 755 | | |
716 | 756 | | |
717 | 757 | | |
| |||
727 | 767 | | |
728 | 768 | | |
729 | 769 | | |
730 | | - | |
| 770 | + | |
731 | 771 | | |
732 | 772 | | |
733 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
122 | | - | |
123 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
124 | 129 | | |
125 | | - | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
162 | 185 | | |
163 | 186 | | |
164 | 187 | | |
| |||
0 commit comments