Add similarweb extension#27452
Conversation
|
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. |
Greptile SummaryThis PR adds a new Similarweb extension with two commands: Show Website Data (fetches analytics for a domain or active browser tab) and History (browses locally-stored snapshots). The code is well-structured with solid error handling, runtime type guards, and clean separation of concerns across
Confidence Score: 4/5Safe to merge after fixing the misleading toast title on snapshot save failure. One P1 finding: the toast style/title mismatch when history persistence fails gives users contradictory signals about what went wrong. No P0 issues. All previously flagged concerns (missing categories, unused @raycast/utils) are resolved in the current state of the PR. extensions/similarweb/src/show-website-data.tsx — misleading Toast.Style.Failure title on lines 62–66. Important Files Changed
Prompt To Fix All With AIThis is a comment left during a code review.
Path: extensions/similarweb/src/show-website-data.tsx
Line: 62-66
Comment:
**Misleading failure toast when snapshot save fails**
When the API fetch succeeds but `saveSnapshot` throws, the toast uses `Toast.Style.Failure` (red) with the title `"Loaded website data"`. Users see a red failure indicator whose title implies the data load itself succeeded — contradictory signals that will cause confusion about what actually went wrong. The title should reflect the actual failure.
```suggestion
await showToast({
style: Toast.Style.Failure,
title: "Could Not Save Snapshot",
message: "The snapshot could not be stored in local history.",
});
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (2): Last reviewed commit: "refactor(format): replace formatNumber w..." | Re-trigger Greptile |
Description
Fetch Similarweb analytics, which include rankings, traffic trends, and audience insights for any website, and explore the locally stored history of your lookups.
Commads/Features
demo.yafw.balanced.mp4
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder