Skip to content

Update Capacities extension - Maintenance + Windows Support - #22694

Merged
raycastbot merged 5 commits into
raycast:mainfrom
xmok:ext/capacities
Nov 7, 2025
Merged

raycastbot merged 5 commits into
raycast:mainfrom
xmok:ext/capacities

Conversation

@xmok

@xmok xmok commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Description

Screencast

capacities.mp4

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: capacities Issues related to the capacities extension platform: macOS platform: Windows OP is contributor The OP of the PR is a contributor of the extension labels Nov 5, 2025
@raycastbot

ghost commented Nov 5, 2025 •

Copy link
Copy Markdown
Collaborator

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.

ghost left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

  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

Edit Code Review Agent Settings | Greptile

@pernielsentikaer

ghost commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Hi @xmok👋

Thanks for your contribution 🔥

@sbleh do you want to check this?

@pernielsentikaer pernielsentikaer self-assigned this Nov 6, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit f7fe4d7 into raycast:main Nov 7, 2025
@github-actions

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@sbleh

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

@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 :)

@pernielsentikaer

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

@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

@xmok
xmok deleted the ext/capacities branch November 8, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: capacities Issues related to the capacities extension extension fix / improvement Label for PRs with extension's fix improvements OP is contributor The OP of the PR is a contributor of the extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Capacities] Add Extension to Windows [Capacities] Support for Windows

4 participants