Skip to content

perf(viewer): compact live post updates - #249

Merged
benvinegar merged 2 commits into
mainfrom
perf/compact-viewer-posts
Aug 11, 2026
Merged

perf(viewer): compact live post updates#249
benvinegar merged 2 commits into
mainfrom
perf/compact-viewer-posts

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Summary

  • add an explicit compact GET /api/posts/:id/viewer representation for live viewer updates
  • replace historical revision payloads with a retained versionCount while preserving current render metadata and native surface data
  • reuse the compact representation for session hydration while leaving canonical and legacy detail endpoints unchanged
  • cover compact payloads, history-retention limits, live create/update requests, and version selection

Validation

  • npm test
  • npm run coverage
  • npm run test:worker
  • npm run typecheck
  • npm run lint
  • npm run format:check
  • npm run security:audit
  • Chromium Playwright suite: 86 passed

The WebKit Playwright project could not launch locally because the host is missing Playwright's WebKit system libraries (libicu74, libxml2, and libflite1).

This PR description was generated by Pi using gpt-5.6-sol

@benvinegar
benvinegar force-pushed the perf/compact-viewer-posts branch from e419df3 to 1f81dfe Compare August 11, 2026 14:44
@benvinegar
benvinegar merged commit 120705e into main Aug 11, 2026
12 checks passed
@benvinegar
benvinegar deleted the perf/compact-viewer-posts branch August 11, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant