feat: Update CLAUDE.md files, add coolify skill
Some checks failed
CI/CD Pipeline / backend (push) Failing after 2m19s
CI/CD Pipeline / frontend (push) Successful in 5m29s
CI/CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-03-16 08:35:53 +01:00
parent 37a907e087
commit ea41b1edec
6 changed files with 77 additions and 5 deletions

View File

@@ -97,6 +97,8 @@ formElementSections:
1. **Never add SQL migrations** - They will be handled by the user
2. **Use mapper classes** - All DTO ↔ Entity conversions must happen in dedicated mapper classes (never in services/controllers)
- **CRITICAL: Entity + Mapper must be updated together** — When a new field is added to an OpenAPI DTO, you MUST update BOTH the entity class AND the mapper. A field present in the DTO but absent from the entity will silently return `null` from the API with no compile error. New entity fields that are persisted require a SQL migration (the user handles this).
- For JSON-typed fields (e.g. `GroupCondition`), use `@JdbcTypeCode(SqlTypes.JSON)` + `@Column(columnDefinition = "jsonb")`, same as `FormElement.visibilityConditions`.
3. **PDF Export Validation** - After changes to form elements, visibility, or spawning:
- Test both HTML and PDF export for real form instances
- Verify all element types render correctly