Merged PR 2398: amends to appeal policy

Related work items: #23754
This commit is contained in:
Robert Bond
2026-06-18 05:17:10 +00:00
parent 475aa965b4
commit a6941a8a06
9 changed files with 589 additions and 13 deletions
@@ -1,7 +1,20 @@
const EXCLUDED_APPEAL_TYPE_IDS = new Set([
846040012, 846040013, 846040014, 846040020, 846040021, 846040023, 846040024
import { getAppealTypeFamily } from "../appeal-type-policy";
const EXCLUDED_APPEAL_TYPE_FAMILIES = new Set([
"ELECTRICITY_ACT",
"TRANSPORT_WORKS",
"HARBOUR_REVISION_ORDER",
"WAYLEAVE",
"NON_VALIDATION"
]);
const EXCLUDED_APPEAL_TYPE_IDS = new Set([846040020, 846040023]);
export function canShowRepresentationButtonForAppealType(appealType) {
return EXCLUDED_APPEAL_TYPE_IDS.has(Number(appealType)) ? false : true;
const appealTypeFamily = getAppealTypeFamily(appealType);
return EXCLUDED_APPEAL_TYPE_FAMILIES.has(appealTypeFamily) ||
EXCLUDED_APPEAL_TYPE_IDS.has(Number(appealType))
? false
: true;
}