Skip to content

prototype(portal): people see new deployments in a bell and shared update history - #549

Closed
vsrikar08 wants to merge 3 commits into
mainfrom
prototype/deployment-updates
Closed

vsrikar08 wants to merge 3 commits into
mainfrom
prototype/deployment-updates

Conversation

@vsrikar08

@vsrikar08 vsrikar08 commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Superseded by #550 after renaming the branch to prototype/record-log/deployment-updates.

What changed

People returning to Patchy need to see what changed since their last visit. This prototype adds a bell for the newest unread deployment and a shared, newest-first update history with expandable notes, plus a draft-note generator that describes an explicit deployment range instead of every merge to main.

The bell shows All caught up after the displayed history is read and always links to all updates. Everyone reads one document from the content store, outside patch-owned storage and the app database; only the read marker is stored per person in their browser. Local simulation exercises the interaction. A reusable GitHub Action and manual preview workflow prepare user-facing notes from commit evidence without publishing them.

Related to #548. This is a progress draft; production deployment and publication are not connected.

Progress

  • Integrate the bell and expandable /updates history into the app shell.
  • Store shared history once and preserve browser read state across tab closures.
  • Add local deployment simulation and a draft-note generator with a preview Action.
  • Configure RELEASE_NOTES_API_KEY and assess live model output; current sample responses were authored locally.
  • Wire generation and publication after the production deployment's final success check, using the previous confirmed deployment and actual deployed commit.
  • Complete production retry deduplication, rollback event handling and recovery when note publication fails.
  • Exercise the complete publication flow locally, including failures, retries and a new deployment arriving while older history is open.

How it was verified

  • pnpm test passes locally
  • Added or updated tests covering this change

The integrated prototype was exercised locally. The earlier focused portal/HTML checks passed (84 tests), and the release-note generator's 15 focused tests pass, covering explicit commit ranges, merges, rollback/maintenance copy, evidence validation and provider failures. Real repository commit ranges were collected and locally authored responses validated; no live AI generation has been tested yet.

pnpm verify passed lint, typechecking, infrastructure synthesis, Postgres concurrency and tier-2 smoke checks. It remains red on formatting in existing untracked files and failures outside this change in the offline, CLI smoke and browser suites, including Linux-only execution checks on macOS. Changed-file formatting and git diff --check pass.

Reproduce the integrated preview in a dedicated worktree with pnpm dev, then pnpm prototype:updates:seed; simulate a new deployment with pnpm prototype:updates:seed --deploy. See packages/portal/prototypes/updates/README.md and docs/OPERATIONS.md#drafting-deployment-notes.

Release impact

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

Adds read-only update pages and optional draft-generation tooling. No migration or existing CLI contract change is required. The production Deploy workflow is unchanged; the preview generator requires its own API-key secret before live use. Read state is browser-local and does not sync across devices.

Model: GPT-6. Harness: Codex.

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling 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:xl Over 1,000 changed lines; review in multiple passes labels Oct 6, 2026
@vsrikar08 vsrikar08 closed this Oct 6, 2026
@vsrikar08
vsrikar08 deleted the prototype/deployment-updates branch October 6, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling 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:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant