Skip to content

Update svgl extension#17527

Merged
thomaspaulmann merged 3 commits intoraycast:mainfrom
ridemountainpig:svgl-ai-ext
Apr 2, 2025
Merged

Update svgl extension#17527
thomaspaulmann merged 3 commits intoraycast:mainfrom
ridemountainpig:svgl-ai-ext

Conversation

@ridemountainpig
Copy link
Contributor

Description

✨ AI Enhancements add AI Tools to:

  • Generate SVG Logos
  • Create SVG Components

Screencast

CleanShot.2025-03-04.at.10.03.18.mp4

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: svgl Issues related to the svgl extension OP is contributor The OP of the PR is a contributor of the extension labels Mar 4, 2025
@raycastbot
Copy link
Collaborator

raycastbot commented Mar 4, 2025

Thank you for your contribution! 🎉

🔔 @1weiho 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.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR adds AI capabilities to the svgl extension, introducing tools for generating SVG logos and framework-specific components through natural language commands.

4 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +32 to +34
"name": "get-svg-logo",
"title": "Get SVG Logo",
"description": "Get SVG logo"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Tool description is redundant with title. Consider adding more specific description about what the tool does

Comment on lines +38 to +40
"title": "Get SVG Component",
"description": "Get SVG component"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Tool description is redundant with title. Consider adding more specific description about what the tool does


const svgContent = await fetchSvg(svgUrl);
await Clipboard.copy(svgContent);
return `✅ ${name} SVG ${framework} component copied to clipboard!`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: framework variable is used in success message but could be undefined here since this is outside the framework conditional block

Suggested change
return `✅ ${name} SVG ${framework} component copied to clipboard!`;
return `✅ ${name} SVG copied to clipboard!`;


case "vue":
case "svelte":
framework = framework.toLowerCase().charAt(0).toUpperCase() + framework.slice(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: reassigning framework parameter could cause issues - better to use a new variable for the capitalized version

return await getSvg(filteredSvgs[0]);
}

const results = await Promise.all(filteredSvgs.map(getSvg));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Promise.all will fail completely if any single promise rejects - consider using Promise.allSettled instead

@raycastbot
Copy link
Collaborator

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 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Mar 25, 2025
@ridemountainpig
Copy link
Contributor Author

Remove the stalled label

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Mar 25, 2025
Copy link
Member

@thomaspaulmann thomaspaulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very cool! Love to search for SVGs with natural language 🙌

@thomaspaulmann thomaspaulmann merged commit 42acf51 into raycast:main Apr 2, 2025
9 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Apr 2, 2025

Published to the Raycast Store:
https://raycast.com/1weiho/svgl

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@ridemountainpig ridemountainpig deleted the svgl-ai-ext branch April 15, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: svgl Issues related to the svgl extension OP is contributor The OP of the PR is a contributor of the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants