Repository navigation
Adds currently playing and copy URL commands. - #40
Conversation
|
On the second commit I copied the changes made to the VSCode Extension regarding linting into the Spotify Extension, and then made a small change to make Prettier work, so you can now run |
|
|
||
| /** | ||
| * Runs the AppleScript | ||
| * | ||
| * @param appleScript - The AppleScript to run | ||
| * @throws An error when the AppleScript fails to run | ||
| * @returns A promise that is resolved when the AppleScript finished running | ||
| */ | ||
| export async function runAppleScriptAndReturn(appleScript: string) { | ||
| return await runAppleScript(appleScript); | ||
| } |
There was a problem hiding this comment.
Do you think we need this? Seems like the function doesn't add anything on top of the runAppleScript one. How about keeping it simple and remove runAppleScriptAndReturn and use runAppleScript directly?
There was a problem hiding this comment.
I just copied the style I saw without thinking about it. It makes sense to just use the function directly.
There was a problem hiding this comment.
Want to make this change as well and use the function directly before I merge the PR? Please re-request a review afterwards.
thomaspaulmann
left a comment
There was a problem hiding this comment.
Thanks a lot for adding these commands. I left a few inline comments to make the toast fit our UI guidelines. Also, I reverted some bits of your commit for formatting. Since the extension doesn't use any React, we can get of these deps.
This reminds me that we should add a lint script. Then you can run npm run lint to do all the magic.
Co-authored-by: Thomas Paul Mann <[email protected]>
Co-authored-by: Thomas Paul Mann <[email protected]>
Co-authored-by: Thomas Paul Mann <[email protected]>
Co-authored-by: Thomas Paul Mann <[email protected]>
|
|
||
| /** | ||
| * Runs the AppleScript | ||
| * | ||
| * @param appleScript - The AppleScript to run | ||
| * @throws An error when the AppleScript fails to run | ||
| * @returns A promise that is resolved when the AppleScript finished running | ||
| */ | ||
| export async function runAppleScriptAndReturn(appleScript: string) { | ||
| return await runAppleScript(appleScript); | ||
| } |
There was a problem hiding this comment.
Want to make this change as well and use the function directly before I merge the PR? Please re-request a review afterwards.
|
Yes, I'm going to do it today. |
| "name": "copyUrl", | ||
| "title": "Copy Current Song's URL", | ||
| "subtitle": "Spotify", | ||
| "description": "Currently playing song's URL in Spotify.", |
There was a problem hiding this comment.
| "description": "Currently playing song's URL in Spotify.", | |
| "description": "Currently playing track's URL in Spotify.", |
thomaspaulmann
left a comment
There was a problem hiding this comment.
Thanks! I changed song to track to fit the other commands.
- chore: update changelog for version 0.2.0 and modify asset images - fix: rename package from \'teak-raycast\' to \'teak\' - fix: rename package from \'teak-raycast\' to \'teak\' - feat: add Raycast action to environment configuration - style: apply trailing comma formatting to raycast api and tests - style: apply trailing comma formatting to raycast api and tests - feat: add API server, update Raycast integration, and enhance card operations - feat(api): initialize API with Hono framework and add basic structure - chore(mobile): bump version to 1.1.0 and add release notes - feat: add detailed release notes for new features and improvements in the app - feat: update app description and notes to include incoming share functionality - Implement mobile startup plan - feat: implement theme preference storage and update related components - Remove swipe delete from mobile list - refactor: wrap auth routes in Protected component for better access control - Ensure incoming share signatures - refactor: update .easignore to align with repository ignores and improve clarity - feat: sync card modal state with URL for deep-linking support - refactor: update createIncomingShareSignature to simplify signature format and remove item ID from text items - feat: implement incoming share functionality with native intent handling - refactor: update text styling for quote content in CardPreviewSheet component - refactor: enhance accessibility and touch target for stop recording button - refactor: update layout and styling in authentication screens for improved UI consistency - refactor: remove feedback status functions and related usages across components - refactor: update text styling and list modifiers in CardPreviewSheet component - test: add regression tests for CardsGrid and Settings components - feat: add haptic feedback functions and implement in various components - refactor: streamline UI components by enhancing styles and removing unnecessary sections - refactor: simplify CardPreviewSheet by removing Section components and updating list styles - feat: enhance CardsGrid component with improved loading and error handling - chore: update @types/react to version 19.2.10 in package.json - Add new skills for Apple Zoom Transitions, Expo UI SwiftUI, and Upgrading Expo - Refactor window size settings and remove unused persistence hook - Format openCustomerPortal callback - Simplify pre-commit hook setup - Update README structure - Remove Ultracite installation and migration scripts; update AGENTS.md for streamlined commands and code standards; add skills-lock.json for Ultracite dependency tracking. - Add emoji cards to docs hero - Add Raycast install image - Merge pull request raycast#40 from praveenjuge/chrome-v2 - Add persistent hover save button - Add Raycast promo and grids - WIP: Chrome extension v2 changes - Add emoji support to pricing plans and update layout - Update FAQ section layout and simplify card title - Update docs home card layout - Add emoji support to CTASection and update layout with new bookmark emoji - Add new SVG and WEBP assets for app badges and emojis - Audit multi-app dependency updates
* Update teak-raycast extension - chore: update changelog for version 0.2.0 and modify asset images - fix: rename package from \'teak-raycast\' to \'teak\' - fix: rename package from \'teak-raycast\' to \'teak\' - feat: add Raycast action to environment configuration - style: apply trailing comma formatting to raycast api and tests - style: apply trailing comma formatting to raycast api and tests - feat: add API server, update Raycast integration, and enhance card operations - feat(api): initialize API with Hono framework and add basic structure - chore(mobile): bump version to 1.1.0 and add release notes - feat: add detailed release notes for new features and improvements in the app - feat: update app description and notes to include incoming share functionality - Implement mobile startup plan - feat: implement theme preference storage and update related components - Remove swipe delete from mobile list - refactor: wrap auth routes in Protected component for better access control - Ensure incoming share signatures - refactor: update .easignore to align with repository ignores and improve clarity - feat: sync card modal state with URL for deep-linking support - refactor: update createIncomingShareSignature to simplify signature format and remove item ID from text items - feat: implement incoming share functionality with native intent handling - refactor: update text styling for quote content in CardPreviewSheet component - refactor: enhance accessibility and touch target for stop recording button - refactor: update layout and styling in authentication screens for improved UI consistency - refactor: remove feedback status functions and related usages across components - refactor: update text styling and list modifiers in CardPreviewSheet component - test: add regression tests for CardsGrid and Settings components - feat: add haptic feedback functions and implement in various components - refactor: streamline UI components by enhancing styles and removing unnecessary sections - refactor: simplify CardPreviewSheet by removing Section components and updating list styles - feat: enhance CardsGrid component with improved loading and error handling - chore: update @types/react to version 19.2.10 in package.json - Add new skills for Apple Zoom Transitions, Expo UI SwiftUI, and Upgrading Expo - Refactor window size settings and remove unused persistence hook - Format openCustomerPortal callback - Simplify pre-commit hook setup - Update README structure - Remove Ultracite installation and migration scripts; update AGENTS.md for streamlined commands and code standards; add skills-lock.json for Ultracite dependency tracking. - Add emoji cards to docs hero - Add Raycast install image - Merge pull request #40 from praveenjuge/chrome-v2 - Add persistent hover save button - Add Raycast promo and grids - WIP: Chrome extension v2 changes - Add emoji support to pricing plans and update layout - Update FAQ section layout and simplify card title - Update docs home card layout - Add emoji support to CTASection and update layout with new bookmark emoji - Add new SVG and WEBP assets for app badges and emojis - Audit multi-app dependency updates * fix: update AI summary and tags text in card detail model tests * Update * Update CHANGELOG.md --------- Co-authored-by: Dhruv Suthar <[email protected]> Co-authored-by: raycastbot <[email protected]>
Adds two more commands to make this extension on pair with the script version: "Current Song" and "Copy Current Song's URL".