Skip to content

Update Eagle extension - #22560

Merged
raycastbot merged 27 commits into
raycast:mainfrom
Yukaii:feature/update-eagle
Nov 3, 2025
Merged

raycastbot merged 27 commits into
raycast:mainfrom
Yukaii:feature/update-eagle

Conversation

@Yukaii

@Yukaii Yukaii commented Nov 1, 2025 •

Copy link
Copy Markdown
Contributor

Description

Updated my pre-AI raycast extension 🤣

Added

  • Grid layout option for item viewing
  • Trash view command
  • Library switching command
  • Add item from URL command
  • Add item from clipboard command
  • Move to trash action
  • Reveal in folder action
  • Edit item tags and annotations
  • Create, rename, and move folders
  • Enhanced folder navigation

Changed

  • Upgraded to latest Raycast API (v1.103.0)

Fixed

  • Move to trash action properly disabled when already in trash

Screencast

eagle 2025-11-01 at 12 47 00

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: eagle Issues related to the eagle extension platform: macOS labels Nov 1, 2025
@raycastbot

raycastbot commented Nov 1, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @Yukaii 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.

@raycastbot raycastbot added the OP is author The OP of the PR is the author of the extension label Nov 1, 2025
@Yukaii Yukaii changed the title Update eagle extension Update Eagle extension Nov 1, 2025

@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 significantly enhances the Eagle extension with a comprehensive set of new features and upgrades to the latest Raycast API (v1.103.0). The update transforms the extension from a simple viewer into a full-featured digital asset management interface. Key additions include grid layout support for visual item browsing, trash management functionality, library switching capabilities, and comprehensive item/folder operations (create, rename, edit tags/annotations, move to trash). The codebase has been modernized by migrating from SWR to Raycast's usePromise hook and updating ESLint configuration to the flat config format. The changes integrate seamlessly with Eagle's API while providing robust error handling, proper loading states, and user feedback through toast notifications throughout all new functionality.

PR Description Notes:

  • The changelog entry uses an actual date (2025-11-01) instead of the required template string {PR_MERGE_DATE}. The format should be ## [Major Update] - {PR_MERGE_DATE}.

Important Files Changed

Filename Score Overview
extensions/eagle/src/index.tsx 4/5 Enhanced with grid layout support and comprehensive action panels for item management
extensions/eagle/src/folder.tsx 4/5 Added grid layout support, folder management actions, and enhanced UI features
extensions/eagle/src/utils/api.ts 4/5 Added extensive functionality including trash management, library operations, and item manipulation
extensions/eagle/src/utils/query.ts 4/5 Modernized data fetching by migrating from SWR to Raycast's usePromise hook
extensions/eagle/src/components/ItemDetail.tsx 4/5 Enhanced with action panels, folder navigation, and item editing capabilities
extensions/eagle/src/components/EagleItem.tsx 4/5 Added comprehensive action panels with edit, navigation, and trash functionality
extensions/eagle/src/trash.tsx 3/5 New trash view component with minor inconsistencies in prop naming
extensions/eagle/src/library.tsx 4/5 New library switching command with proper error handling and delay mechanism
extensions/eagle/src/add-from-url.tsx 4/5 New form-based command for adding items from URLs with comprehensive metadata support
extensions/eagle/src/components/CreateFolderAction.tsx 5/5 Well-implemented folder creation component with proper validation and error handling
extensions/eagle/src/components/RenameFolderAction.tsx 5/5 Clean folder rename implementation following established patterns
extensions/eagle/src/components/UpdateFolderAction.tsx 4/5 Comprehensive folder update functionality with color and metadata editing
extensions/eagle/src/components/EditItemTagsAction.tsx 4/5 Form-based tag editing with proper parsing and error handling
extensions/eagle/src/components/EditItemAnnotationAction.tsx 4/5 Annotation editing component with HTML-to-newline conversion
extensions/eagle/src/components/FolderNavigationActions.tsx 4/5 Navigation actions with proper folder hierarchy flattening and memoization
extensions/eagle/src/components/MoveToTrashAction.tsx 5/5 Well-implemented destructive action with proper confirmation and feedback
extensions/eagle/README.md 5/5 Transformed from minimal description to comprehensive documentation with feature lists and roadmap
extensions/eagle/CHANGELOG.md 3/5 Updated with comprehensive changes but uses actual date instead of required template string
extensions/eagle/eslint.config.js 5/5 Properly implements recommended Raycast ESLint configuration
extensions/eagle/src/@types/eagle.d.ts 5/5 Clean type additions for new functionality without breaking changes

Confidence score: 4/5

  • This PR introduces substantial new functionality with generally solid implementation patterns and proper error handling
  • Score reflects the comprehensive nature of changes and minor issues found in prop naming consistency, URL decoding logic, and changelog format
  • Pay close attention to trash.tsx for prop naming inconsistencies and index.tsx for the file path URL decoding logic

Additional Comments (1)

  1. extensions/eagle/src/folder.tsx, line 150 (link)

    logic: Missing onUpdate prop for nested FolderItem components inside FolderView, which could prevent folder updates from propagating properly.

22 files reviewed, 11 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/eagle/CHANGELOG.md Resolved
Comment thread extensions/eagle/src/folder.tsx Resolved
Comment thread extensions/eagle/src/trash.tsx Resolved

await updateFolder({
folderId: folder.id,
newName: newName !== folder.name ? newName : undefined,

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: Empty string will be truthy and passed to API. Consider using newColor !== "" ? newColor : undefined for consistency

Comment on lines +72 to +73
onChange={(value) => setNewColor(value as typeof newColor)}
>

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: Both aqua and blue use the same tint color (Color.Blue). Consider using Color.Cyan for aqua to provide visual distinction

Yukaii and others added 6 commits November 1, 2025 13:06
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@pernielsentikaer pernielsentikaer self-assigned this Nov 3, 2025
pernielsentikaer