Skip to content

Tell the project lead when a project's health has gone stale #413

Closed

Description

@imshashank

Current status, September 22

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.

Activity

  1. added
    enhancement
    help wanted
    ready
    p2 medium
    area: notifications
    area: projects
    size: medium
    points: 3
    on Sep 6, 2026
  2. ayam04 commented on Sep 22, 2026

    @ayam04
    Contributor

    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.

  3. added
    work in progress
    schema change
    and removed
    help wanted
    ready
    on Sep 22, 2026
  4. ayam04 commented on Oct 11, 2026

    @ayam04
    Contributor

    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.

  5. added a commit that references this issue on Oct 14, 2026
    067f1e6
  6. added a commit that references this issue on Oct 21, 2026
    ad1206e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: notificationsarea: projectsenhancementp2 mediumpoints: 3schema changesize: mediumwork in progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions