Skip to content

Inbox: offer code review to people who already use the Inbox - #3960

Merged
backnotprop merged 4 commits into
mainfrom
feat/code-review-offer-on
Nov 24, 2026
Merged

backnotprop merged 4 commits into
mainfrom
feat/code-review-offer-on

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Turns on the one-time "A new way to review" offer, with the four lines and icons the owner approved on 2026-11-23 (record: .product/approved/inbox-code-review-offer/, not in this repo). Only the offer: no --review, no welcome dialog, no page, no change to what agents are told.

What a person sees

  • Title "A new way to review", the existing storm picture, then four lines, each with an 18 px icon at stroke 1.5:
    • Filter PRs by your own risk rules (three risk bars at Medium, drawn)
    • A review curator works with you on everything you ship (a stack with the front item checked, drawn)
    • A guided review walks you through each change (the existing map)
    • Big pictures of what changed and why (lucide workflow at stroke 1.5)
  • Not now, Turn on code review, and "You can change this in Settings." Unchanged.
  • Main's third line ("See each change as a Shape, and where it lands in your System") is gone.

Who sees it (unchanged rules, CODE_REVIEW_OFFER_SHOWN now true)

  • Release builds only, while config.json inboxCodeReview is unset. Someone who turned Code review on or off in Settings never sees it.
  • Once per computer (inboxReveals.code_review.shownAt). A linked computer has its own config, so it can offer once there too.
  • First in the line of one-time dialogs, no tenure: it opens once the tour's screens are gone and the page is clear. Nothing else opens within the line's 40-minute gap after it; Not now (also Escape, a click outside) makes the next offer wait 3 days.
  • A fresh install also sees it on day 0, after the tour (the existing rule of the slot). The agent note then waits for a later load.

Agent-facing text

None changes. Showing the offer and Not now leave agent text byte-equal (server test). Turn on code review sends the same save as Settings → Capabilities → Code review.

Tests

  • packages/server/inbox-reveal.test.ts: next for an existing user; the claim stamps once, turns nothing on, leaves agent text equal, holds the next offer for the gap; Not now; Turn on; decided users never asked.
  • packages/inbox/codeReviewOffer.test.tsx (DOM): also not opening when Code review is already on, and no Shape or System words.
  • packages/server/inbox-held-switches.test.ts, inbox-snooze-intro.test.ts: updated for the offer now being next.
  • E2E worlds (E2E_GROUP_TIP_SEEN) and the DOM server's release modes start with the offer stamped as shown.
  • New tests/e2e/inbox-code-review-offer.spec.ts: a 0.30.0 binary; pictures of the offer (light, dark, phone) and of the window after Turn on (Reviews in the sidebar).

The one-time "A new way to review" offer is shown again (CODE_REVIEW_OFFER_SHOWN),
with the four lines and icons the owner approved on 2026-11-23. The line naming
Shape and System is gone. E2E worlds and the DOM server's release modes start
with the offer stamped as shown; a new spec proves it on a release build.
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 23, 2026
A fresh install no longer sees Code review's one-time offer. Who gets it is
decided at the first release start that shows it, as the tab icon dialog's is
(inboxUsedBefore): dueAt for someone who used an earlier Inbox, freshAt for a
fresh install, nothing for someone who already decided Code review.
…r-on

# Conflicts:
#	packages/server/inbox-held-switches.test.ts
#	packages/server/inbox-reveal.test.ts
@backnotprop
backnotprop marked this pull request as ready for review November 24, 2026 06:19
@backnotprop
backnotprop merged commit dc30eff into main Nov 24, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant