feat(spa): export PDF via le bouton Imprimer du navigateur#40
Merged
Conversation
Adds a "PDF" button in the SPA header that triggers window.print(), and a print-specific stylesheet that turns the dark interactive matrix into a clean black-on-white linear report: - One phase per page (page-break-before on each .column) - Each technique's full description and sections rendered inline (always present in the DOM, hidden on screen, revealed in print) - Phase colours kept on borders/headers via print-color-adjust - Search box, detail modal and the print button itself hidden in print - A4 page setup with 14mm margins Users can choose "Save as PDF" in the print dialog for a clean offline copy of the matrix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The legacy page-break-before: always was being ignored for columns 2-3 (only column 4 happened to overflow naturally). Adding the modern break-before: page property alongside the legacy one fixes Chromium and Firefox; the padding-top hack is no longer needed since @page margins handle the top spacing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 15, 2026
BartM82
approved these changes
May 15, 2026
Combines the matrix-wide PDF export (this branch) with the campaign report feature merged from main: - Header now stacks the campaign chip, the Clear/Rapport buttons and the new ⎙ PDF button (unified .btn class for visual consistency). - A single @media print block carries both stylesheets: the default rules render the full matrix in print mode, and the body.printing-report-scoped rules take over when the user prints from the campaign report modal. Tactic/technique checkboxes are hidden in print. - .technique-details (full description + sections injected per technique) stays hidden on screen and is revealed by the matrix print rule. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Ajoute un export PDF "propre" au SPA sans dependance externe : un bouton dans le header declenche
window.print(), et un bloc@media printtransforme la matrice interactive sombre en un rapport noir-sur-blanc lineaire.Comportement
window.print()-> dialog navigateur "Enregistrer en PDF"print-color-adjustTest plan
python -m http.server -d docs 8000puis ouvrir le SPAGenerated with Claude Code