feat(campaign): record unmatched file disposition
This commit is contained in:
@@ -158,6 +158,8 @@ export default function ReviewSendPage({
|
||||
);
|
||||
const validation = asRecord(version?.validation_summary);
|
||||
const build = asRecord(version?.build_summary);
|
||||
const residualFileDisposition = asRecord(build.residual_file_disposition);
|
||||
const residualFileRecipient = asRecord(residualFileDisposition.recipient);
|
||||
const printOutput = asRecord(build.print_output);
|
||||
const printArtifact = asRecord(printOutput.artifact);
|
||||
const summary = liveSummary ?? data.summary;
|
||||
@@ -1490,6 +1492,18 @@ export default function ReviewSendPage({
|
||||
{hasBuild && <BuiltMessageReviewProgress progress={buildReviewProgress} />}
|
||||
{hasBuild && <BuiltMessageWorkflowGuidance progress={buildReviewProgress} buildWarnings={buildWarnings} />}
|
||||
<p className="muted">i18n:govoplan-campaign.building_freezes_the_current_recipients_rendered.273a8170</p>
|
||||
{hasBuild && Object.keys(residualFileDisposition).length > 0 && (
|
||||
<div className="review-flow-data-section" data-residual-file-policy>
|
||||
<h3>i18n:govoplan-campaign.unassigned_file_policy</h3>
|
||||
<DescriptionList variant="inline">
|
||||
<div><dt>i18n:govoplan-campaign.action.97c89a4d</dt><dd>{humanize(String(residualFileDisposition.action ?? "review"))}</dd></div>
|
||||
<div><dt>i18n:govoplan-campaign.validation_policy.57dcc756</dt><dd>{humanize(String(residualFileDisposition.validation_behavior ?? "warn"))}</dd></div>
|
||||
<div><dt>i18n:govoplan-campaign.unassigned_files_detected</dt><dd>{String(residualFileDisposition.residual_file_count ?? 0)}</dd></div>
|
||||
<div><dt>i18n:govoplan-campaign.watched_sources</dt><dd>{String(residualFileDisposition.watched_source_count ?? 0)}</dd></div>
|
||||
{residualFileRecipient.email ? <div><dt>i18n:govoplan-campaign.recipient.90343260</dt><dd>{String(residualFileRecipient.email)}</dd></div> : null}
|
||||
</DescriptionList>
|
||||
</div>
|
||||
)}
|
||||
{getText(printOutput, "render_id") && (
|
||||
<div className="review-flow-data-section">
|
||||
<div className="page-heading split">
|
||||
|
||||
@@ -2,6 +2,9 @@ import type { PlatformTranslations } from "@govoplan/core-webui";
|
||||
|
||||
export const generatedTranslations: PlatformTranslations = {
|
||||
"en": {
|
||||
"i18n:govoplan-campaign.unassigned_file_policy": "Unassigned file policy",
|
||||
"i18n:govoplan-campaign.unassigned_files_detected": "Unassigned files detected",
|
||||
"i18n:govoplan-campaign.watched_sources": "Watched sources",
|
||||
"i18n:govoplan-campaign.activate_all_value0.7e911e3e": "Activate all ({value0})",
|
||||
"i18n:govoplan-campaign.deactivate_all_value0.87e5d46f": "Deactivate all ({value0})",
|
||||
"i18n:govoplan-campaign.activate_all_recipients.6be687f0": "Activate all recipients",
|
||||
@@ -1343,6 +1346,9 @@ export const generatedTranslations: PlatformTranslations = {
|
||||
"i18n:govoplan-campaign.zipcrypto.03bf7fb4": "ZipCrypto"
|
||||
},
|
||||
"de": {
|
||||
"i18n:govoplan-campaign.unassigned_file_policy": "Richtlinie für nicht zugeordnete Dateien",
|
||||
"i18n:govoplan-campaign.unassigned_files_detected": "Erkannte nicht zugeordnete Dateien",
|
||||
"i18n:govoplan-campaign.watched_sources": "Überwachte Quellen",
|
||||
"i18n:govoplan-campaign.activate_all_value0.7e911e3e": "Alle aktivieren ({value0})",
|
||||
"i18n:govoplan-campaign.deactivate_all_value0.87e5d46f": "Alle deaktivieren ({value0})",
|
||||
"i18n:govoplan-campaign.activate_all_recipients.6be687f0": "Alle Empfänger aktivieren",
|
||||
|
||||
Reference in New Issue
Block a user