Skip to content

Add seventv-search extension - #27424

Merged
raycastbot merged 14 commits into
raycast:mainfrom
Paranjayy:ext/seventv-search
May 20, 2026
Merged

raycastbot merged 14 commits into
raycast:mainfrom
Paranjayy:ext/seventv-search

Conversation

@Paranjayy

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

- fix: final store validation (icon size, eslint config, type safety)
- feat: implement Direct Drop with HTML fallback and sanitized filenames
- Initial commit: 7TV Emotes Search with GQL Fix and Grid View
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Apr 25, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@Paranjayy

Copy link
Copy Markdown
Contributor Author

btw it is vibecoded

@Paranjayy
Paranjayy marked this pull request as ready for review April 25, 2026 12:22
- docs: upgrade README for store listing
- docs: add CHANGELOG.md and restore original icon
@greptile-apps

greptile-apps Bot commented Apr 25, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new seventv-search extension that lets users search, preview, and paste 7TV emotes directly from Raycast, with grid/list views, favorites, history, and several copy/drop actions.

  • The searchBarAccessory for the Grid component is wired up with a List.Dropdown element instead of a Grid.Dropdown, which is a TypeScript type mismatch that blocks the build.
  • JSON.parse is called on LocalStorage values without a try/catch, so corrupted persisted data silently prevents favorites and history from loading.
  • CHANGELOG.md uses a hardcoded date instead of the {PR_MERGE_DATE} placeholder required by Raycast tooling.

Confidence Score: 3/5

Not safe to merge — the extension will fail to build due to a wrong Dropdown component type used with Grid.

The extension will fail to build as submitted — the Grid component receives a List.Dropdown element as its searchBarAccessory where a Grid.Dropdown is required. Every other extension in the repo uses Grid.Dropdown for this slot. A second issue silently drops the favorites/history state when LocalStorage data is corrupted.

extensions/seventv-search/src/search.tsx — the accessory variable and the loadStorage function both need fixes before this can build and run correctly.

Important Files Changed

Filename Overview
extensions/seventv-search/src/search.tsx Main command file — List.Dropdown incorrectly used as Grid.searchBarAccessory (should be Grid.Dropdown), blocking the build; also missing try/catch around JSON.parse in loadStorage.
extensions/seventv-search/package.json Manifest is well-formed: includes $schema, categories, correct platforms, and lean dependencies with only @raycast/api as a runtime dependency.
extensions/seventv-search/CHANGELOG.md Uses a hardcoded date 2026-04-25 instead of the required {PR_MERGE_DATE} placeholder; entry title should also follow [Initial Release] convention.
extensions/seventv-search/eslint.config.mjs Correctly uses defineConfig from eslint/config with @raycast/eslint-config — matches the required pattern.
Prompt To Fix All With AI
Fix the following 3 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 3
extensions/seventv-search/src/search.tsx:349-381
The `accessory` variable is declared as a `<List.Dropdown>` element but is passed to `Grid.searchBarAccessory`, which expects a `ReactElement<Grid.Dropdown.Props>`. Every other extension in this repository that uses `Grid` with a `searchBarAccessory` uses `Grid.Dropdown` — this mismatch causes a TypeScript compile error that prevents the build from succeeding.

```suggestion
  const accessory = (
    <Grid.Dropdown
      tooltip="Sort & Filter"
      storeValue={true}
      onChange={(val) => {
        const [cat, sortVal, order] = val.split(":");
        setCategory(cat);
        setSortValue(sortVal);
        setSortOrder(order);
      }}
    >
      <Grid.Dropdown.Section title="Top Emotes">
        <Grid.Dropdown.Item
          title="Popular (All Time)"
          value="TOP:popularity:DESCENDING"
        />
        <Grid.Dropdown.Item
          title="Recently Created"
          value="TOP:created_at:DESCENDING"
        />
      </Grid.Dropdown.Section>
      <Grid.Dropdown.Section title="Trending">
        <Grid.Dropdown.Item
          title="Trending Right Now"
          value="TRENDING:popularity:DESCENDING"
        />
      </Grid.Dropdown.Section>
      <Grid.Dropdown.Section title="Alphabetical">
        <Grid.Dropdown.Item title="Name (A-Z)" value="TOP:name:ASCENDING" />
        <Grid.Dropdown.Item title="Name (Z-A)" value="TOP:name:DESCENDING" />
      </Grid.Dropdown.Section>
    </Grid.Dropdown>
  );
```

