fix: target literal financial diagnostics and document V09 QA coverage

This commit is contained in:
2026-11-21 21:40:56 +02:00
parent b20feeb72e
commit 77f621b48d
34 changed files with 924 additions and 8 deletions
@@ -106,8 +106,11 @@ export default function PortalCorrections() {
({ label }) =>
label && hints.some((h) => fieldLabelMatches(label, h)),
);
// Restrict explicit product/parcel diagnostics to the matching real group, if present.
const index = /produto\s+(\d+)|parcela\s+(\d+)/i.exec(message);
// Restrict explicit product/parcel/milestone/personnel diagnostics to the matching real group, if present.
const index =
/(?:produto|parcela|marco|função|necessidade)\s+(\d+)/i.exec(
message,
);
const indexed = index
? matches.filter(({ control }) => {
const group = control.closest(
@@ -118,7 +121,7 @@ export default function PortalCorrections() {
group?.querySelector('legend')?.textContent ||
'';
return new RegExp(
`(?:produto|parcela)\\s+${index[1] || index[2]}\\b`,
`(?:produto|parcela|marco|função|necessidade)\\s+${index[1]}\\b`,
'i',
).test(name);
})