Repository navigation
Add save-vcards extension - #33584
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. |
[High impact] No new issue requires action. SummaryAdds Save vCards, which reads selected text, screenshots, and clipboard images on the Mac and saves contacts to Apple Contacts.
Reviews (6) · Last reviewed commit: "Update CHANGELOG.md and optimise images" · Reviewed by Greptile |
- Phone matching for merges compares national and international forms correctly - Quoted replies (On … wrote:, Am … schrieb:, > lines) are cut before reading a thread - Saving keeps the view open until the contact is saved; no double save - Selected account is kept; stale duplicate matches are not offered - Country code for numbers without a trunk zero (+1, +34) - showFailureToast, @raycast/utils data hooks, standard .prettierrc - Invented names in test fixtures
0xdhrv
left a comment
There was a problem hiding this comment.
Hey @thejulez 👋
Thanks for the careful, local-only contact saver 🔥 Everything runs on the Mac with Apple's Vision and Data Detectors, and I like that adding to an existing contact only fills in what's missing, without overwriting what's already on the card.
Here's everything I found in this pass:
Blocking
-
Please remove dev/test material from the extension folder and keep it in your own repo. Store installs only need the extension itself plus
README.md,CHANGELOG.md,media/andmetadata/.-
test/(test/corpus.test.ts,test/parse.test.ts,test/raycast-binary.test.ts,test/support.ts,test/fixtures/card-exif-rotated.jpg,test/fixtures/card.png,test/fixtures/make-card.swift, andtest/swift/main.swift) -
scripts/build-test-helper.sh - The
"test"script, and thetsxdevDependency it uses. After that, regeneratepackage-lock.json.
As mentioned in our docs here ↗
-
Should fix
-
metadata/save-vcards-1.pngandsave-vcards-2.pngshow a back chevron on the root Save vCard from Clipboard command. That root command does not set a navigation title, so this looks like the results were captured as pushed views. Please retake those two from the root command with Window Capture and Save to Metadata ticked, so neither shows a back chevron.save-vcards-3.pngis the edit form pushed from the results, so the chevron there is expected.As mentioned in our docs here ↗
When the blocking items are done, request another review 😊
Feel free to reach me here or on Slack if anything is unclear.
Per review: drop test/, scripts/build-test-helper.sh, the test script and the tsx devDependency, and update package-lock.json. The tests stay in the source repo.
Recolour the icon from blue to an amber-to-brown gradient and put the existing screenshots on a blurred grey background, the same on all three.
Screenshot 1: the sample business card's accent goes from blue to brown. Screenshots 1 and 2: remove the back chevron, as on the root command. All three: remove the blue fringe the old background left at the window corners.
|
My bad, didn't see this review earlier, thanks for the thorough pass @0xdhrv ! 🙏 Blocking:
Should fix:
I also gave the icon a warmer colour and put all three screenshots on one shared background. Ready for another look whenever you have time 😊 |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@thejulez). Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag. |
Description
Save vCards turns contact details you come across into Apple Contacts entries: highlight an email signature, drag a screenshot around a business card or LinkedIn profile, or copy a photo of a business card (for example from your iPhone through Universal Clipboard).
Each command shows what was captured next to the contact it found: name with academic titles (Mag., Dr., MBA), job title, company, emails, labelled phone numbers, website and postal address. ↵ saves to Contacts, ⌘E opens a form to edit first. When the email or phone is already in Contacts, ⌘⇧↵ adds the new details to the existing card instead of creating a duplicate. Contacts can also be exported as a .vcf file or copied as vCard text.
Everything runs on the Mac. Text recognition and field detection use Apple's Vision, Data Detector and Natural Language frameworks through Swift (built from source with
raycast/extensions-swift-tools). No AI service, no network requests, no account.Commands:
Permissions (explained in the README): Contacts, and Screen Recording for the screenshot command.
Screencast
All contacts in the screenshots are invented.
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolderNotes for review:
npm testruns 42 tests (parser corpus, and the Swift core through a small test CLI); they are not part of the build.ray lintwarns that "vCard" should be "VCard" in the titles. I kept "vCard", the format's own spelling, in the way the Apple Style Guide keeps "iOS". Happy to change it if you prefer.