feat(demo): add "Hace constar" demo template and document type#188
Merged
Conversation
Add the haceconstar.odt fixture and register it as the "Hace constar" demo document type, alongside a tailored demo document (participation certificate) matching the existing seeded templates.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Adds the Hace constar participation certificate as a bundled demo template, following the existing seeded-template pattern.
Cambios
fixtures/haceconstar.odt— nueva plantilla OpenTBS «Hace constar» (certificado de participación) con camposfirmante,cargo(select),tratamiento(select),nombre_completo,dni,participaciones(html) ylugar_firma(select).includes/class-documentate-demo-data.php:ensure_default_media().hace-constar(«Hace constar») enget_doc_type_definitions()(el esquema se autoextrae conSchemaExtractor, igual que el resto de plantillas).get_hace_constar_demo()) y lo conecta enmaybe_seed_demo_documents()(incluido enexclude_ids).El nuevo tipo aparece como una plantilla de prueba más al sembrar los datos demo.
Validación
php -l✓make lint(mago) ✓ — sin issuesmake test/make check-plugin: no ejecutables en local (wp-env está en runtime Playground sobre Node 26, que no soportawp-env run). Se delega su ejecución a CI en runtime Docker.Notas
participacionesse sembró con tiporich(igual que el campohtmldemodelo-informe); los camposselectusan valores exactos definidos en la plantilla.