Skip to content

feat(demo): add "Hace constar" demo template and document type#188

Merged
erseco merged 1 commit into
mainfrom
feat/hace-constar-demo-template
Jun 11, 2026
Merged

feat(demo): add "Hace constar" demo template and document type#188
erseco merged 1 commit into
mainfrom
feat/hace-constar-demo-template

Conversation

@erseco

@erseco erseco commented Jun 11, 2026

Copy link
Copy Markdown
Member

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 campos firmante, cargo (select), tratamiento (select), nombre_completo, dni, participaciones (html) y lugar_firma (select).
  • includes/class-documentate-demo-data.php:
    • Importa el fixture en ensure_default_media().
    • Registra el tipo de documento hace-constar («Hace constar») en get_doc_type_definitions() (el esquema se autoextrae con SchemaExtractor, igual que el resto de plantillas).
    • Crea un documento demo a medida (get_hace_constar_demo()) y lo conecta en maybe_seed_demo_documents() (incluido en exclude_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 issues
  • make test / make check-plugin: no ejecutables en local (wp-env está en runtime Playground sobre Node 26, que no soporta wp-env run). Se delega su ejecución a CI en runtime Docker.

Notas

  • participaciones se sembró con tipo rich (igual que el campo html de modelo-informe); los campos select usan valores exactos definidos en la plantilla.

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

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@erseco erseco merged commit e2b92a5 into main Jun 11, 2026
7 checks passed
@erseco erseco deleted the feat/hace-constar-demo-template branch June 11, 2026 14:29
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