Skip to content

refactor: the web stops using the old Paper sync, share page and removed reads (#1955) - #1956

Merged
quanvu309 merged 21 commits into
mainfrom
refactor/1955-web-drops-old-paper-paths
Nov 25, 2026
Merged

quanvu309 merged 21 commits into
mainfrom
refactor/1955-web-drops-old-paper-paths

Conversation

@quanvu309

Copy link
Copy Markdown
Collaborator

Closes #1955

Part A of #1954 (one stored Paper format).

Summary

The web no longer carries code that only served the old block Paper format:

  • The old block Paper sync (paper-sync.ts, its journal and local durability tests) is gone. The rich sync is the only sync left. The sync status words moved to apps/web/src/lib/paper-sync-status.ts.
  • The public share page (/share/$token) and its route are gone.
  • The page count, shared Paper and keyword gap reads are no longer called from the web.
  • The CV photo uploader in the old CV template is gone. The photo still displays.
  • Web tests that drove the deleted paths are deleted, and fixtures now build rich Papers.

The API, the contract and the Paper CRDT package are unchanged. Part B removes the matching commands and makes the API rich-only, and Part C prunes the CRDT package and the domain.

Evidence

  • npx tsc --noEmit -p apps/web: 0 errors.
  • npx vitest run in apps/web: 304 files passed, 1 skipped. Under full parallel load, 4 files failed: focus-safe-region, app-shell.search-modal, rich-document-menu and rich-text-formatting. Rerun alone, all 4 pass (48 of 48 tests). This change touches only an import path in two of the components under them (rich-document-menu.tsx and rich-page.tsx now import the sync status from paper-sync-status.ts). See Findings.
  • pnpm exec ts-packwerk check: 0 new violations.
  • node --test scripts/*.test.mjs packages/guards/*.test.mjs: 1045 of 1048 passed on the first run. The two failures were the stale packs page and the unused PaperPages type; both are fixed, and those two files now pass (9 of 9). The branch judge (protected-facts.mjs branchVerdict against origin/main) reports 0 refusals after 19 recorded retirements in scripts/retired/1955.json.

Merge Danger

Door: two-way. A revert restores the web paths; the API still serves them until Part B.

Blast Radius: the web only. Every removed path served the old block Paper format, which the editor already refuses to open (#1953). An old public share link now shows the app's not-found page instead of a read-only Paper. All data is test data.

Retired checks: scripts/retired/1955.json records the 19 test files, guards and ledger rows that drove the deleted web paths.

Findings

  • Four web test files (named above) fail under full parallel load and pass alone. Possible guard: a test-timing budget that reruns flaky files once and records them.

Closes #1955

Retired 107 checks without self-serve replacement proof: apps/web/src/features/paper/cv-photo.isolated.test.tsx (no replacement test); apps/web/src/features/paper/paper-api.test.ts (no replacement test); apps/web/src/features/paper/paper-fixtures.test.ts (no replacement test); apps/web/src/features/paper/paper-print-callers.isolated.test.tsx (no replacement test); apps/web/src/features/paper/paper-share.isolated.test.tsx (no replacement test); apps/web/src/lib/contract-client.test.tsx (no replacement test); apps/web/src/lib/paper-local-replay.isolated.test.ts (no replacement test); apps/web/src/lib/paper-qualification.test.ts (no replacement test); apps/web/src/lib/paper-sync-forget.test.ts (no replacement test); apps/web/src/lib/paper-sync-journal.test.ts (no replacement test); apps/web/src/lib/paper-sync-native.test.ts (no replacement test); apps/web/src/lib/paper-sync-stuck.isolated.test.ts (no replacement test); apps/web/src/lib/paper-sync-tabs.isolated.test.tsx (no replacement test); apps/web/src/lib/paper-sync.test.ts (no replacement test); scripts/guard-ledger/paper-local-commit.json (no replacement test); scripts/guard-ledger/paper-local-durable.json (no replacement test); scripts/guard-ledger/paper-local-journal.json (no replacement test); scripts/paper-local-durable.test.mjs (no replacement test); scripts/paper-local-journal.test.mjs (no replacement test)

@quanvu309
quanvu309 enabled auto-merge (squash) November 25, 2026 15:12
@quanvu309
quanvu309 merged commit 1653376 into main Nov 25, 2026
20 checks passed
@quanvu309
quanvu309 deleted the refactor/1955-web-drops-old-paper-paths branch November 25, 2026 15:17
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.

refactor: the web stops using the old Paper sync, share page and removed reads

1 participant