Repository navigation
Add seventv-search extension - #27424
Conversation
- 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
|
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. |
|
btw it is vibecoded |
- docs: upgrade README for store listing - docs: add CHANGELOG.md and restore original icon
Greptile SummaryThis PR adds a new
Confidence Score: 3/5Not 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 extensions/seventv-search/src/search.tsx — the Important Files Changed
Prompt To Fix All With AIFix 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 |
- fix: restore popular filter logic - docs: resize screenshots to 2000x1250 - feat: update extension icon to premium iridescent version - style: fix prettier issues
- fix: update lockfile for new api version - fix: update raycast api and resolve breaking clipboard/jsx errors
|
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 😊 |
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! |
- 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
|
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. |
| 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> | ||
| ); |
There was a problem hiding this 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.
| 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.| 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)); |
There was a problem hiding this 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.
| 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.* 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]>
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder