Repository navigation
Add serialcast extension - #21795
Add serialcast extension#21795
Conversation
- add install check - add screenshot - add vcs.xml - fix images and linting - initial files
|
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. |
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
There was a problem hiding this comment.
Greptile Overview
Summary
This PR introduces SerialCast, a new Raycast extension that provides remote control functionality for SerialPlotter, a macOS application for plotting serial port data from Arduino and other devices. The extension implements three no-view commands (start, stop, toggle monitoring) that communicate with SerialPlotter through custom URL schemes (`serialplotter://`).The extension architecture follows a clean, shared utility pattern where all three commands import and call a centralized openSerialPlotterUrl function from utils.ts. This utility handles application detection by checking for SerialPlotter's bundle ID, opens the appropriate URL scheme, and provides user-friendly error handling with toast notifications. When SerialPlotter is not installed, users receive an actionable error message with a link to the GitHub releases page.
The extension is appropriately restricted to macOS platforms via the package.json platforms field, reflecting SerialPlotter's platform availability. All commands are implemented as no-view commands since they perform simple trigger actions that don't require user interface components - they communicate with the external application and display success/failure notifications.
The codebase demonstrates good separation of concerns with TypeScript compilation configured for ES2023, proper error handling throughout, and consistent patterns across all command files. The extension integrates seamlessly with Raycast's ecosystem by leveraging standard APIs like getApplications(), open(), and showToast().
Changed Files
| Filename | Score | Overview |
|---|---|---|
| extensions/serialcast/package.json | 5/5 | Defines extension metadata with three no-view commands and macOS platform restriction |
| extensions/serialcast/src/utils.ts | 4/5 | Implements shared utility for SerialPlotter URL handling with application detection and error handling |
| extensions/serialcast/src/start.ts | 5/5 | Implements start monitoring command using shared utility pattern |
| extensions/serialcast/src/stop.ts | 5/5 | Implements stop monitoring command using shared utility pattern |
| extensions/serialcast/src/toggle.ts | 5/5 | Implements toggle monitoring command using shared utility pattern |
| extensions/serialcast/CHANGELOG.md | 5/5 | Initial changelog entry with proper {PR_MERGE_DATE} template format |
| extensions/serialcast/tsconfig.json | 5/5 | Standard TypeScript configuration for Raycast extension development |
| extensions/serialcast/eslint.config.cjs | 5/5 | Standard ESLint configuration following Raycast template |
| extensions/serialcast/.prettierrc | 3/5 | Prettier configuration with non-standard semicolon settings |
| extensions/serialcast/.gitignore | 5/5 | Standard gitignore for Raycast extension development |
Confidence score: 4/5
- This PR is safe to merge with minor formatting considerations but poses minimal functional risk
- Score reflects solid architecture and proper error handling, but lowered due to Prettier configuration deviation from Raycast standards
- Pay close attention to extensions/serialcast/.prettierrc which uses non-standard semicolon settings
Context used:
Context from dashboard - In Raycast extensions, ensure to use a consistent configuration for Prettier, specifically 'printWid... (source)
10 files reviewed, 2 comments
| } catch { | ||
| await showToast(Toast.Style.Failure, "Failed to open URL.") | ||
| } |
There was a problem hiding this comment.
style: Could be simplified using showFailureToast from @raycast/utils instead of manual showToast with failure style
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- Updated @raycast/utils to version ^2.0.1. - Updated @raycast/eslint-config to version ^2.1.1. - Updated various dependencies to their latest versions, including eslint and typescript-related packages. - Added semicolons for consistent code formatting in start.ts, stop.ts, and toggle.ts. - Enhanced error handling in utils.ts with showFailureToast for better user feedback.
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
tyy!! |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@asboy2035). Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag. |
NOTE: This is a repeat PR because the old one had problems that are now fixed but cannot be uploaded.
Description
SerialCast is a Raycast extension that allows for controlling SerialPlotter, an app I made for plotting values from the serial port (Arduino, etc.) as graphs.
SerialCast includes the ability to:
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder