Repository navigation
Update diskutil-mac extension - #22307
Conversation
- Merge branch \'contributions/merge-1749741487473\' - Pull contributions - added plist support, filtering and sizes - Initial commit
- some improvements - a bit of modularization
|
Thank you for the update! 🎉 You can expect an initial review within five business days. |
|
new pictures already taken, just forgot to commit |
|
Currently using import { exec } from "child_process"; |
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds significant enhancements to the diskutil-mac extension, introducing disk filtering by type (internal/external), multiple size display formats with persistent preferences, and improved data parsing using plist. The changes also include better error handling with timeout mechanisms and prevention of internal disk ejection.
Key improvements:
- Added plist-based disk information parsing for more structured data access
- Implemented internal/external disk filtering via dropdown
- Added toggleable size display formats (Full/Used/Free/UsedFree) with LocalStorage persistence
- Improved error handling with 5-second timeout and graceful fallbacks
- Enhanced sudo workflow with better user prompts for manual terminal execution
- Refactored command execution into separate utility module
- Updated dependencies to latest versions (React 19, TypeScript 5.8.3, @raycast/api 1.100.1)
Minor issues found:
- Two grammatical errors in CHANGELOG.md that should be corrected
Confidence Score: 4/5
- This PR is safe to merge after fixing minor grammatical errors in the changelog
- Score of 4 reflects well-structured code with good error handling and sensible architectural improvements. The implementation adds valuable features without breaking existing functionality. Only minor issues found are grammatical errors in documentation (CHANGELOG), which don't affect runtime behavior but should be corrected for professionalism.
- extensions/diskutil-mac/CHANGELOG.md requires minor grammatical corrections before merge
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/diskutil-mac/CHANGELOG.md | 4/5 | Added new version entry with feature list, contains minor grammatical errors in descriptions |
| extensions/diskutil-mac/package.json | 5/5 | Updated dependencies (@raycast/api to v1.100.1, React to v19.1.0, TypeScript to v5.8.3) and added plist library |
| extensions/diskutil-mac/src/Disk.tsx | 5/5 | Major refactor: added plist parsing, size tracking with display formats, improved error handling with timeouts, internal/external disk detection |
| extensions/diskutil-mac/src/index.tsx | 5/5 | Added disk filtering (internal/external) via dropdown and size view toggling with persistent storage |
10 files reviewed, 2 comments
|
This pull request introduces significant enhancements and improvements to the Diskutil Raycast extension, focusing on new features, user experience, code structure, and dependency updates. The most important changes include support for filtering disks by type, improved size display options, a new backend for structured disk information, UI/UX upgrades, and code refactoring for maintainability. New Features and UI/UX Improvements
Backend and Code Structure
Dependency and Configuration Updates
Documentation and Miscellaneous
|
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Nice 🔥 is there a merge button somewhere? Can’t find it |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
- update dependencies - fix(scheduler): add missing code changes - package-lock.json update - fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS - Pull contributions - update changelog - docs: update CHANGELOG for background refresh alert feature - feat: add background refresh status alert to scheduled command form - [Linear] Use API-provided notification presentation (raycast#22285) - Update CODEOWNERs (1a7209e) - Update harvest extension (raycast#22256) - Update CODEOWNERs (13787cd) - Fix finding button in Tahoe. (raycast#22330) - Update GitHub Actions workflow for PR approvals (raycast#22487) - Docs: update for the new API release - Update CODEOWNERs (77f6477) - Added support for Asana sections (raycast#21912) - Update auto-label workflow for PR approvals (raycast#22484) - Update GitHub Actions workflow to set effective token (raycast#22482) - Update workflow to use pull_request_review event (raycast#22479) - Update CODEOWNERs (d5727aa) - Add action to generate and copy private links (raycast#22273) - Enhance PR approval labeling workflow (raycast#22477) - Chatgpt atlas bookmarks improvement (raycast#22371) - Add windows support (raycast#22367) - Update diskutil-mac extension (raycast#22307) - [Secret Browser Commands] add ChatGPT Atlas, etc (raycast#22348) - Update deployhq extension (raycast#22319) - [Serie A] Update extensions (raycast#22427) - package-lock.json update - fix: add missing BACKGROUND_REFRESH_STATUS to STORAGE_KEYS - Merge branch \'contributions/merge-1761638558070\' - Pull contributions - update changelog - docs: update CHANGELOG for background refresh alert feature - feat: add background refresh status alert to scheduled command form
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder