# Changelog

## Score

- CAI 47 → 50 (+2.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 72 → 71 (-0.6)
- Architecture 80 → 83 (+3.0)
- Maturity 71 → 73 (+1.6)
- Readiness 41 → 47 (+6.5)
- Security 80 → 74 (-6.3)
- Accessibility 34 → 35 (+1.4)
- Performance 78 → 100 (+22.3)

## Resolved (38)

- Boundary-crossing change coupling: String+.swift ↔ EditTextView.swift (Extensions/String+.swift)
- Boundary-crossing change coupling: ViewController.swift ↔ Toast.swift (Controllers/ViewController.swift)
- Duplicated block (10 lines × 2) (Helpers/TextFormatter.swift)
- Duplicated block (12 lines × 2) (Controllers/ViewController+Editor.swift)
- Duplicated block (14 lines × 2) (Controllers/ViewController+Action.swift)
- Duplicated block (17–18 lines × 2) (Views/EditTextView.swift)
- Duplicated block (3–10 lines × 3) (Business/HtmlManager.swift)
- Duplicated block (3–5 lines × 3) (Business/HtmlManager.swift)
- Duplicated block (5 lines × 2) (Helpers/CustomTextStorage.swift)
- Duplicated block (6 lines × 2) (Extensions/MPreviewView+Export.swift)
- Duplicated block (6 lines × 2) (Views/EditTextView.swift)
- Duplicated block (6 lines × 4) (Helpers/TextFormatter.swift)
- Duplicated block (7 lines × 2) (Helpers/CustomTextStorage.swift)
- Duplicated block (7–9 lines × 4) (Helpers/MarkdownRuleHighlighter.swift)
- Duplicated block (8 lines × 2) (Controllers/ViewController+Editor.swift)
- Duplicated block (8 lines × 2) (Helpers/TextFormatter.swift)
- Duplicated block (9–10 lines × 2) (Business/Storage.swift)
- EditTextView.renderPreviewContent (cognitive 31) (Views/EditTextView.swift)
- EditTextView.renderPreviewContent (cyclomatic 17) (Views/EditTextView.swift)
- Hotspot: Business/Markdown.swift (Business/Markdown.swift)
- …and 18 more

## New (87)

- Duplicated block (12 lines × 2) (Controllers/ViewController+Editor.swift)
- Duplicated block (14 lines × 2) (Controllers/ViewController+Action.swift)
- Duplicated block (17–18 lines × 2) (Business/Storage.swift)
- Duplicated block (18–19 lines × 2) (Views/EditTextView.swift)
- Duplicated block (5 lines × 2) (Helpers/CustomTextStorage.swift)
- Duplicated block (6 lines × 2) (Controllers/ViewController+Action.swift)
- Duplicated block (6 lines × 2) (Helpers/ImageLinkParser.swift)
- Duplicated block (6 lines × 4) (Helpers/TextFormatter.swift)
- Duplicated block (7 lines × 2) (Helpers/CustomTextStorage.swift)
- Duplicated block (8 lines × 2) (Helpers/TextFormatter.swift)
- Duplicated block (9 lines × 2) (Business/HtmlManager.swift)
- Duplicated block (9 lines × 2) (Helpers/ClipboardManager.swift)
- EditTextView.renderPreviewContent (cognitive 32) (Views/EditTextView+Preview.swift)
- EditTextView.renderPreviewContent (cyclomatic 18) (Views/EditTextView+Preview.swift)
- Edited copies of one member (3 members, 5+ corresponding lines) (Helpers/HtmlToMarkdown.swift)
- Edited copies of one member (5 members, 19+ corresponding lines) (Extensions/NSFont+.swift)
- Edited copy of a member (10 corresponding lines) (Controllers/ViewController+Editor.swift)
- Edited copy of a member (11 corresponding lines) (Business/Sidebar.swift)
- Edited copy of a member (11 corresponding lines) (Controllers/AppDelegate.swift)
- Edited copy of a member (12 corresponding lines) (Views/PrefsControls.swift)
- …and 67 more

## Changes since last survey

- 221 commits — 114 feature/other, 107 fixes

## By area

- (root) — 29 commits
- docs/incidents.md — 22 commits
- Resources/Localization — 19 commits
- Resources/DownView.bundle — 15 commits
- (repo) — 9 commits
- .github/RELEASE_NOTES.md — 9 commits
- Business/Note.swift — 8 commits
- Packages/MiaoYanCore — 8 commits
- Business/HtmlManager.swift — 7 commits
- Helpers/Theme.swift — 7 commits
- Controllers/ViewController+Editor.swift — 6 commits
- MiaoYanTests/MediaPlaceholderTests.swift — 5 commits
- MiaoYanTests/PreviewPatchTests.swift — 5 commits
- docs/weekly-audit.md — 5 commits
- Business/Storage.swift — 4 commits
- Controllers/ViewController+Action.swift — 4 commits
- Helpers/ClipboardManager.swift — 4 commits
- Helpers/TextFormatter.swift — 4 commits
- Helpers/FileSystemEventManager.swift — 3 commits
- Helpers/NotesTextProcessor.swift — 3 commits

## Notable commits

- fix: fix(alert): read the glass corner only from a view that has one
- fix: fix(attachments): keep parent-folder files a subfolder note reaches with ../
- fix: fix(core): Return leaves a thematic break alone and keeps a CRLF note's line endings
- fix: fix(core): Return on a line with U+2028 no longer deletes the line
- fix: fix(core): damaged UTF-8 needs four good sequences per bad one
- fix: fix(core): indent under an ordered item nests at its content column
- fix: fix(core): toggle task on a quote line keeps the quote
- fix: fix(editor): a note dragged from the list is not imported as a file
- fix: fix(editor): accept photos dragged from Photos, Mail and browsers
- fix: fix(editor): an underscore inside a word no longer marks italic
- fix: fix(editor): clamp the caret the storyboard refill puts back
- fix: fix(editor): command-t flips only the task box
- fix: fix(editor): files dropped from Finder are copied and linked like a paste
- fix: fix(editor): format is one undo step in both windows
- fix: fix(editor): link caret, CRLF list continuation, tab selection length
- fix: fix(editor): markers in inline code no longer colour the prose between
- fix: fix(editor): return after a ticked task starts an unticked one
- fix: fix(export): PDF headings stop printing blurred and heavy in one-weight faces
- fix: fix(export): PDFs draw captions, quotes and videos as the preview does
- fix: fix(export): PNG export waits for lazy and pending diagrams as PDF does
- …and 201 more
