Repository navigation
Update Capacities extension - Maintenance + Windows Support - #22694
Conversation
|
Thank you for your contribution! 🎉 🔔 @sbleh you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. You can expect an initial review within five business days. |
left a comment
•
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR modernizes the Capacities extension with Windows support and several maintenance improvements. The key changes include replacing axios with native fetch API to reduce dependencies, adding Windows platform support (with app-based actions disabled on non-macOS systems), and migrating from legacy ESLint configuration to the modern flat config format. The extension now provides better user feedback through toast notifications with progress indicators for weblink creation and daily note saving operations. API calls have been refactored to use usePromise from @raycast/utils for better async state management, and the codebase has been updated to use ES2023 compilation target. The changes maintain backward compatibility on macOS while gracefully handling Windows environments where macOS-specific features like AppleScript are unavailable.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/capacities/eslint.config.js | 5/5 | Added modern ESLint flat config replacing legacy .eslintrc.json |
| extensions/capacities/.eslintrc.json | 5/5 | Removed legacy ESLint configuration as part of modernization |
| extensions/capacities/tsconfig.json | 5/5 | Updated TypeScript target from ES2022 to ES2023 |
| extensions/capacities/package.json | 5/5 | Removed axios dependency, updated all dependencies, added Windows platform support |
| extensions/capacities/src/save-to-daily-note.tsx | 4/5 | Replaced axios with fetch, improved user feedback with toast notifications |
| extensions/capacities/CHANGELOG.md | 5/5 | Added properly formatted changelog entry for maintenance and Windows support |
| extensions/capacities/src/create-weblink.tsx | 4/5 | Modernized with fetch API and enhanced toast notifications for better UX |
| extensions/capacities/README.md | 5/5 | Minor documentation improvements with better link formatting |
| extensions/capacities/src/search-content.tsx | 4/5 | Migrated to usePromise hook and replaced axios with fetch |
| extensions/capacities/src/helpers/isCapacitiesInstalled.ts | 4/5 | Added platform check to gracefully handle Windows environments |
| extensions/capacities/src/helpers/useActiveTab.ts | 4/5 | Refactored to usePromise pattern and added Windows compatibility |
| extensions/capacities/src/helpers/storage.ts | 4/5 | Replaced axios with fetch and simplified error handling |
Confidence score: 4/5
- This PR is safe to merge with minimal risk, providing solid maintenance improvements and Windows support
- Score reflects thorough modernization work with good error handling, though some files show complex refactoring that warrants attention during testing
- Pay close attention to API integration files like storage.ts and form submission handlers to ensure fetch migration maintains proper error handling
Additional Comments (1)
-
extensions/capacities/src/helpers/useActiveTab.ts, line 48 (link)logic: Firefox support returns empty function instead of proper implementation
12 files reviewed, 4 comments
commented
Nov 6, 2025
commented
Nov 7, 2025
|
Published to the Raycast Store: |
commented
Nov 7, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
commented
Nov 7, 2025
|
@xmok, thanks so much for the cleanup and updates, highly appreciated. And sorry for my late response. It's merged, but looks all good to me! Side note: We have a v2 for the extension planned. Not super high priority but we have some ideas :) |
commented
Nov 7, 2025
|
@sbleh sorry for being too quick on the trigger finger. I actually wanted to wait for you, but I hit the wrong button and couldn't stop the train again :D |
Description
Create Weblinktoasts show progressSave Daily Notetoasts show progressScreencast
capacities.mp4
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