fix(field): repair finding creation and simplify mobile UX
Android CI / RC / Android · lint, tests, debug APK, release compile (push) Successful in 3m17s
DH V2 CI / API · typecheck, tests, build (push) Successful in 35s
DH V2 CI / WEB · typecheck, build (push) Successful in 20s
Production dependency audit / API · production dependencies (push) Successful in 9s
Production dependency audit / WEB · production dependencies (push) Successful in 9s
DH V2 CI / Docker / scripts contract (push) Successful in 1m7s

This commit is contained in:
DH V2
2026-09-14 23:24:41 -03:00
parent 08f164a209
commit 9eef156197
18 changed files with 216 additions and 91 deletions
@@ -4,7 +4,6 @@ import {
IsOptional,
IsString,
IsUUID,
Matches,
Max,
MaxLength,
Min,
@@ -56,8 +55,4 @@ export class CreateFieldFindingDto {
@Max(10)
severity?: number;
@IsOptional()
@Transform(optionalText)
@Matches(/^\d{4}-\d{2}-\d{2}$/)
correctionDueOn?: string | null;
}
@@ -105,7 +105,7 @@ export class FieldFindingsService {
customLegalBasis: dto.customLegalBasis ?? null,
description: dto.description,
severity: dto.severity,
correctionDueOn: dto.correctionDueOn ?? null,
correctionDueOn: null,
};
const finding = await this.findings.create(act.id, payload, principal, request);
return {