Repository navigation
Add appgrid extension - #22278
Add appgrid extension#22278Jungwoon wants to merge 9 commits into
Conversation
|
Congratulations on your new Raycast extension! 🚀 You can expect an initial review within five business days. Once the PR is approved and merged, the extension will be available on our Store. |
- Remove environment.locale (not available in Raycast API) - Use Intl.DateTimeFormat().resolvedOptions().locale instead - Remove unused Image import - Apply Prettier formatting
- Update @types/react from 18.0.9 to 18.3.12 - Resolves JSX component type compatibility issues - All local validations passing
- Raycast API v1.37.0+ provides these types automatically - Prevents type conflicts in GitHub Actions - Following Raycast extension best practices
- Add @types/[email protected] (required by @raycast/api) - Add @types/[email protected] (required by @raycast/api) - Fix module resolution errors for Node.js built-ins - All validations passing
- Grid.Item no longer supports tooltip property in latest API - TypeScript type checking now passes - All validations passing
There was a problem hiding this comment.
Greptile Overview
Summary
This PR adds a new AppGrid extension that provides a grid-based launcher for macOS applications with smart categorization and usage tracking.
Key Features:
- Grid view with 6 columns displaying app icons
- Smart automatic categorization (Development, Productivity, Communication, Entertainment, Utilities, Others)
- Frequently used apps tracking with local storage
- Multiple view modes (flat by name, flat by usage, grouped by category)
- Multi-language support (English, Korean, Japanese) with automatic locale detection
- Standard Raycast actions (launch, show in Finder, copy path/bundle ID)
Implementation Quality:
- Clean code structure with proper use of React hooks (
useState,useEffect,useMemo,useCallback) - Good separation of concerns with translation strings and category logic
- Proper error handling with toast notifications
- Filters out Parallels VM apps to avoid clutter
Issues Found:
- Missing
platformsfield inpackage.json(should restrict to macOS) - Changelog uses hardcoded date instead of
{PR_MERGE_DATE}placeholder
Confidence Score: 4/5
- This PR is safe to merge with minor adjustments needed
- The extension is well-implemented with clean code, proper error handling, and good UX. Two minor issues need fixing: adding the
platformsfield to restrict to macOS and updating the changelog date format. These are straightforward fixes that don't affect core functionality. - Pay attention to
extensions/appgrid/package.json(needs platforms field) andextensions/appgrid/CHANGELOG.md(needs date placeholder)
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/appgrid/package.json | 3/5 | New extension manifest with standard dependencies. Missing platforms field despite using macOS-specific APIs (getApplications). |
| extensions/appgrid/src/index.tsx | 4/5 | Main extension code with grid view, multi-language support, and usage tracking. Clean implementation with good use of Raycast APIs. |
| extensions/appgrid/CHANGELOG.md | 3/5 | Initial changelog with hardcoded date instead of {PR_MERGE_DATE} placeholder |
6 files reviewed, 2 comments
… format
- Add platforms field to package.json for macOS-only extension
- Update CHANGELOG.md to use {PR_MERGE_DATE} placeholder
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds a new AppGrid extension that provides a smart app launcher for macOS with grid view and intelligent category grouping. The extension tracks app usage, supports multiple languages (English, Korean, Japanese), and offers various view modes for browsing applications.
Key changes:
- Grid-based application launcher with smart categorization (Development, Productivity, Communication, Entertainment, Utilities, Others)
- Usage tracking with LocalStorage to identify frequently used apps
- Multi-language support with automatic system language detection
- Multiple view modes: flat view (sorted by name or usage) and grouped view by categories
- Actions include launching apps, showing in Finder, copying path and bundle ID
Issues found:
- The extension uses shell execution (
execwithopen -a) to launch applications instead of Raycast's built-inopen()API, which is less secure and less idiomatic
Confidence Score: 4/5
- This PR is generally safe to merge with minor improvements recommended
- The extension is well-structured with good multi-language support and proper usage tracking. The main concern is the use of shell execution for launching apps instead of the Raycast API's
open()function. While functional, using the built-in API would be more secure and consistent with other extensions. The package.json and CHANGELOG are properly configured with the platforms field and date placeholder. - Pay attention to
extensions/appgrid/src/index.tsx- consider replacing shell execution with Raycast's built-inopen()API
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/appgrid/src/index.tsx | 3/5 | Main extension file with app launcher logic. Uses shell execution instead of Raycast's built-in open() API for launching apps, which is less secure and idiomatic. |
| extensions/appgrid/package.json | 5/5 | Package configuration is properly set up with correct platforms field and dependencies. |
| extensions/appgrid/CHANGELOG.md | 5/5 | Changelog properly formatted with {PR_MERGE_DATE} placeholder and comprehensive list of features. |
2 files reviewed, 2 comments
| async (app: Application) => { | ||
| try { | ||
| await updateUsageData(app); | ||
| await execAsync(`open -a "${app.name}"`); |
There was a problem hiding this comment.
style: Use Raycast's built-in open() function instead of shell execution for better security and consistency with other extensions
| await execAsync(`open -a "${app.name}"`); | |
| await open(app.path); |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds a new AppGrid extension for macOS - a smart application launcher with grid view, category grouping, usage tracking, and multi-language support (English, Korean, Japanese).
Critical Issue Found:
- The
launchAppfunction calls undefinedexecAsync()instead of the importedopen()function, causing runtime errors when users try to launch apps
Implementation Details:
- Uses
getApplications()API to fetch macOS apps - Implements smart categorization (Development, Productivity, Communication, etc.)
- Tracks app usage frequency in LocalStorage
- Provides multiple view modes via dropdown filter
- Filters out Parallels virtual machine apps
Confidence Score: 0/5
- This PR has a critical runtime error that breaks the core functionality
- The extension calls an undefined function
execAsyncwhen launching apps, which will cause a ReferenceError at runtime. The core feature (launching applications) is completely broken - extensions/appgrid/src/index.tsx requires immediate fix to the
launchAppfunction
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/appgrid/src/index.tsx | 1/5 | New app launcher extension with critical bug: uses undefined execAsync function that will cause runtime error when launching apps |
1 file reviewed, 1 comment
| async (app: Application) => { | ||
| try { | ||
| await updateUsageData(app); | ||
| await execAsync(`open -a "${app.name}"`); |
There was a problem hiding this comment.
syntax: execAsync is not defined or imported. The imported open() function should be used instead:
| await execAsync(`open -a "${app.name}"`); | |
| await open(app.path); |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi 👋
Thanks for your contribution 💪
I have now tested your extension, and I have some feedback ready for you:
-
Do you need help fixing the CI errors mentioned here
-
There doesn't seem to happen anything when I switch from thoose two in the list, is it because I need to launch a few apps first?
- Launching an app gives me this error
- Check latest feedback from Greptile
I'm looking forward to testing this extension again 🔥
Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.
- Replace child_process.exec with Raycast's open() API - Fix platforms field: "macos" → "macOS" for validation - Remove peerDependencies (managed by Raycast) - Fix bundleId fallback: use app.path instead of empty string - Optimize updateUsageData with functional state updates - Add space in usage count display: "1times" → "1 times" - Improve build script: remove --skip-types flag
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
Fixed the app launch error and CI issues. Using bundle ID for more reliable app opening now. Ready for another review! 🚀 |
|
Updated PR with proper repository structure. All files are now correctly placed in extensions/appgrid directory. Ready to reopen! 🚀 |
- Grid view app launcher with visual layout - Smart categorization (Development, Productivity, Communication, etc.) - Usage tracking for frequently used apps - Multi-language support (EN, KO, JA) - Multiple view modes (flat/grouped) - Filters by category Fixes from previous PR raycast#22278: - Use Raycast open() API instead of shell execution - Add platforms field to package.json - Launch apps via bundle ID for reliability - Fix dropdown filter functionality
|
Hi @pernielsentikaer 👋 Thank you for your detailed review and feedback on the previous PR! I've created a new PR that addresses all the issues you mentioned: ✅ Fixed IssuesAll the problems from your review have been resolved:
🆕 Additional Improvements
I had to close the previous PR due to git history issues from force pushes, so I've created this clean PR from a fresh branch. The extension is ready for review! Please let me know if you have any questions or need any changes. Thanks again for your help! 🙏 |
…2709) * Add AppGrid extension - Smart app launcher with grid view - Grid view app launcher with visual layout - Smart categorization (Development, Productivity, Communication, etc.) - Usage tracking for frequently used apps - Multi-language support (EN, KO, JA) - Multiple view modes (flat/grouped) - Filters by category Fixes from previous PR #22278: - Use Raycast open() API instead of shell execution - Add platforms field to package.json - Launch apps via bundle ID for reliability - Fix dropdown filter functionality * Update * Delete extensions/appgrid/assets/[email protected] * update metadata * Update CHANGELOG.md and optimise images --------- Co-authored-by: Per Nielsen Tikær <[email protected]> Co-authored-by: raycastbot <[email protected]>

Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder