Merge branch 'fix/search-row-facts' into feat/header-facts-and-flags

This commit is contained in:
Tudor committed 2026-10-02 22:51:35 +01:00
commit e344298440
13 files changed
+295 -30

No files matched your search

+9
View File
@@ -922,6 +922,15 @@ export function isSpecialSchool(school: { school_type?: string | null }): boolea
return /\bspecial\b/.test(t) || /pupil referral/.test(t) || /alternative provision/.test(t);
}
/**
* Whether GIAS records a religious character. "None" and "Does not apply" are
* the register's two ways of saying it has none, and neither is a faith.
*/
export function hasReligiousCharacter(value: string | null | undefined): boolean {
const v = value?.trim().toLowerCase() ?? '';
return v !== '' && v !== 'none' && v !== 'does not apply';
}
/**
* The school's combined Reading, Writing & Maths figure, or null when there is
* no real one to show.