Small gaps: pantry flags in the meal plan, birthday and anniversary notifications, download notes and highlights

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-27 10:16:26 -04:00
1 parent 342c8af747
commit b2b772941b
9 files changed
+46 -4

No files matched your search

+7
View File
@@ -79,6 +79,13 @@ async function tick(now = new Date(), force = false) {
}
} catch (e) { console.warn('[push] tasks check failed:', e.message); }
}
if (st.tasks && users.can(u, 'contacts') && st.datesDay !== lt.day && lt.hm >= st.tasksAt) { // birthdays and anniversaries from Contacts, with the gift ideas, with the morning summary
st.datesDay = lt.day; dirty = true;
try {
const todays = require('./contacts').birthdayEvents({ fd: lt.day, td: lt.day }, u.id);
if (todays.length) await send(dir, st, u.id, { title: todays.length === 1 ? todays[0].title : todays.length + ' birthdays and anniversaries today', body: todays.length === 1 ? 'Open Contacts for gift ideas' : todays.map(e => e.title).join(', '), url: '#/contacts/c/' + todays[0].contactId, tag: 'dates:' + lt.day });
} catch (e) { console.warn('[push] dates check failed:', e.message); }
}
if (u.role === 'admin' && checkEvents) { // the Microsoft client secret (for Mail) is about to expire
const ss = mail.secretStatus();
if (ss && ss.days <= 30) {