Skip to content

Add appgrid extension - #22278

Closed
Jungwoon wants to merge 9 commits into
raycast:mainfrom
Jungwoon:ext/appgrid
Closed

Jungwoon wants to merge 9 commits into
raycast:mainfrom
Jungwoon:ext/appgrid

Conversation

@Jungwoon

@Jungwoon Jungwoon commented Oct 19, 2025 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Oct 19, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

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.

Jungwoon Park added 5 commits October 19, 2025 18:00
- 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
@Jungwoon
Jungwoon marked this pull request as ready for review October 22, 2025 01:55

@greptile-apps greptile-apps Bot 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

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 platforms field in package.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 platforms field 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) and extensions/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

Edit Code Review Agent Settings | Greptile

Comment thread extensions/appgrid/package.json Resolved
Comment thread extensions/appgrid/CHANGELOG.md Resolved
… 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]>

@greptile-apps greptile-apps Bot 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 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 (exec with open -a) to launch applications instead of Raycast's built-in open() 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-in open() 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

Edit Code Review Agent Settings | Greptile

Comment thread extensions/appgrid/src/index.tsx Outdated
async (app: Application) => {
try {
await updateUsageData(app);
await execAsync(`open -a "${app.name}"`);

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.

style: Use Raycast's built-in open() function instead of shell execution for better security and consistency with other extensions

Suggested change
await execAsync(`open -a "${app.name}"`);
await open(app.path);

Comment thread extensions/appgrid/src/index.tsx Resolved

@greptile-apps greptile-apps Bot 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 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 launchApp function calls undefined execAsync() instead of the imported open() 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 execAsync when 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 launchApp function

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

Edit Code Review Agent Settings | Greptile

Comment thread extensions/appgrid/src/index.tsx Outdated
async (app: Application) => {
try {
await updateUsageData(app);
await execAsync(`open -a "${app.name}"`);

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.

syntax: execAsync is not defined or imported. The imported open() function should be used instead:

Suggested change
await execAsync(`open -a "${app.name}"`);
await open(app.path);

@pernielsentikaer pernielsentikaer 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.

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?

CleanShot 2025-10-30 at 11 38 53@2x
  • Launching an app gives me this error
CleanShot 2025-10-30 at 11 39 36@2x
  • 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.

@pernielsentikaer
pernielsentikaer marked this pull request as draft October 30, 2025 10:41
Jungwoon Park and others added 2 commits November 5, 2025 00:19
- 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
@Jungwoon

Jungwoon commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

Fixed the app launch error and CI issues. Using bundle ID for more reliable app opening now. Ready for another review! 🚀

@Jungwoon

Jungwoon commented Nov 5, 2025

Copy link
Copy Markdown
Contributor Author

Updated PR with proper repository structure. All files are now correctly placed in extensions/appgrid directory. Ready to reopen! 🚀

@pernielsentikaer

Copy link
Copy Markdown
Contributor

I think your force push broke the history so I can reopen it 🫠

CleanShot 2025-11-05 at 16 36 00@2x

Jungwoon added a commit to Jungwoon/raycast-extensions that referenced this pull request Nov 6, 2025
- 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
@Jungwoon

Jungwoon commented Nov 6, 2025

Copy link
Copy Markdown
Contributor Author

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:

🔗 New PR: #22709
#22709

✅ Fixed Issues

All the problems from your review have been resolved:

  1. ✅ Runtime Error Fixed: Replaced undefined execAsync() with Raycast's open() API
  2. ✅ CI Errors Fixed: Build and lint now pass successfully
  3. ✅ Filter Switching Fixed: Dropdown filter now works correctly - you'll see different categories when switching
  4. ✅ App Launching Fixed: Apps now launch properly using bundle IDs

🆕 Additional Improvements

  • Apps are launched via bundle ID for better reliability
  • Improved error handling
  • Better app tracking mechanism

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! 🙏

raycastbot added a commit that referenced this pull request Nov 7, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants