Skip to content

Add Luna Search extension - #14006

Merged
raycastbot merged 14 commits into
raycast:mainfrom
relevantsam:main
Aug 22, 2024
Merged

raycastbot merged 14 commits into
raycast:mainfrom
relevantsam:main

Conversation

@relevantsam

@relevantsam relevantsam commented Aug 13, 2024 •

Copy link
Copy Markdown
Contributor

Description

Adds a new extension for searching Amazon Luna, quick copying of the URLs for games, and direct link to play. Supports exploring the trending games, seeing the various metadata about games.

Screencast

Pretty straight forward so adding the metadata screenshots for reference from the PR:
luna-search-1
luna-search-2
luna-search-3
luna-search-4
luna-search-5

Checklist

@raycastbot

Copy link
Copy Markdown
Collaborator

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.

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Aug 13, 2024

@pernielsentikaer pernielsentikaer left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you:

Review

  • It’s pretty hard to see the logo in light appereance as you can see in above image - you can provide a dark alternative

luna-search 2024-08-21 at 08 50 31

  • You should be able to use useFetch which also caches the data, you can use execute to let it know it shouldn’t search with empty search string - but the current way also works 🙂
  • Does the API support pagination? If yes, then it’s possible to paginate results
  • Update metadata images after corrections 🙂

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

@pernielsentikaer pernielsentikaer self-assigned this Aug 21, 2024
@relevantsam

Copy link
Copy Markdown
Contributor Author

Thanks for the review!

* It’s pretty hard to see the logo in light appereance as you can see in above image - you can provide a [dark alternative](https://developers.raycast.com/api-reference/user-interface/icons-and-images#image)

Tracked down a light-mode appropriate logo:
luna-search-1

* You should be able to use [useFetch](https://developers.raycast.com/utilities/react-hooks/usefetch) which also caches the data, you can use `execute` to let it know it shouldn’t search with empty search string - but the current way also works 🙂

I looked at the useFetch API. Pretty neat! I could imagine a way I could hook into my expiring cache to get the control over the freshness of the data and rate of requests, but I'm pretty happy with the service I have at the moment.

* Does the API support pagination? If yes, then it’s possible to [paginate results](https://developers.raycast.com/api-reference/user-interface/grid#pagination)

No, but to protect for memory usage based on image display etc, I went ahead and implemented a basic pagination approach on the grid.

* Update metadata images after corrections 🙂

Done! Will update the PR's images.

@pernielsentikaer

Copy link
Copy Markdown
Contributor

That looks so much better, let's get the first version live 🔥

@raycastbot
raycastbot merged commit 756845b into raycast:main Aug 22, 2024
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Aug 22, 2024

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@relevantsam).
Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants