fix(web): make printed cut instructions legible
Build CutList image / build-and-push (push) Successful in 19s

Keep part numbers and their dividers visible in monochrome print output, and include the selected cutting tool and kerf on the printed report.
This commit is contained in:
aj
2026-08-03 02:18:45 +00:00
parent 25af9e3ba8
commit 5409479e00
5 changed files with 55 additions and 3 deletions
+12
View File
@@ -45,6 +45,18 @@ class JobResultsActionsTests(unittest.TestCase):
self.assertIn("background: transparent !important;", print_styles)
self.assertIn("box-shadow: none !important;", print_styles)
def test_print_report_shows_the_selected_cutting_method_and_kerf(self) -> None:
markup = JOB_EDITOR.read_text()
results_start = markup.index("private RenderFragment RenderResultsTab()")
summary_start = markup.index('<div class="row mb-4 print-summary">', results_start)
material_list_start = markup.index('<!-- Material List:', summary_start)
report_summary = markup[summary_start:material_list_start]
self.assertIn('class="print-cut-method"', report_summary)
self.assertIn("<strong>Cut Method:</strong>", report_summary)
self.assertIn("@job.CuttingTool.Name", report_summary)
self.assertIn("Kerf:", report_summary)
if __name__ == "__main__":
unittest.main()