feat(web): printable report of a sprint or a release

/p/:key/report/(sprint|release)/🆔 what it is, its totals, the release
notes and its tickets by stage. «Imprimir o guardar en PDF» opens the
browser's dialog; on paper the app's header, tabs, tinted panels and
lights are left out. Linked from Sprints and Releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 10:51:40 +02:00
parent e5f4e6c683
commit 86e313efaa
11 changed files with 492 additions and 30 deletions

View File

@@ -37,6 +37,7 @@ describe('appRoutes', () => {
'epics',
'trash',
'releases',
'report/:kind/:id',
'dashboard',
'analytics',
'settings',

View File

@@ -618,3 +618,34 @@ html.dark-mode .pi-shell {
background-color: var(--ts-surface-raised) !important;
}
}
// Printing a report (/p/:key/report/…): the report alone, on white paper.
@media print {
body:has(ts-report-page) {
background: #fff !important;
color: #000;
.ts-header,
.ts-project-header,
.ts-tabs,
.ts-main::before,
.ts-main::after {
display: none !important;
}
.ts-main {
padding: 0;
}
// No tinted panels or soft lights on paper.
.ts-panel {
background: none !important;
box-shadow: none !important;
&::before,
&::after {
display: none !important;
}
}
}
}