Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor HtmlToPdfConverter and update ReportSheetCache #192

Merged
merged 2 commits into from
Sep 29, 2024

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Sep 29, 2024

  • Move HtmlToPdfConverter to TournamentManager namespace
  • Add detailed logging and error handling in HtmlToPdfConverter
  • Add BrowserKind to set the kind of browser to use
  • Add ability to create PDF from html content or a file
  • Introduce DisplayMatchDate flag in ReportSheetCache
  • Modify IsOutdated to check DisplayMatchDate flag
  • Update Match constructor to include IServiceProvider
  • Update ReportSheet action to use _serviceProvider for ReportSheetCache
  • Updated ReportSheet.cshtml to conditionally display match date
  • Add html {-webkit-print-color-adjust: exact;} CSS to ReportSheet.cshtml (enables colored output for PDF)
  • Moved PuppeteerSharp package reference to TournamentManager.csproj
  • Added localization for English and German

* Move HtmlToPdfConverter to TournamentManager namespace
* Add detailed logging and error handling in HtmlToPdfConverter
* Add BrowserKind to set the kind of browser to use
* Add ability to create PDF from html content or a file
* Introduce DisplayMatchDate flag in ReportSheetCache
* Modify IsOutdated to check DisplayMatchDate flag
* Update Match constructor to include IServiceProvider
* Update ReportSheet action to use _serviceProvider for ReportSheetCache
* Updated ReportSheet.cshtml to conditionally display match date
* Add html {-webkit-print-color-adjust: exact; } CSS to ReportSheet.cshtml (enables colored output for PDF)
* Moved PuppeteerSharp package reference to TournamentManager.csproj
* Added localization for English and German
Copy link

sonarcloud bot commented Sep 29, 2024

@axunonb axunonb merged commit 149995e into main Sep 29, 2024
4 checks passed
@axunonb axunonb deleted the pr/html-to-pdf-converter branch September 29, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant