Repository navigation
Add OwnDrop extension - #33967
Add OwnDrop extension#33967iml885203 wants to merge 2 commits into
Conversation
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
[Medium impact] The PR appears safe to merge, with non-blocking cleanup remaining in two error handlers. Findings
Fix with agent prompt### Issue 1
extensions/owndrop/src/drop-clipboard.tsx:undefined-39
The upload catch builds a failure toast by hand. The repository requires `showFailureToast(error, { title: "Drop failed" })` for this case. Use that helper here and in Browse's pin/delete catches before merging. The same pattern appears in the other added commands.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds OwnDrop commands for sending clipboard content and browsing saved drops.
Reviews (2) · Last reviewed commit: "Address Greptile review feedback" · Reviewed by Greptile |
| await showToast({ style: Toast.Style.Success, title: "Dropped successfully", message: "Selected in Browse" }); | ||
| } catch (error) { | ||
| setMessage((error as Error).message); | ||
| await showToast({ style: Toast.Style.Failure, title: "Drop failed", message: (error as Error).message }); |
There was a problem hiding this comment.
Errors bypass the shared helper
The upload catch builds a failure toast by hand. The repository requires showFailureToast(error, { title: "Drop failed" }) for this case. Use that helper here and in Browse's pin/delete catches before merging. The same pattern appears in the other added commands.
Rule Used: Failure toasts and error handling What: In catch blocks that show an error to the user, prefer showFailureToast(error, { title }) from @raycast/utils over hand-built showToast({ style: Toast.Style.Failure, ... }). getSelectedText(), `getSe... (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/owndrop/src/drop-clipboard.tsx
Line: 39
Comment:
**Errors bypass the shared helper**
The upload catch builds a failure toast by hand. The repository requires `showFailureToast(error, { title: "Drop failed" })` for this case. Use that helper here and in Browse's pin/delete catches before merging. The same pattern appears in the other added commands.
**Rule Used:** Failure toasts and error handling What: In `catch` blocks that show an error to the user, prefer `showFailureToast(error, { title })` from `@raycast/utils` over hand-built `showToast({ style: Toast.Style.Failure, ... })`. `getSelectedText()`, `getSe... ([source](https://github.com/raycast/extensions/blob/adb34f87ff97d6f2835222f1a48c00cfb2fa61fb/.greptile/config.json))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Description
OwnDrop brings a self-hosted or Cloudflare-hosted personal clipboard and file inbox to Raycast across macOS and Windows.
owd_...).Tested on macOS and Windows against a live OwnDrop instance.
Screencast
Screenshots are included in
metadata/(owndrop-1.png,owndrop-2.png,owndrop-3.png) using sample data only.Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool