10 Render HTML Report
Not the product export. This step builds a page client-side, inside Bruno, from the JSON report โ it is a convenience preview, not the server-rendered audit-trail HTML. For the real self-contained export (ten tabbed sections, live plot map, with section content identical to the PDF's), see Download Interactive HTML Export and Download Audit Trail HTML.
โถStep 10: Render an HTML report (helper visualisation)
A convenience step that turns the JSON report from step 09 into a standalone, self-contained HTML page โ no server, no assets โ rendered in the response Visualize tab, and easy to copy out to save or attach to an email.
It re-fetches the same
GET /regulations/eudr/audit-trail/{{ddsdf_record_id}}/report and, in
its after-response script, builds the HTML from res.body.attributes:
- Scope cards โ commodity, country, plot count, total area, submission status.
- Deforestation assessment cards โ the
summaryrollup. - Plot register table โ one row per
plot_registerentry, with a colour-coded deforestation-alert badge and one column perreport_data_fieldsprojection. Each projection cell shows the resolvedvalueand (in muted text) thematched_path, so theclient_id/harvest_batchcolumns from steps 5โ8 are visible at a glance.
โถOutput
| Where | What |
|---|---|
| Visualize tab | The report renders directly as an HTML visualization (bru.visualize) โ open the response Visualize tab to view it. No filesystem write. |
{{ddsdf_report_html}} | The full HTML string is also stashed on this run variable so later steps (or your own tooling) can reuse it. |
This is purely presentational โ it makes no new API calls beyond the re-fetch and changes no server state. Treat it as a starting point for your own report styling.