feat(reports): attestation kind selector + kind-aware CSV download (B1b)#642
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase B1b wires the Framework Attestation kind (B1a backend, #641) into the
/reportsUI, completing the operator-facing path to the auditor/GRC CSV evidence bundle.host:writeaffordance beside the existing group + framework scope pickers. The generate body includeskindonly when attestation is chosen; executive remains the implicit default, so an unscoped executive still posts{}.kind.downloadReportFaceaccepts thecsvformat;kindLabelmapsattestationto "Attestation" for the Library type chip.Report.kindwire enum to[executive, attestation]and regenerateserver.gen.go+schema.d.ts(the bulk of theserver.gen.godiff is the re-compressed embedded OpenAPI blob).Spec / tests
frontend-reportsv1.6.0: new C-09 constraint + AC-10 acceptance criterion (source-inspection test). AC-07's assertion updated for the now kind-aware primary control.npx tsc --noEmit,eslint,prettier --check, andvitest run tests/pages/reports.test.ts(10/10) all green;gofmtsilent,go build ./...clean;specter check111 specs structural,specter check --test0 errors.Validation