-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: delete document, document ui #673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 9fd4919 | Jan 16 2026, 09:49 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
supermemory-mcp | 82d68b7 | Jan 16 2026, 07:15 PM |
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: Document Delete & Onboarding RefactorReviewed PR #673 - Overall the changes look good with some solid refactoring. Positive Changes
Issues to Address1. Security: External Script (apps/web/app/layout.tsx:36-43)
2. Type Safety Issue (apps/web/hooks/use-document-mutations.ts:367)
3. customId Validation (apps/web/components/new/document-modal/index.tsx:61-64)
4. Missing Error Boundary
SummaryMust Fix: Security issue with external script, type safety with any usage, customId validation Nice to Have: Error boundaries, extract optimistic update logic Overall solid refactoring work. Just address the security and type safety issues before merging. |
PR Review: Document Delete & Onboarding UI RefactorSummaryThis PR adds document deletion functionality to the document modal and refactors the onboarding flow into a cleaner nested routing structure. Overall solid work with good separation of concerns. 🔴 Critical Issues1. Security: Missing Authorization CheckLocation: The delete mutation doesn't verify ownership before deleting. This could allow users to delete documents they don't own by guessing/knowing document IDs. Fix: Backend should enforce authorization, but frontend should also validate ownership before calling the API. 2. Race Condition in Delete FlowLocation: The Recommendation: Use a more robust ID generation strategy (e.g.,
|
Merge activity
|
b1074f5 to
9fd4919
Compare

No description provided.