Skip to content

Ext/scrycast - #29054

Merged
raycastbot merged 6 commits into
raycast:mainfrom
aayushpi:ext/scrycast
Jun 27, 2026
Merged

raycastbot merged 6 commits into
raycast:mainfrom
aayushpi:ext/scrycast

Conversation

@aayushpi

@aayushpi aayushpi commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

aayushpi and others added 3 commits June 25, 2026 10:47
- 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
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: scrycast Issues related to the scrycast extension platform: macOS OP is author The OP of the PR is the author of the extension labels Jun 26, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

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-apps

greptile-apps Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds the initial Scrycast extension changelog entry.

  • Added the release heading for Scrycast.
  • Listed the collection search feature in the changelog.

Confidence Score: 5/5

Safe to merge; the change is limited to a changelog entry.

Only a metadata changelog file is changed, with no runtime code paths affected.

T-Rex T-Rex Logs

What T-Rex did

  • Executed a before/after revision check to verify repository state, capturing the base revision output (Unreleased 2026-06-26 and the Search My Collection Added entry) and the head revision output (Release 1 2026-06-27 with the same entry), with both commands exiting successfully (code 0).

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (4): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile

Comment thread extensions/scrycast/CHANGELOG.md Resolved
Comment on lines +98 to +108
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) {

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.

P1 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.

Comment on lines +132 to +141
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) {

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.

P1 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.

Comment on lines +84 to +89
if (body.details) message = body.details;
else if (body.warnings?.length) message = body.warnings.join("; ");
} catch {
/* use statusText */
}
throw new Error(message);

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.

P2 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.

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 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 😊

@0xdhrv
0xdhrv marked this pull request as draft June 26, 2026 18:08
@0xdhrv 0xdhrv self-assigned this Jun 26, 2026
@aayushpi
aayushpi marked this pull request as ready for review June 26, 2026 18:24
Comment thread extensions/scrycast/CHANGELOG.md Outdated
@@ -1,4 +1,4 @@
## [Unreleased] - 2026-06-26
## [Release 1] - 2026-06-26

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.

P1 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)

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.

@aayushpi

Copy link
Copy Markdown
Contributor Author

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 😊

Done!

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@0xdhrv

0xdhrv commented Jun 26, 2026

Copy link
Copy Markdown
Member

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 😊

Done!

I think your previous PR is already merged, and this doesn't seem to have any diff, please check

@0xdhrv
0xdhrv marked this pull request as draft June 26, 2026 18:35
@aayushpi
aayushpi marked this pull request as ready for review June 26, 2026 18:38
@aayushpi

Copy link
Copy Markdown
Contributor Author

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 😊

Done!

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.

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 467aa54 into raycast:main Jun 27, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

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

almatkai pushed a commit to almatkai/raymes-extensions that referenced this pull request Jul 13, 2026
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: scrycast Issues related to the scrycast extension OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants