Skip to content

feat(portal): a bell shows what shipped since your last visit - #555

Merged
allisonmahmood merged 1 commit into
mainfrom
feat/whats-new
Oct 6, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
feat/whats-new

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

What changed

People using Patchy can't find out what we've shipped. Now a bell beside their name shows a dot when something has shipped since they last looked. Clicking it opens a short panel of those changes, and See all changes opens /whats-new, the full changelog grouped by day. Each change is tagged New, Improved or Fixed, and changes new to you are highlighted. The design was picked from these mocks (B1 + 1).

Closes #548

How it's written. Releases are a typed list in packages/core/src/whatsNew.ts that ships with the server. Production lists exactly what it runs, and a rollback shows the older list. When an agent is asked to deploy, it writes the next release first, from the PRs merged since the last one (AGENTS.md › Deploying):

  • It combines or splits PRs into changes a person would notice.
  • It folds unnoticeable work into one "behind the scenes" line per day.
  • It lands the release, then runs the Deploy workflow.

There's no model call in CI, no publisher and no extra secret. The writing rules sit at the top of the data file.

Where each person left off. One column, users.whats_new_seen (migration 9). It rides on the viewer, not on viewer.user, which is the patch runtime's identity. Opening the bell's panel (a ~10-line external script, loaded only while there's a dot) or visiting the page raises it, and it never goes back down. Existing people start at 0, so the seeded history is new to them. New members start caught up. Releases with only behind-the-scenes work don't light the dot.

Hit every surface:

  • Served pages. The bell, panel, rows, tint and rule are shell components in core. The page keeps only layout, and the ui-consistency spec lists the new classes. App pages' CSP gains connect-src 'self'; dev-persona pages also gain script-src 'self', which Clerk pages already had.
  • Migrations. 0009_whats_new_seen in companies, with an upgrade test over a database that already holds people.
  • Vocabulary and product shape. Portal CONTEXT.md gains "What's new" and the bell in "App shell". docs/product.md describes it. OPERATIONS.md › Deploying points to the new AGENTS.md › Deploying steps.
  • Reserved handle. whats-new is now a reserved company handle.
  • Reverse states. The marker is a highlight, not access. The full history stays one click away, so there's nothing to undo.
  • Not applicable: the wire contract, the CLI, the dev loop and company resources.

How it was verified

  • pnpm test passes locally (pnpm check: 1,593 tests). pnpm verify passes.
  • Added or updated tests covering this change:
    • The release list's invariants.
    • The bell's dot, panel and script in the shell.
    • New members starting caught up, and a marker that only rises.
    • The page highlighting and raising the marker.
    • /whats-new/seen refusing other origins and clamping to the newest release.
    • Where the "seen" rule lands, inside a day or between days.
    • The migration on a populated database.
  • Driven in Chromium against pnpm dev. The dot shows, opening the bell clears it with POST /whats-new/seen → 204, and a reload stays clear. There were no console or CSP errors, and the page tints and rules as designed on desktop and mobile.
  • Codex (GPT 6.1 Sol) reviewed it:
    • The deploy-range gap, the same-day rule placement and the page CSS overrides are fixed.
    • Its rolling-deploy note is dismissed. Old hosts insert new members with the default 0 for the few minutes of the first rollout, so someone who signs up then sees one recent fix as new.

Release impact

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Adds one column with a default (whats_new_seen INTEGER NOT NULL DEFAULT 0). Earlier releases ignore it, so a rollback works against the new schema.

Made by Claude Opus 5.5 via Claude Code in T3 Code.

People could not find out what we shipped. The app shell gets a bell beside
the viewer's name: a dot while changes have shipped since they last looked,
a panel listing them, and /whats-new, the full changelog grouped by day with
New, Improved and Fixed tags and unseen changes tinted.

Releases are a typed list in @patchy/core that ships with the server, so
production lists exactly what it runs. The agent that deploys writes the next
release from the PRs merged since the last one (AGENTS.md > Deploying).
Each person's place is one column on users; opening the panel or the page
raises it, and new members start caught up.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions github-actions Bot added area:server Touches the server area area:core Touches the core area area:docs Touches the docs area area:ui Portal and first-party browser pages, shared rendering and styles size:l 501-1,000 changed lines labels Oct 6, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Codex review (GPT 6.1 Sol, high)

Round 1 verdict: not ready. Four findings. Three are fixed in 17c9442 and one is dismissed.

  1. Should-fix, fixed. Every deploy range starts with the previous notes PR (AGENTS.md › Deploying). The previous release's docs(whats-new) PR always merges after its own through, so the next range is never empty. Following the rules would force either an empty release, which the invariant test rejects, or invented noise. Step 1 now leaves that PR out. Step 2 writes no release when everything else is churn, so the next release starts from the same through.
  2. Should-fix, fixed. The seen rule only recognized days seen whole (WhatsNewPages.ts). If someone looked between two releases on the same day, changes they had seen appeared above the rule. render now takes the release list and places the rule where seen changes begin, either before a day or inside one. A focused test covers both placements, plus nothing seen and everything seen.
  3. Should-fix, dismissed. The first rolling deploy starts some new members at 0 (migrations.ts). Old hosts insert members without the new column for the few minutes of the first rollout. Someone who signs up in that window sees the one recent fix as new, which is harmless, and every later insert sets the marker explicitly. Hard-coding a release id into the column default would go stale at the next release.
  4. Nit, fixed. Page CSS overrode shared treatments (row padding, paragraph spacing, title colour). Every treatment now lives in core's What's new block, the page keeps only width and spacing, and the ui-consistency spec lists the classes.

Codex review, round 2

Verdict: ready to merge and deploy. There are no remaining findings. Sol confirmed all three fixes and found no worse outcome behind the rolling-deploy dismissal. It also checked marker semantics, the CSP and the retired-patch notice page, migration wiring, both user column lists, the runtime identity and the documentation mirrors.

pnpm verify passes locally, and all 11 required checks pass on 17c9442.

@allisonmahmood
allisonmahmood merged commit 8697463 into main Oct 6, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the feat/whats-new branch October 6, 2026 19:42
allisonmahmood added a commit that referenced this pull request Oct 6, 2026
…ease (#556)

What's new for this deploy, plus the history since the first production
deploy. The thin entries #555 seeded by hand are rewritten from what
each deploy actually shipped. This is the first run of `AGENTS.md` ›
Deploying: a fresh subagent gathered and wrote these releases, and I
checked them against the PRs.

**Release 4 (this deploy, `4a928f7..8697463`)**
- New: **See what's new in Patchy** (#555)

**Release 3 (2026-10-06, `aed1454..4a928f7`)**
- Fixed: **Creating a company explains a handle it can't use** (#553)

**Release 2 (2026-10-05, `48153dc..aed1454`)**
- Behind the scenes: key moments are recorded, identifying people by id,
never by name or email address (#538, #539, #541)
- Behind the scenes: the patchy command reports its version, command and
coding agent (#540)

**Release 1 (2026-10-05, first production deploy, `48153dc`)**
- Behind the scenes: Patchy Cloud's first release went live

Made by Claude Opus 5.5 via Claude Code in T3 Code.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Touches the core area area:docs Touches the docs area area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:l 501-1,000 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Members see what shipped since their last visit

1 participant