Repository navigation
Update Eagle extension - #22560
Update Eagle extension#22560
Conversation
|
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. |
There was a problem hiding this comment.
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)
-
extensions/eagle/src/folder.tsx, line 150 (link)logic: Missing
onUpdateprop for nested FolderItem components inside FolderView, which could prevent folder updates from propagating properly.
22 files reviewed, 11 comments
|
|
||
| await updateFolder({ | ||
| folderId: folder.id, | ||
| newName: newName !== folder.name ? newName : undefined, |
There was a problem hiding this comment.
style: Empty string will be truthy and passed to API. Consider using newColor !== "" ? newColor : undefined for consistency
| onChange={(value) => setNewColor(value as typeof newColor)} | ||
| > |
There was a problem hiding this comment.
style: Both aqua and blue use the same tint color (Color.Blue). Consider using Color.Cyan for aqua to provide visual distinction
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>
Description
Updated my pre-AI raycast extension 🤣
Added
Changed
Fixed
Screencast
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