### Issue 2 of 3
extensions/seventv-search/src/search.tsx:56-59
`JSON.parse` throws a `SyntaxError` if the stored string is not valid JSON (e.g. if LocalStorage data is corrupted). Because `loadStorage` is an async function called from `useEffect` without a wrapping try/catch, the rejection is unhandled: favorites and history will silently fail to load and the user gets no feedback.

```suggestion
      const storedFavs = await LocalStorage.getItem<string>(FAVORITES_KEY);
      const storedHist = await LocalStorage.getItem<string>(HISTORY_KEY);
      try {
        if (storedFavs) setFavorites(JSON.parse(storedFavs));
        if (storedHist) setHistory(JSON.parse(storedHist));
      } catch {
        // Corrupted data — reset both keys so future writes start clean
        await LocalStorage.removeItem(FAVORITES_KEY);
        await LocalStorage.removeItem(HISTORY_KEY);
      }
```

### Issue 3 of 3
extensions/seventv-search/CHANGELOG.md:3
The Initial Release entry uses a hardcoded date instead of the required `{PR_MERGE_DATE}` placeholder. The Raycast tooling automatically replaces this placeholder with the actual merge date when the PR lands, so using a literal date here will leave incorrect metadata in the published extension.

```suggestion
## [Initial Release] - {PR_MERGE_DATE}
```

Reviews (4): Last reviewed commit: "optimise images" | Re-trigger Greptile

Comment thread extensions/seventv-search/package.json Resolved
@raycastbot

Copy link
Copy Markdown
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 May 9, 2026
@Paranjayy

Copy link
Copy Markdown
Contributor Author

btw it is vibecoded

Ready for review.

I’ve addressed the earlier feedback in later commits, and all checks are passing now. No further updates planned from my side unless maintainers request changes.

Thanks!

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label May 9, 2026
- remove .eslintrc.json file
- enhance .gitignore with additional entries
- update CHANGELOG for clarity on features
- replace icon files with new assets
- update package.json and package-lock.json for dependency upgrades
- improve README for better user guidance
- refactor search logic to prevent stale fetches
- rename actions for consistency and clarity

@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 95e16a4 into raycast:main May 20, 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.

Comment on lines +349 to +381
const accessory = (
<List.Dropdown
tooltip="Sort & Filter"
storeValue={true}
onChange={(val) => {
const [cat, sortVal, order] = val.split(":");
setCategory(cat);
setSortValue(sortVal);
setSortOrder(order);
}}
>
<List.Dropdown.Section title="Top Emotes">
<List.Dropdown.Item
title="Popular (All Time)"
value="TOP:popularity:DESCENDING"
/>
<List.Dropdown.Item
title="Recently Created"
value="TOP:created_at:DESCENDING"
/>
</List.Dropdown.Section>
<List.Dropdown.Section title="Trending">
<List.Dropdown.Item
title="Trending Right Now"
value="TRENDING:popularity:DESCENDING"
/>
</List.Dropdown.Section>
<List.Dropdown.Section title="Alphabetical">
<List.Dropdown.Item title="Name (A-Z)" value="TOP:name:ASCENDING" />
<List.Dropdown.Item title="Name (Z-A)" value="TOP:name:DESCENDING" />
</List.Dropdown.Section>
</List.Dropdown>
);

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 The accessory variable is declared as a <List.Dropdown> element but is passed to Grid.searchBarAccessory, which expects a ReactElement<Grid.Dropdown.Props>. Every other extension in this repository that uses Grid with a searchBarAccessory uses Grid.Dropdown — this mismatch causes a TypeScript compile error that prevents the build from succeeding.

Suggested change
const accessory = (
<List.Dropdown
tooltip="Sort & Filter"
storeValue={true}
onChange={(val) => {
const [cat, sortVal, order] = val.split(":");
setCategory(cat);
setSortValue(sortVal);
setSortOrder(order);
}}
>
<List.Dropdown.Section title="Top Emotes">
<List.Dropdown.Item
title="Popular (All Time)"
value="TOP:popularity:DESCENDING"
/>
<List.Dropdown.Item
title="Recently Created"
value="TOP:created_at:DESCENDING"
/>
</List.Dropdown.Section>
<List.Dropdown.Section title="Trending">
<List.Dropdown.Item
title="Trending Right Now"
value="TRENDING:popularity:DESCENDING"
/>
</List.Dropdown.Section>
<List.Dropdown.Section title="Alphabetical">
<List.Dropdown.Item title="Name (A-Z)" value="TOP:name:ASCENDING" />
<List.Dropdown.Item title="Name (Z-A)" value="TOP:name:DESCENDING" />
</List.Dropdown.Section>
</List.Dropdown>
);
const accessory = (
<Grid.Dropdown
tooltip="Sort & Filter"
storeValue={true}
onChange={(val) => {
const [cat, sortVal, order] = val.split(":");
setCategory(cat);
setSortValue(sortVal);
setSortOrder(order);
}}
>
<Grid.Dropdown.Section title="Top Emotes">
<Grid.Dropdown.Item
title="Popular (All Time)"
value="TOP:popularity:DESCENDING"
/>
<Grid.Dropdown.Item
title="Recently Created"
value="TOP:created_at:DESCENDING"
/>
</Grid.Dropdown.Section>
<Grid.Dropdown.Section title="Trending">
<Grid.Dropdown.Item
title="Trending Right Now"
value="TRENDING:popularity:DESCENDING"
/>
</Grid.Dropdown.Section>
<Grid.Dropdown.Section title="Alphabetical">
<Grid.Dropdown.Item title="Name (A-Z)" value="TOP:name:ASCENDING" />
<Grid.Dropdown.Item title="Name (Z-A)" value="TOP:name:DESCENDING" />
</Grid.Dropdown.Section>
</Grid.Dropdown>
);
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/seventv-search/src/search.tsx
Line: 349-381

Comment:
The `accessory` variable is declared as a `<List.Dropdown>` element but is passed to `Grid.searchBarAccessory`, which expects a `ReactElement<Grid.Dropdown.Props>`. Every other extension in this repository that uses `Grid` with a `searchBarAccessory` uses `Grid.Dropdown` — this mismatch causes a TypeScript compile error that prevents the build from succeeding.

```suggestion
  const accessory = (
    <Grid.Dropdown
      tooltip="Sort & Filter"
      storeValue={true}
      onChange={(val) => {
        const [cat, sortVal, order] = val.split(":");
        setCategory(cat);
        setSortValue(sortVal);
        setSortOrder(order);
      }}
    >
      <Grid.Dropdown.Section title="Top Emotes">
        <Grid.Dropdown.Item
          title="Popular (All Time)"
          value="TOP:popularity:DESCENDING"
        />
        <Grid.Dropdown.Item
          title="Recently Created"
          value="TOP:created_at:DESCENDING"
        />
      </Grid.Dropdown.Section>
      <Grid.Dropdown.Section title="Trending">
        <Grid.Dropdown.Item
          title="Trending Right Now"
          value="TRENDING:popularity:DESCENDING"
        />
      </Grid.Dropdown.Section>
      <Grid.Dropdown.Section title="Alphabetical">
        <Grid.Dropdown.Item title="Name (A-Z)" value="TOP:name:ASCENDING" />
        <Grid.Dropdown.Item title="Name (Z-A)" value="TOP:name:DESCENDING" />
      </Grid.Dropdown.Section>
    </Grid.Dropdown>
  );
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +56 to +59
const storedFavs = await LocalStorage.getItem<string>(FAVORITES_KEY);
const storedHist = await LocalStorage.getItem<string>(HISTORY_KEY);
if (storedFavs) setFavorites(JSON.parse(storedFavs));
if (storedHist) setHistory(JSON.parse(storedHist));

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 JSON.parse throws a SyntaxError if the stored string is not valid JSON (e.g. if LocalStorage data is corrupted). Because loadStorage is an async function called from useEffect without a wrapping try/catch, the rejection is unhandled: favorites and history will silently fail to load and the user gets no feedback.

Suggested change
const storedFavs = await LocalStorage.getItem<string>(FAVORITES_KEY);
const storedHist = await LocalStorage.getItem<string>(HISTORY_KEY);
if (storedFavs) setFavorites(JSON.parse(storedFavs));
if (storedHist) setHistory(JSON.parse(storedHist));
const storedFavs = await LocalStorage.getItem<string>(FAVORITES_KEY);
const storedHist = await LocalStorage.getItem<string>(HISTORY_KEY);
try {
if (storedFavs) setFavorites(JSON.parse(storedFavs));
if (storedHist) setHistory(JSON.parse(storedHist));
} catch {
// Corrupted data — reset both keys so future writes start clean
await LocalStorage.removeItem(FAVORITES_KEY);
await LocalStorage.removeItem(HISTORY_KEY);
}
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/seventv-search/src/search.tsx
Line: 56-59

Comment:
`JSON.parse` throws a `SyntaxError` if the stored string is not valid JSON (e.g. if LocalStorage data is corrupted). Because `loadStorage` is an async function called from `useEffect` without a wrapping try/catch, the rejection is unhandled: favorites and history will silently fail to load and the user gets no feedback.

```suggestion
      const storedFavs = await LocalStorage.getItem<string>(FAVORITES_KEY);
      const storedHist = await LocalStorage.getItem<string>(HISTORY_KEY);
      try {
        if (storedFavs) setFavorites(JSON.parse(storedFavs));
        if (storedHist) setHistory(JSON.parse(storedHist));
      } catch {
        // Corrupted data — reset both keys so future writes start clean
        await LocalStorage.removeItem(FAVORITES_KEY);
        await LocalStorage.removeItem(HISTORY_KEY);
      }
```

How can I resolve this? If you propose a fix, please make it concise.

almatkai pushed a commit to almatkai/raymes-extensions that referenced this pull request Jul 13, 2026
* Add seventv-search extension

- fix: final store validation (icon size, eslint config, type safety)
- feat: implement Direct Drop with HTML fallback and sanitized filenames
- Initial commit: 7TV Emotes Search with GQL Fix and Grid View

* Update seventv-search extension

- docs: upgrade README for store listing
- docs: add CHANGELOG.md and restore original icon

* Update seventv-search extension

- fix: restore popular filter logic
- docs: resize screenshots to 2000x1250
- feat: update extension icon to premium iridescent version
- style: fix prettier issues

* docs: finalize store documentation and changelog

* docs: remove background-revealing screenshots and reorganize gallery

* Update seventv-search extension

- fix: update lockfile for new api version
- fix: update raycast api and resolve breaking clipboard/jsx errors

* fix: resolve react type conflicts and correct image mask typo

* fix: use flexible react type versions for ci compatibility

* fix: definitive fix for legacy patterns and pinned types

* chore: sync lockfile for npm ci

* style: apply prettier and eslint formatting for ci compliance

* fix: replace invalid Icon.Grid with Icon.AppWindowGrid3x3 to resolve TS build error

* refactor: update seventv-search extension

- remove .eslintrc.json file
- enhance .gitignore with additional entries
- update CHANGELOG for clarity on features
- replace icon files with new assets
- update package.json and package-lock.json for dependency upgrades
- improve README for better user guidance
- refactor search logic to prevent stale fetches
- rename actions for consistency and clarity

* optimise images

---------

Co-authored-by: Dhruv Suthar <[email protected]>
Co-authored-by: raycastbot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants