Remove podcast checklist backend, calendar events and reminder emails; v2.14.3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
99b19faede
commit
13d0eb6651
12 files changed
+3
-534
No files matched your search
@@ -146,24 +146,6 @@ async function buildLatestEpisode() {
|
||||
}
|
||||
}
|
||||
|
||||
function buildUpcomingEvents() {
|
||||
const today = dayKey(0)
|
||||
const events = (state.calendarEvents ?? [])
|
||||
.filter(ev => ev.date && ev.date >= today && !ev.completed)
|
||||
.map(ev => ({ id: ev.id, kind: 'event', type: ev.type, title: ev.title, date: ev.date, startTime: ev.startTime ?? null }))
|
||||
const episodes = (state.podcastChecklist?.episodes ?? [])
|
||||
.filter(ep => ep.datePublished && ep.datePublished >= today)
|
||||
.map(ep => ({
|
||||
id: `ep-${ep.episodeNumber ?? ep.title}`,
|
||||
kind: 'episode',
|
||||
type: 'episode',
|
||||
title: `${ep.episodeNumber ? `Ep. ${ep.episodeNumber}: ` : ''}${ep.title || 'Untitled'}`,
|
||||
date: ep.datePublished,
|
||||
startTime: null,
|
||||
}))
|
||||
return [...events, ...episodes].sort((a, b) => a.date.localeCompare(b.date)).slice(0, 3)
|
||||
}
|
||||
|
||||
async function buildNuggets() {
|
||||
const { entries } = await loadHistory()
|
||||
const weekAgo = Date.now() - 7 * DAY_MS
|
||||
@@ -243,7 +225,6 @@ export function register(app) {
|
||||
reengagement: buildReengagement(),
|
||||
studyProgress,
|
||||
latestEpisode,
|
||||
upcoming: buildUpcomingEvents(),
|
||||
nuggets: { uploadsThisWeek: nuggets.uploadsThisWeek, latest: nuggets.latest },
|
||||
health,
|
||||
lastBroadcast,
|
||||
|
||||
Reference in new issue
Block a user