Repository navigation
Keep Writer collection metadata across ordinary chapter saves - #246
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.
Summary
Benchmark
Chromium 156, AMD Ryzen 9 7940HS, local DEV MemoryReplica with 60 chapters, 300 comment records and 5,000 sources. Each sample used a fresh browser context with the cache disabled. Baseline
21dc7a0includes #243 and #245.Save-to-download samples ranged from 21.00–78.83 s before and 6.91–19.61 s after on the shared host. The original 44.39 s trace spent 2.62 s inside the export handler, including 1.62 s in Pandoc. The CPU profile attributed the preceding stall to collection scans and contract projection after autosave. The change targets that refresh, while Pandoc continues to generate the same document.
All 16 uncompressed DOCX parts matched across all six downloads after normalizing the two core timestamps. The package checks cover every chapter passage, the saved edit, citation, bibliography and cited footnote. Independent Pandoc extraction also matched. The 300 Writer review comments were loaded in the app. Word contains no review-comment entries under the existing export behavior.
Verification
rpnpm run check(catalogue validation, typecheck and tests, including 375 Writer app tests)rpnpm run build:productionrpnpm --filter @mdbase-writer/app run typecheck:perfrpnpm --filter @mdbase-writer/app run test:perf-fixturegit diff --checkandnode --checkfor the benchmark script. The repository has no standalone lint script.