feat: introduce valueChangedAt timestamp for license review remarks and add CorrectedItemsPanel component

This commit is contained in:
estifanos
2026-09-07 07:21:35 +00:00
parent 76dbcbc50d
commit 3ec23bb0d9
12 changed files with 469 additions and 16 deletions

View File

@@ -402,6 +402,7 @@ export const mockApplicationDetails: Record<string, any> = Object.fromEntries(
remark: 'Ownership document is blurred — please re-upload a clearer scan.',
isResolved: false,
resolvedAt: null,
valueChangedAt: null,
createdAt: application.submittedAt ?? application.createdAt,
},
]
@@ -417,6 +418,7 @@ export const mockApplicationDetails: Record<string, any> = Object.fromEntries(
remark: 'Ownership document is blurred — please re-upload a clearer scan.',
isResolved: false,
resolvedAt: null,
valueChangedAt: null,
createdAt: application.submittedAt ?? application.createdAt,
},
]

View File

@@ -480,6 +480,15 @@ export interface ApplicationRemark {
remark: string;
isResolved: boolean;
resolvedAt: string | null;
/**
* When the applicant actually changed the value this remark points at.
*
* `resolvedAt` only says the item was ticked off — the portal bulk-resolves
* every remark of the round right before resubmitting, so it proves nothing.
* This is stamped by the section save or document re-upload itself, which
* makes it the only trustworthy answer to "what did they actually correct?".
*/
valueChangedAt: string | null;
createdAt: string;
}