raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.22k stars 2.91k forks source link

[Steam] Add more info to the initial search #13620

Open whitespacecode opened 1 month ago

whitespacecode commented 1 month ago

Extension

https://www.raycast.com/KevinBatdorf/steam

Description

I was playing around in the code to see if i could add more info to the initial search. Just the price alone would be enough for me.. It kinda works by changing line 25 in ListItems.tsx from

const { data, isError: error } = useGameData({ appid: game.appid, execute: ready });

to

const { data, isError: error } = useGameData({ appid: game.appid });

And adding the price data to the accessories steam-7

But when you search and have a lot of data the application would just crash. I think the useGameData fetch is not ready for asynchronous loading data? steam-6

Who will benefit from this feature?

No response

Anything else?

When fetching the full gamedata the initial search could show even more at first glance like is_free or not in green color, or using list.metaData with a toggle.

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @KevinBatdorf you might want to have a look.

💡 Author and Contributors commands The author and contributors of `KevinBatdorf/steam` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
KevinBatdorf commented 1 month ago

I just tried the extension out now without any changes and after using it a bit I got the memory error. The extension is a bit old and probably due for a rewrite with better local caching and some other features like checking whether a game is installed, and maybe a better "next game to play" recommendations system.

What other features would you like?

whitespacecode commented 1 month ago

I game on windows so for me personally installed or not wouldn't be needed. I did see you can provide your own api key to the extension? Not sure if all that could be improved with a simple login to steam button to provide credentials.