Repository navigation
Ext/scrycast - #29054
Ext/scrycast#29054
Conversation
- Merge branch \'contributions/merge-1782409357204\' into contributions/merge-1782409232517 - Pull contributions - Pull contributions - Merge pull request raycast#4 from aayushpi/decks - added support for decks
|
Thank you for the update! 🎉 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
Greptile SummaryThis PR adds the initial Scrycast extension changelog entry.
Confidence Score: 5/5Safe to merge; the change is limited to a changelog entry. Only a metadata changelog file is changed, with no runtime code paths affected.
What T-Rex did
Reviews (4): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile |
| err.message.includes("invalid") || | ||
| err.message.includes("ignored") || | ||
| err.message.includes("Bad Request"); | ||
| const isRateLimited = err.message.includes("429") || err.message.toLowerCase().includes("too many"); | ||
| if (isRateLimited) { | ||
| showToast({ | ||
| style: Toast.Style.Failure, | ||
| title: "Rate limited by Scryfall", | ||
| message: "Wait a moment and try again.", | ||
| }); | ||
| } else if (!isNotFound && !isBadSyntax) { |
There was a problem hiding this comment.
Invalid Query Shows Stale Cards
When Scryfall rejects a malformed search with a details string containing invalid or ignored, this branch marks it as bad syntax and skips the toast. Because this request also uses keepPreviousData: true, the grid can keep showing cards from the previous successful query with no indication that the current query failed.
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/scrycast/src/search-view.tsx
Line: 98-108
Comment:
**Invalid Query Shows Stale Cards**
When Scryfall rejects a malformed search with a details string containing `invalid` or `ignored`, this branch marks it as bad syntax and skips the toast. Because this request also uses `keepPreviousData: true`, the grid can keep showing cards from the previous successful query with no indication that the current query failed.
How can I resolve this? If you propose a fix, please make it concise.| const isBadSyntax = | ||
| err.message.includes("invalid") || err.message.includes("ignored") || err.message.includes("Bad Request"); | ||
| const isRateLimited = err.message.includes("429") || err.message.toLowerCase().includes("too many"); | ||
| if (isRateLimited) { | ||
| showToast({ | ||
| style: Toast.Style.Failure, | ||
| title: "Rate limited by Scryfall", | ||
| message: "Wait a moment and try again.", | ||
| }); | ||
| } else if (!isNotFound && !isBadSyntax) { |
There was a problem hiding this comment.
Collection Search Keeps Stale Results
When collection search gets a Scryfall 400 whose details contain invalid or ignored, this handler suppresses the error instead of showing feedback. With keepPreviousData: true, the collection grid can keep rendering owned cards from the last successful search even though the current query was rejected.
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/scrycast/src/my-collection.tsx
Line: 132-141
Comment:
**Collection Search Keeps Stale Results**
When collection search gets a Scryfall 400 whose details contain `invalid` or `ignored`, this handler suppresses the error instead of showing feedback. With `keepPreviousData: true`, the collection grid can keep rendering owned cards from the last successful search even though the current query was rejected.
How can I resolve this? If you propose a fix, please make it concise.| if (body.details) message = body.details; | ||
| else if (body.warnings?.length) message = body.warnings.join("; "); | ||
| } catch { | ||
| /* use statusText */ | ||
| } | ||
| throw new Error(message); |
There was a problem hiding this comment.
parseScryfallResponse replaces the error message with Scryfall details or warnings and then throws without the HTTP status. Callers now test err.message for 400, 404, and 429, so those status-code checks become ineffective whenever Scryfall returns a JSON error body, and rate limits or not-found responses depend on fragile wording instead of the actual response status.
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/scrycast/src/shared.tsx
Line: 84-89
Comment:
**Status Code Is Dropped**
`parseScryfallResponse` replaces the error message with Scryfall `details` or `warnings` and then throws without the HTTP status. Callers now test `err.message` for `400`, `404`, and `429`, so those status-code checks become ineffective whenever Scryfall returns a JSON error body, and rate limits or not-found responses depend on fragile wording instead of the actual response status.
How can I resolve this? If you propose a fix, please make it concise.
0xdhrv
left a comment
There was a problem hiding this comment.
Could you resovle the merge conflict?
I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊
| @@ -1,4 +1,4 @@ | |||
| ## [Unreleased] - 2026-06-26 | |||
| ## [Release 1] - 2026-06-26 | |||
There was a problem hiding this comment.
This heading still uses 2026-06-26 instead of {PR_MERGE_DATE}. If the extension is merged on another day, the publishing flow cannot substitute the real merge date and the released changelog shows the wrong date.
Rule Used: What: In Raycast extension changelogs, `{PR_MERGE_... (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/scrycast/CHANGELOG.md
Line: 1
Comment:
**Merge Date Stays Hard-Coded**
This heading still uses `2026-06-26` instead of `{PR_MERGE_DATE}`. If the extension is merged on another day, the publishing flow cannot substitute the real merge date and the released changelog shows the wrong date.
**Rule Used:** What: In Raycast extension changelogs, `{PR_MERGE_... ([source](https://app.greptile.com/raycast/github/raycast/extensions/-/custom-context?memory=799af734-ebd9-4b40-9ffd-97a70fc71c8a))
How can I resolve this? If you propose a fix, please make it concise.
Done! |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
I think your previous PR is already merged, and this doesn't seem to have any diff, please check |
Hello! I was just trying to update the change log, which did not merge with the last one. |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
* Update scrycast extension - Merge branch \'contributions/merge-1782409357204\' into contributions/merge-1782409232517 - Pull contributions - Pull contributions - Merge pull request raycast#4 from aayushpi/decks - added support for decks * Update CHANGELOG.md, add platforms field and optimise images * Update CHANGELOG for Release 1 * Update extensions/scrycast/CHANGELOG.md Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update CHANGELOG.md --------- Co-authored-by: raycastbot <[email protected]> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool