Repository navigation
refactor: the web stops using the old Paper sync, share page and removed reads (#1955) - #1956
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
paper-sync.ts, its journal and local durability tests) is gone. The rich sync is the only sync left. The sync status words moved toapps/web/src/lib/paper-sync-status.ts./share/$token) and its route are gone.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 runinapps/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.tsxandrich-page.tsxnow import the sync status frompaper-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 unusedPaperPagestype; both are fixed, and those two files now pass (9 of 9). The branch judge (protected-facts.mjsbranchVerdictagainstorigin/main) reports 0 refusals after 19 recorded retirements inscripts/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.jsonrecords the 19 test files, guards and ledger rows that drove the deleted web paths.Findings
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)