Continuation of #104
From comments: #104 (comment)
Done
teal.modules.general
teal
teal.reporter
- Added
report_document() and edit_report_document() for the new ReportDocument S3 class
- Extended
Previewer and Reporter to support ReportDocument
- Deleted private
Rendered class
- Refactored:
report_render_and_compress
report_render
- Added load report button to previewer buttons
🔜 TODOs
teal
teal.reporter
Module Packages
- Rewrite report cards based on the new design in:
Future Plans
- Expose
Show R Code as a button next to Add to Report button
- This will require the module to return
teal_data/qenv
- This will require
srv_teal_module to depend on whether module returned teal_data/qenv to show the button
- This will allow to modify the
teal_data/qenv returned by the module, so that Show R Code can be also customized or nullified
Bugs finding while testing:
Continuation of #104
From comments: #104 (comment)
Done
teal.modules.general👉 Redesign of
teal.reporterCards teal.modules.general#862👉 Improve the Reproducibility Mechanisms and Code Display in Report Output teal.reporter#280
teal.code::eval_codeandteal.code::get_codeto support code labelling👉 introduce label to
eval_code,withinandget_codeteal.code#248tealreporteras aninitparameter to allow global disabling👉 [Feature Request]: Globally disable reporter feature teal#871
reporter$set_template()for setting custom templates when users add cards👉 [Feature Request]: User-defined templates for reports teal.reporter#271
modify_teal_module_output()so devs can modify or disable report cards👉 [Feature Request]: Allow app dev to supply card function. teal.modules.general#736
👉 Also allows disabling reporter on a per-module basis
👉 optional reporter in the independent teal modules teal#678
add_document_button_server()with a standalone "+" button (no more old buttons in modules)👉 https://github.com/insightsengineering/coredev-tasks/issues/545
👉 Redesign of
teal.reporterCards teal#1499 (comment)teal.reporterreport_document()andedit_report_document()for the newReportDocumentS3 classPreviewerandReporterto supportReportDocumentRenderedclassreport_render_and_compressreport_render🔜 TODOs
tealmodify_teal_module_output()teal#1523 - Documentation (13 hours)modify_teal_module_output()modify_teal_module_outputand export them teal#1521 - Wrappers (13 hours)modify_teal_module_output()(e.g.disable_teal_module_report_card)report_cardbody👉 Redesign of
teal.reporterCards teal.modules.general#862 (comment)teal.reporterDo not allow to create cards with the name that already is used (we aim not to allow user to input the same name, card name is the same with card title, UI needs to be updated to handle this assertion as well in the modal when we add the card) 5 hours
Write a vignette covering new features (explain the new card object (ReportDocument), tutorial, and how they can be extended in teal, etc) - 8 hours
Soft Deprecate old methods (possibly just 1 parent method, ContentBlock method. we may need to create an initialization method on the parent class and put the deprecation warning there, make sure to test) - 3 hours
Fix failing tests (R CMD check fails: unit test, examples, package metadata, a bit of everywhere) - 13 hours
download_report_button_srvandreporter_previewer_srvteal.reporter#317Check for code reuse opportunities between
download_report_button_srvandreporter_previewer_srv(8 hours)👉 Redesign of
teal.reporterCards teal.reporter#307 (comment)moving card edit/delete buttons somewhere else (UI to find a better place for the buttons) - 5 hours
allow to edit card title (make sure that the card name still unique, ) - 8 hours
👉 Edit Functionality for the Report Previewer module teal.reporter#312 (comment)
c.teal_cardshould preservemetadatateal.reporter#339c.teal_reportmethod teal.reporter#340Module Packages
Future Plans
Show R Codeas a button next toAdd to Reportbuttonteal_data/qenvsrv_teal_moduleto depend on whether module returnedteal_data/qenvto show the buttonteal_data/qenvreturned by the module, so thatShow R Codecan be also customized or nullifiedBugs finding while testing:
c()teal.reporter#329