feat: give review-level comments a real conceptual home#405
Merged
tomasz-tomczyk merged 1 commit intomainfrom Apr 30, 2026
Merged
feat: give review-level comments a real conceptual home#405tomasz-tomczyk merged 1 commit intomainfrom
tomasz-tomczyk merged 1 commit intomainfrom
Conversation
Replaces the hidden "+ Add" button in the comments panel with a top-of-document "Review conversation" section and a sibling tree-section above FILES in the sidebar. Both surfaces use a typography-driven Linear treatment — no card chrome, no rails — and a shared ghost "Add comment" button that auto-closes when the user starts another comment. Closes #374 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #405 +/- ##
==========================================
- Coverage 67.13% 67.09% -0.04%
==========================================
Files 19 19
Lines 8221 8221
==========================================
- Hits 5519 5516 -3
- Misses 2274 2276 +2
- Partials 428 429 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
12 tasks
tomasz-tomczyk
added a commit
to tomasz-tomczyk/crit-web
that referenced
this pull request
Apr 30, 2026
Ports the Review Conversation feature from crit/ (PR #405) to crit-web/.
Replaces the hidden "+ Add" button in the comments panel with a
top-of-document Review Conversation section and a sibling tree-section
above FILES in the sidebar. Both surfaces use the typography-driven
Linear treatment from crit/ — no card chrome, no rails — and a shared
ghost "Add comment" button that auto-closes when the user starts
another comment form.
Changes:
- New #reviewConversation section above #document-renderer; threads
+ compose/edit form render inline. data-doc-layout="centered" in
single-doc mode, left-anchored in multi-file (git-style) view.
- New #treeConversationSection row above the file tree FILES header,
with a tabular-nums unresolved badge.
- Shift+G opens the inline form (no longer the panel form). Esc
cancels, Ctrl+Enter submits. Editing review comments now happens
inline — the panel cards are read-only mirrors that scroll back to
the inline section and flash via .comment-flash.
- ] / [ comment navigation now picks up inline review-conversation
cards (was scoped to #document-renderer only).
- Auto-close: opening another comment/reply form closes an empty
review form, and vice-versa.
- Section is collapsible, persisted via localStorage
('crit-review-conversation-collapsed') matching other view prefs.
- Removed the .comments-panel-add-btn (and its CSS) — its function
moved to the inline ghost button.
Backend: Comment.scope == "review" was already supported by the
schema and add_comment / edit_comment / delete_comment / resolve /
reply LiveView events — no schema or context changes needed.
Naming differences from crit/:
- --crit-content-width instead of --content-width
- --crit-editor-bg-elevated instead of --crit-editor-bg-hover
- localStorage instead of cookies (matches crit-web's other prefs)
- .comment-flash instead of .comment-card-highlight
Closes the parity gap with crit/ PR
tomasz-tomczyk/crit#405 (closes crit/#374).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
test/test-diff.sh) seed review-level comments in both file-mode and git-mode carry-forward instances; one carry-forward thread is pre-resolved.Closes #374
Review
]/[nav scope,editReply/deleteReplyresponse.okchecks, system-light theme variant for the+icon)Test plan
🤖 Generated with Claude Code