You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tell the project lead when a project's health has gone stale #413
area: notificationsInbox, email, Slack delivery and preferencesarea: projectsProjects, milestones and initiativesenhancementA new capability or an improvement to an existing onep2 mediumWorth doing, not urgentpoints: 3Fibonacci estimate: 3schema changeAdds, drops or alters a table. Migrations are applied by hand before the code shipssize: mediumA day or two. One surface, no new modelwork in progressNot ready for review yet
Implementation is open in #485. Keep this issue open until the weekly notification behavior, permission checks, migration and fresh CI have passed review.
Original requirements
Left over from #213 after the feed landed in #372. project.health defaults to no_update and stays wherever the last update left it. Nothing tells anyone that a project has not been updated in three weeks.
What to build
A workspace setting for the staleness window in days, default 14, off when zero.
A cron route under apps/web/src/app/api/cron/ (the existing cron mechanism in vercel.json) that finds active projects whose latest update is older than the window, or which have never had one, and sends the lead one notification per week through the normal notification path, so inbox, email and Slack DM all work.
A stale marker in the projects table and the feed: the health chip gets a muted "N days ago" next to it.
No lead means the notification goes to the workspace admins.
Tests
A project updated yesterday is not stale. A project updated 15 days ago with a 14-day window notifies once and not again for a week. A project with no lead notifies admins.
Plan: the staleness window workspace setting (default 14 days, zero disables), the cron route that finds active projects whose latest update is older than the window (or never updated) and notifies the lead once per week through the normal notification path (admins when there is no lead), and the muted "N days ago" marker next to the health chip in the projects table and the feed. Tests per the three cases in the issue.
Fresh PR up from current main: #531. It covers the four points from the #485 review: the or(...) typing error and the SOURCE_ICONS entry, last-nudge-based dedupe instead of fixed weekly buckets (with boundary and same-tick tests), the cron now publishing the notifyMany realtime actions after commit, and the migration regenerated with drizzle-kit. Validation detail is in the PR body.
area: notificationsInbox, email, Slack delivery and preferencesarea: projectsProjects, milestones and initiativesenhancementA new capability or an improvement to an existing onep2 mediumWorth doing, not urgentpoints: 3Fibonacci estimate: 3schema changeAdds, drops or alters a table. Migrations are applied by hand before the code shipssize: mediumA day or two. One surface, no new modelwork in progressNot ready for review yet
Activity
ayam04 commentedon Sep 22, 2026
Taking this one.
Plan: the staleness window workspace setting (default 14 days, zero disables), the cron route that finds active projects whose latest update is older than the window (or never updated) and notifies the lead once per week through the normal notification path (admins when there is no lead), and the muted "N days ago" marker next to the health chip in the projects table and the feed. Tests per the three cases in the issue.
ayam04 commentedon Oct 11, 2026
Fresh PR up from current main: #531. It covers the four points from the #485 review: the
or(...)typing error and theSOURCE_ICONSentry, last-nudge-based dedupe instead of fixed weekly buckets (with boundary and same-tick tests), the cron now publishing the notifyMany realtime actions after commit, and the migration regenerated with drizzle-kit. Validation detail is in the PR body.feat(projects): nudge the lead when a project has gone stale
feat(projects): nudge the lead when a project has gone stale (#531)