What's Changed
Markdown source and new shortcuts
In files mode, Markdown files now have a Source button that shows the whole file as code, so you can read and comment on the raw Markdown even when there is no diff.
Press a to toggle a file as viewed and o to collapse or expand it, in the review list and in story chapters. Both can be rebound in Settings → Shortcuts.
- feat(web): show a markdown file's source in files mode (#1106) by @jmacek in https://github.com/tomasz-tomczyk/crit/pull/1106 - Thank you!
- feat(web): add shortcuts to toggle viewed (a) and collapse (o) (#1049) by @esnssr in https://github.com/tomasz-tomczyk/crit/pull/1049 - Thank you!
Comments are kept across concurrent writes
- fix: keep crit comment replies when a daemon write is pending (#1060) by @schrek1 in https://github.com/tomasz-tomczyk/crit/pull/1060 - Thank you!
- fix: serialize review saves and hosted comment merges (#1074) by @John-Isr in https://github.com/tomasz-tomczyk/crit/pull/1074 - Thank you!
- fix: keep comments across concurrent review file writes (#1093) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1093
- fix: keep reply resolve state across daemon writes, and release-audit cleanups (#1111) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1111
Security
- fix: sanitize raw HTML in reviewed Markdown documents (#1088) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1088
- fix: package.json & package-lock.json to reduce vulnerabilities (#1089) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1089
- fix(web): stop reviewed markdown from reusing page ids and classes, and release-audit cleanups (#1112) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1112
Scrolling and navigation
- fix(web): scroll straight to a comment ref already on the page (#1095) by @jmacek in https://github.com/tomasz-tomczyk/crit/pull/1095 - Thank you!
- fix(web): a thread that grows in Document view no longer moves the page (#1072) by @schrek1 in https://github.com/tomasz-tomczyk/crit/pull/1072 - Thank you!
- fix(web): let the tree follow the scroll when the found file is off screen (#1062) by @schrek1 in https://github.com/tomasz-tomczyk/crit/pull/1062 - Thank you!
- fix(web): review comment cards in the panel scroll all the way back (#1110) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1110
- fix(web): keep the thread in place when the top edge cuts the file header (#1092) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1092
Fixes
- fix(web): highlight quoted diagram text in the drawn diagram (#1098) by @jmacek in https://github.com/tomasz-tomczyk/crit/pull/1098 - Thank you!
- fix(session): drop binary and ignored files from range reviews (#1108) by @jmacek in https://github.com/tomasz-tomczyk/crit/pull/1108 - Thank you!
- fix(web): match error toast styles to the toast-error class (#1086) by @jmacek in https://github.com/tomasz-tomczyk/crit/pull/1086 - Thank you!
- fix: scope=all re-queries git, and a pinned commit no longer overrides the scope (#1076) by @Jainbaba in https://github.com/tomasz-tomczyk/crit/pull/1076 - Thank you!
- fix: track Story viewed state per hunk (#1073) by @John-Isr in https://github.com/tomasz-tomczyk/crit/pull/1073 - Thank you!
- fix: read git paths verbatim so non-ASCII file names open (#1078) by @Flamintus in https://github.com/tomasz-tomczyk/crit/pull/1078 - Thank you!
Dependencies
- chore(deps): bump mermaid from 12.1.0 to 12.2.0 (#1069) by @dependabot in https://github.com/tomasz-tomczyk/crit/pull/1069
- chore(deps): bump dompurify from 3.4.16 to 3.4.17 (#1070) by @dependabot in https://github.com/tomasz-tomczyk/crit/pull/1070
Internal refactors
- chore: read vendored asset versions from the lockfile (#1090) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1090
- test(e2e): wait for pending diagrams before calling the review pane settled (#1067) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1067
- test: wait for PR head after every push in roundtrip tests (#1068) by @tomasz-tomczyk in https://github.com/tomasz-tomczyk/crit/pull/1068