Skip to content

Project updates are stored but have nowhere to be read #213

Closed

Description

@imshashank

project_update exists in packages/db/src/schema/work.ts with an author, a health, a body and a timestamp. There is a route at apps/web/src/app/api/projects/[id]/updates/route.ts and it is read in apps/web/src/features/projects/data.ts.

So the feature is built. What it does not have is a reason for anyone to use it.

A project update only works as a habit, and habits need a prompt, a place to read them, and a consequence for not writing one. Orbit has the storage and none of the three.

What to build

A workspace feed of updates. One page showing the most recent update from every project, newest first, with the health and the author. This is the surface a lead opens on a Monday, and it is the reason anyone writes updates in the first place. Right now an update is only visible if you already went to that project, which means updates are written for an audience that has to go looking.

A prompt. A project whose health has not been updated in N days is stale, and somebody should be told. project.health defaults to no_update, which suggests this was the intent. Options are an inbox notification to the project lead, a Slack message, or a marker in the project list. Probably all three, configurable.

Health that means something. project.health and project_update.health are both free text columns. Whatever the allowed values are, they should be a defined set, rendered consistently, filterable, and explained in docs/concepts.md. A health field where one project says "at risk" and another says "At Risk" is not filterable and not chartable.

Updates on the timeline and in analytics. A health change is a data point over time. "This project was green for six weeks and has been amber for three" is a more useful sentence than the current health value on its own. analyticsScopeSchema already supports a project scope.

Digest. A weekly summary of every project's health and update, to Slack or email. This composes with the Slack milestone and with the daily summary that already exists.

Smaller pieces inside this

Any of these is a complete contribution on its own:

  • The workspace feed page
  • Constraining health to a defined set and rendering it consistently
  • The staleness notification
  • The weekly digest

If you want one, say which on this thread.

Files

  • apps/web/src/app/api/projects/[id]/updates/route.ts
  • apps/web/src/features/projects/data.ts
  • packages/core/src/work/project-service.ts
  • packages/db/src/schema/work.ts
  • packages/core/src/notifications/
  • docs/concepts.md

Activity

  1. added this to the Planning parity milestone on Aug 8, 2026
  2. added
    enhancement
    good first issue
    help wanted
    p2 medium
    area: projects
    on Aug 8, 2026
  3. moved this to Backlog in Orbit roadmapon Aug 8, 2026
  4. added
    size: medium
    points: 3
    on Aug 8, 2026
  5. imshashank commented on Aug 15, 2026

    @imshashank
    ContributorAuthor

    One of the four listed pieces landed in #309, and part of a second. Re-scoping rather than closing, since the central complaint still stands.

    Done: updates in analytics. The projects lens reads project_update directly. healthUpdates in packages/core/src/analytics/projects.ts returns the most recent updates for the focused project with health, body, author and timestamp, and projects-lens.tsx renders them as a "Latest project updates" card. The projects table also carries a Health column across every project in scope. So "updates in analytics" from the fourth bullet is covered, and there is now at least one place an update can be read from outside its own project.

    Partly done: health as a defined set. The issue says health is free text. That is true of the storage and false at the boundary:

    • packages/db/src/schema/work.ts still declares health: text('health') on both project and project_update, with no check constraint.
    • PROJECT_HEALTHS in packages/shared/src/constants/project.ts fixes the set to on_track, at_risk, off_track, no_update, and packages/shared/src/validators/project.ts enforces it with z.enum on write.
    • Rendering is now consistent through healthLabels in projects-lens.tsx, and validProjectHealth falls back to no_update on an unrecognised value rather than displaying raw text.

    So the "one project says at risk and another says At Risk" failure cannot happen through the API. What remains from that bullet is the database constraint, which is the thing that would make it true rather than merely enforced, and the docs/concepts.md entry, which does not exist. Grepping the docs for health returns nothing.

    Still open, and still the heart of this issue. Three of the four smaller pieces are untouched:

    • The workspace feed. The analytics lens is not it. It is a reporting surface behind a lens and a focus selection, not the page a lead opens on a Monday to see the latest update from every project in one list. The issue's argument, that updates are written for an audience that has to go looking, is unchanged.
    • The staleness notification. Nothing notifies on a project whose health has not moved. project.health still defaults to no_update.
    • The weekly digest. Not built.

    The "a prompt, a place to read them, and a consequence" framing still holds, with the caveat that there is now a partial answer to the middle one. Anyone picking a single piece should take the workspace feed, since the other two only pay off once there is somewhere for a prompted person to land.

  6. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    The workspace feed landed in #372: /projects?view=feed shows the latest update from every visible project, newest first, with health and author, and docs/concepts.md now defines the four health values.

    Still open from the original list, and each is a complete contribution on its own:

    • the staleness notification for a project whose health has not moved in N days
    • the weekly digest to Slack or email
    • the database check constraint on health, so the defined set is enforced in storage and not only at the API

    Say which one you are taking on this thread before starting.

  7. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    Closing. The feed landed in #372 and the health values are documented. The three leftovers are their own small issues now: #413, #414, #412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: projectsenhancementgood first issuehelp wantedp2 mediumpoints: 3size: medium

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions