hint messages update

This commit is contained in:
2026-04-02 18:15:10 -04:00
parent e4ac7e248c
commit ae47f66ef5
5 changed files with 22 additions and 16 deletions

View File

@@ -137,15 +137,18 @@ export default function Chat() {
}).catch(() => {});
}, [features.loginType, features.inGuardiansGroup]);
// Close help — open deferred add-child popup if pending
// Close help — open deferred add-child popup if pending, or settings for first-time default admin
const handleHelpClose = useCallback(() => {
if (addChildPending) {
setAddChildPending(false);
setModal('addchild');
} else if (!helpDismissed && user?.is_default_admin && !localStorage.getItem('rosterchirp_admin_setup_shown')) {
localStorage.setItem('rosterchirp_admin_setup_shown', '1');
setModal('settings');
} else {
setModal(null);
}
}, [addChildPending]);
}, [addChildPending, helpDismissed, user]);
// Register / refresh push subscription — FCM for Android/Chrome, Web Push for iOS
useEffect(() => {