UI Improvements and TV mode

This commit is contained in:
2026-03-30 17:15:46 -05:00
parent 7eb6160b5a
commit 735db3baf3
8 changed files with 398 additions and 115 deletions
+12
View File
@@ -57,6 +57,18 @@ function personRequiresPinToActivate(?array $person): bool {
return ($person['role'] ?? '') === ROLE_HEAD && !empty($person['pin_hash']);
}
/**
* True when at least one person is recorded as Head of household (setup complete).
*/
function familyHubHasHeadOfHousehold(array $people): bool {
foreach ($people as $p) {
if (($p['role'] ?? '') === ROLE_HEAD) {
return true;
}
}
return false;
}
function assertHoHCanManagePeople(array $people): void {
if (count($people) === 0) {
return;