This commit is contained in:
2020-08-24 17:27:50 +00:00
parent 424e792329
commit 0e5869783e

View File

@@ -3,6 +3,11 @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
REPORTING
Useful links:
https://handlebarsjs.com/
Report templates pre-designed and open source: https://github.com/wildbit/postmark-templates
Assume headless chrome first for rendering, if it suffices then don't bother with other renderers unless it becomes necessary.
it's the most modern and probably supported long term way of doing the rendering and also easiest to grok for users since they develop in chrome should look the same or closest
@@ -14,6 +19,12 @@ Assume headless chrome first for rendering, if it suffices then don't bother wit
Design a simple report with static json data that exercises the template engine and javascript functions both shared and unique to the report
Excercise both handlebars and custom javascript and shared javascript
also css needs to be in there as well, just working, not necessarily correct or beautiful, just make sure it can work
Process:
handlebars compiles template
handlebars runs compiled template against data and generates HTML
Open HTML generated in headless and pdf it
return pdf
TODO: BASIC CAN REPORT OFF DATA WITH TEMPLATE ENGINE WORKING TESTS
@@ -186,8 +197,10 @@ HTML -> PDF
LINKS:
https://github.com/hardkoded/puppeteer-sharp
https://github.com/puppeteer/puppeteer
https://stackoverflow.com/search?q=puppeteer-sharp
https://stackoverflow.com/questions/62042078/puppeteer-sharp-for-server-side-html-to-pdf-conversions
https://www.singlestoneconsulting.com/blog/how-to-generate-server-side-pdf-reports-puppeteer-d3-handlebars/
https://github.com/hardkoded/puppeteer-sharp/issues/1510 - shows being used by someone other than jsreport which buries all the details in endless libs
WeasyPrint
@@ -318,7 +331,7 @@ Research procedure:
TODO: Report templates pre-designed and open source: https://github.com/wildbit/postmark-templates
@@ -367,6 +380,9 @@ todo: REPORTING wiki in datalist?
- shows in grid as basically a bool like has wiki or not but doesn't show any actual wiki?
- this is only to feed report, no other purpose to it.
Report templates pre-designed and open source: https://github.com/wildbit/postmark-templates
todo: Report editor for creating new report accessed from the report any **existing** reports preview form if have the rights.
- or maybe from the report selector dialog box if they have the rights, although would that fuck up navigation process?
- This seems better because, what if they can't preview a report for some reason, then they can never fix it or make a new one?
@@ -388,6 +404,8 @@ todo: DASHBOARD
https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/2024
https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1974
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@ ROADMAP STAGE 5 - FINALIZE ALL NON BIZ OBJECT SPECIFIC FUNCTIONALITY
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@