Repository navigation
feat(files): comment on markdown files and tag people - #10614
waleedlatif1 wants to merge 14 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This comment has been minimized.
This comment has been minimized.
Confidence Score: 5/5
[Medium impact] The latest change appears safe to merge; no new blocking issue was found. SummaryAdds passage comments, person mentions, email notifications, and live updates for Markdown files.
Reviews (14) · Last reviewed commit: "fix(files): re-read a stale thread list ..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 61 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
cceb01a to
29e8984
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 63 files
Requires human review: Auto-approval blocked because this review re-detected 4 unresolved issues already reported by Cubic.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 64 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
e566b54 to
1589a5f
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 64 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
1589a5f to
ed7ff8c
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Adds threaded comments anchored to passages of workspace Markdown files, and @-mentions of workspace members in comments and in the document body. - Threads anchor to a quote plus surrounding context, so they survive edits and whole-file rewrites; passages that disappear show as detached - Any member can comment; only authors edit or delete; the opener or an editor resolves - Mentions and replies email the people involved, re-checked against current workspace access and the Files capability - Open viewers refresh through the file's realtime room - New workspace_file_comment_thread and workspace_file_comment tables
- Anchor threads only once the shared document has loaded, so a comment link no longer shows every thread as detached - List people in the document @ menu; track comment mentions by position so two members with one name are never confused - Place the caret synchronously after picking a person - Keep the editor off thread updates: split comment context into actions, state and layout, and sync highlights from a child component - Anchor the comment @ picker to the text box; show Reply once typing - Position the read-only Comment chip with Floating UI - Fix input type inference in comment use cases and the integration fixtures; analytics read the resolved workspace
- Keep threads anchored when a word inside their passage is edited, and scan every repeat of a quote instead of the first 200 - Make the per-file thread cap exact under concurrent creates - Keep the reply box when someone else replies; clear it only after the viewer's own reply - Put the panel's Open/Resolved tab in the URL; a selected thread always shows its own tab, and a linked thread scrolls into view once loaded - Add scroll-edge fades to the comments list - Require a Markdown file for replies; reject whitespace-only quotes - Check recipients' access before capping, so active members still hear - Include mention names in document-mention excerpts - Document the query hooks; hooks take a props object
…rops - The highlight sync brings the selected thread's passage into view, including when a link opens the file on that thread, so the separate scroll-handler wiring is gone - Name the person-mention notifier's props
…or scroller, best-effort mention emails
…refresh outside the editor room
…el avatars, keep comment underline
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
…the composer while sending, document comment use cases
…sh draft for each passage
…p a closed panel closed after posting, open linked threads on load errors
… them, drop links to deleted threads
f266cac to
4e495e9
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 66 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 66 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
Summary
Mod-Alt-M, or a floating Comment chip for read-only viewers)workspace_file_comment_thread/workspace_file_commenttables, never in the.mditself, so agent rewrites don't lose them[Name](sim:user/<id>)link)?comment=<id>links open the thread[label](sim:<kind>/<id>)mention codec intolib/resources/mention-link.ts, shared by the editor and commentsType of Change
Testing
anchors.test.ts: repeated passages, cross-paragraph quotes, edits before a passage, deleted passages, inline mention chips, select-all over lists/tables, empty and oversized selections (guards reverted to confirm the disambiguation and whitespace tests go red)file-comments.integration.ts(real Postgres): read-only members comment, non-members refused, cross-file isolation for reply/edit/delete/resolve, author-only edit/delete, opener-or-writer resolve, concurrent replies never exceed the thread cap, email recipients (no author, no non-members, no members with Files withheld), edits notify only new mentions, non-Markdown files refusedcheck:migrations, drizzle generate sync,bun run generate(no drift), biome on changed files, and the targeted audits (api-validation:strict, boundaries, react-query, client-boundary, utils, comment-hygiene, file-names, source-conventions, explicit-any, permission-group-enforcement, test-patterns, realtime-prune, organization-egress); full type-check,check:audits, and test suites run in CIChecklist
test-auditauthoring gate)