Repository navigation
Update trovu extension - #26995
Update trovu extension#26995
Conversation
- Whitespace. - Merge branch \'contributions/merge-1775609788659\' into rc-submit-to-target-url - Pull contributions - Merge branch \'contributions/merge-1775608885766\' into rc-submit-to-target-url - Pull contributions - npm ci - Merge branch \'contributions/merge-1775608628008\' into rc-submit-to-target-url - Pull contributions - ray lint --fix - Add more integration tests. - Whitespace. - Remove unused js. - Whitespace. - Remove unused eslint directive. - Add integration tests. - Update package-lock. - Set dist as output dir. - Upgrade @types/react and @types/node. - Add basic smoke test. - Cleanup. - Import QueryParser. - Use current env on submit. - Show toasts. - Bump version in package.json. - Add nvmrc. - Merge branch \'contributions/merge-1775601732865\' into rc-submit-to-target-url - Pull contributions - Add no-explicit-any. - Bump version to 1.3.0. - Update Changelog. - Dont set searchText to empty string. - Create loadEnv() and call it on reload. - npm audit fix - Set empty suggestions. - Order alphabetically. - Set strict to false. - Extend includes. - Add modules.d.ts. - Add symlinks. - Merge pull request raycast#552 from trovu/dependabot/pip/urllib3-2.6.3 - Merge pull request raycast#580 from trovu/codex-remove-ts-nocheck - Make Logger quieter in tests - Merge pull request raycast#579 from trovu/log-only-warning-and-error-on-calls - Log only warnings and errors on calls. - Merge verify-safe into test. - Merge branch \'master\' into codex-remove-ts-nocheck - Merge pull request raycast#578 from trovu/codex/add-unit-tests - Add more unit tests. - Add tests. - Remove all ts-nocheck. - Merge pull request raycast#577 from trovu/codex-playwright-migration - Add test-fe to deploy.yml. - Add ignore patterns. - Specify root path. - Replace cypress with playwright. - Merge pull request raycast#576 from trovu/update-deps - npm audit fix - Merge pull request raycast#575 from trovu/codex-safe-codex-setup - Update docs for nvmrc. - Use node-version-file. - Update AGENTS.md. - Add verify-safe. - Add ignores. - Add root paths. - Add .nvmrc - Add AGENTS.md. - kwdb: Fix include, update URL. - gai: Add Google AI Mode. - commons: Change to wmc. - Change link to contributors. - Whitespace. - thl: Add Thalia.de - Merge pull request raycast#572 from trovu/update-deps - npm audit fix - otto: Typo. - Add npm run check-pip - Merge pull request raycast#568 from trovu/update-deps - npm audit fix --force - npm audit fix - kfl: Fix include. - ana: Update URL. - jf, jfg: Add Junge Freiheit. - Normalize. - kaufland: Move to kfl. - Merge pull request raycast#567 from trovu/566-update-documentation-for-node-versions - Docs: Point to node version in .deploy script. - Merge pull request raycast#564 from trovu/update-deps - pipenv update pymdown-extensions - pipenv update urllib3 - npm audit fix - Merge pull request raycast#563 from trovu/rc-submit-to-target-url - Add eslint-disable @typescript-eslint/ban-ts-comment. - Merge pull request raycast#562 from trovu/rc-submit-to-target-url - Reapply "Redirect to target URL." - Reapply "Import CallHandler." - Reapply "Link CallHandler." - Revert "Link CallHandler." - Revert "Import CallHandler." - Revert "Redirect to target URL." - Redirect to target URL. - Import CallHandler. - Link CallHandler. - Merge pull request raycast#561 from trovu/optimize - Memoize SuggestionsGetter. - Only necessary deps. - Set types. - Don\'t submit on reload, show toast. - Optimize. - npm audit fix - Merge pull request raycast#560 from trovu/npm-audit-fix - Add licenses - Changed log after Remove rollup-plugin-watch. - Add overrides for "serialize-javascript": "^7.0.3". - Remove rollup-plugin-watch. - Stop using rollup-plugin-watch. - node-version: 22.22.0 - fix: update rollup-terser and resolve dependency conflicts - npm audit fix --force - npm install @rollup/plugin-terser@latest --save-dev - npm audit fix --force - npm audit fix - Merge pull request raycast#558 from trovu/532-make-link-to-impressum-configurable - Use placeholder. - Add placeholder. - Add impressum to trovu.config.default.yml. - Merge pull request raycast#557 from stefanschramm/add-debm - debm: Add Debian Manpages. - m: Update URL. - Claude / cld: Change keyword, add examples, use include. - Merge pull request raycast#556 from jessek/master - Add homepage and query for Claude AI - ana: Update URL. - pid: Add PID Spojení. - m: Harmonize capitalization in title. - mi: Add MetaGer image search. - acl, aclg: Update URL. - Normalize. - kowig: include kowi 1. - Merge branch \'master\' of github.com:trovu/trovu - Merge pull request raycast#553 from stefanschramm/add-kowi - kowig: Add Koch-Wiki search. - kowi: Add Koch-Wiki. - Add Context 7. - build(deps): bump urllib3 from 2.5.0 to 2.6.3 - ana: Update URL. - kgi: Add Kagi Image Search. - ao: Update URL. - oopdf: Add Ocean of PDF. - gss: Add gss 1. - gos: Fix URL, add \'site:\' - tin: Add TuneIn.com. - g: Add Google.se. - Fix include. - grpg: Add Grokipedia via Google. - grkp: Move Grokipedia from grp. - grkp: Add Grokipedia. - Merge pull request raycast#545 from trovu/544-disable-autocorrection-in-query-input - Revert "Deploy this branch." - Deploy this branch. - Add autocorrect="off". - Merge pull request raycast#543 from trovu/update-deps - npm audit fix - rmb: Add Rumble. - gos: Add Google Web, only in site. - pypi: Fix URL, add examples. - Add guide on How to install a specific version. Close raycast#540. - ifi: Use include, add examples. - Merge pull request raycast#539 from jessek/ifixit - Change to ifi - Add iFixit Repair Guides - rfc 1: Fix url. - Merge pull request raycast#537 from trovu/536-main-page-has-a-broken-link-for-how-people-use-trovu - Use placeholder. - Fix broken link to testimonials. - atd: Switch to working domain. - mema: Add Memory Alpha. - Merge pull request raycast#535 from trovu/respect-dark-color-scheme - Process page: respect dark color scheme. - bkg: Remove another aid. - bkg: Remove aid as it stopped working. - chocolatey: Rename to ccl, add 0-arg. - Search for Windows packages in the Chocolatey repository - Merge pull request raycast#529 from trovu/dependabot/pip/urllib3-2.5.0 - npm audit fix - Merge pull request raycast#534 from trovu/home - Don\'t deploy this branch. - Shorter desc. - Remove margin, hide also on web-ext. - More margin. - Match to other titles below. - Add Get more and Get advanced. - Shorter tagline. - Disable FOUC, keep set focus. - Revert "Default is to show." - Default is to show. - Change placeholder. - Change margin. - Move taglines. - Show tagline. - Iterate over all elements. - Explainer as class. - Merge branch \'master\' into home - nmb: Add Numbeo. - npm audit fix - Object to path. - Adjust to new size. - New font, new size. - New tagline. - Merge branch \'master\' into home - ana: Shorter keywords, add titles. - ana: Add filetype-specific shortcuts, description. - yh: Grammar. - yh, yha: Add examples, description. - Add yh 1. - yh, yha: Add YunoHost (app store) shortcuts. - padding. - to path. - More font tweak. - Try other font. - Make black. - Change margins. - Add bg. - Don\'t break within. - Font as path. - Link sketch. - New tagline. - Fix color and arrow size. - Deploy this branch. - Add examples and tagline. - Add sketch. - Remove intro. - Remove typewriter. - build(deps): bump urllib3 from 2.4.0 to 2.5.0 - Merge pull request raycast#527 from trovu/package-updates - Merge pull request raycast#528 from trovu/dependabot/npm_and_yarn/ext/raycast/brace-expansion-1.1.12 - build(deps): bump brace-expansion from 1.1.11 to 1.1.12 in /ext/raycast - Merge pull request raycast#526 from trovu/dependabot/pip/requests-2.32.4 - build(deps): bump requests from 2.32.3 to 2.32.4 - npm audit fix. - orm: Add 0-arg. - orcid: Add ORCID. - dcl: Add decathlon. - dat: Add Datart. - Merge branch \'master\' of github.com:trovu/trovu - Shorter 1st step. - Shorten typewriter desc. - gcal: Update URL. - Merge branch \'home-with-3-text-intros\' - Remove colon. - Merge pull request raycast#525 from trovu/home-with-3-text-intros - Revert "Deploy." - Deploy. - No padding on explainer. - Change wording. - Merge branch \'master\' into home-with-3-text-intros - Merge pull request raycast#523 from trovu/522-show-search-results-when-homepage-is-called-with-query-parameter - Add test if not_found also shows suggestions. - Toggle by query only after the query input is set. - kg: Add Kagi. - plmg: Add Polymarket via Google. - ap: Fix. - eetf: Add extraETF. - jetf: Add JustETF. - npm audit fix - zen: Move to znd. - osf: Add examples. - zen: Add Zenodo. - osf: Add OSF. - Move letter up. - hotu: Add 0-arg. - hoo: Move to hgl, add 0-arg, elaborate. - hm: Add 0-arg, elaborate. - Remove duplicate. - hdb: Add 0-arg - hbr: Add 0-arg. - html-pdf: Add 0-arg, add example. - Own row. - Remove unused. - Create new explainer. - Add tag. - Set letter for next. - gtrends: Add 0-arg. - gsheets, gslides: Move to gsht, gsld; add 0-arg. - gpo: Add 0-arg. - god: Remove broken. - gmts: Remove broken. - gilson: Move to .ch.gsn. - gfp: Add 0-arg. - gem: Deprecate to rbg. - gdc: Add 0-arg. - gch: Deprecate to .ch.g. - gcbug: Delete broken. - gc: Delete broken. - gamespot: Move to gsp, add 0-arg. - flu: Add 0-arg. - fbpe: Fix URL. - html2pdf: Move to h2p. - guk: Deprecate to .gb.g. - Blog: Story of Trovu: From Generated Forms to the Command Line - gns: Fix language. - Change highlight color. - Add new blog article: Story of Trovu: The Startpage Generator - Put back typewriter. - of: Remove broken. - correos: Move to .es.crsl. - Typo. - Update for today. - plmw: Add Polymarket, my watchlist. - Fix example. - rea: Move to .de.rea. - otto: Move to .de.otto. - nobi: Move to .de.nbi. - mouser: move to .de.msr. - mink: Move to mnk. - mind: Move to .de.mft. - Add tag. - gpa: Add 0-arg. - Normalize. - anks: Move to aks. - medipreis: Move to .de.mdp. - Remove mdzf, already exists as mfs. - Change keyword to mdzf. - med: Move Medizinfuchs to .de.medf. - ffr: Deprecate to de. - ccctv: Add search. - fpl. Move to pl. - ccc-tv: Deprecate to ccctv. - fpl: Filmpolski.pl, move to .pl. - Highlight first blog item. - Replace typewriter with msg. - Link article. - Add article. - Normalize. - Merge branch \'master\' of github.com:trovu/trovu - Merge pull request raycast#520 from stefanschramm/add-espr - espr: Add Espressif ESP Component Registry. - skp: Add Skąpiec. - Fix typos. - plm, plml: Add Polymarket and learn.polymarket. - Merge pull request raycast#519 from trovu/ignore-old-namespaces - Remove old-o namespaces. - Google Web: Move from u to gw. gw was broken anyway. - u: Add examples. - u: Add AI-Free Google Search. - unsp: Add unsplash.com. - lw, lwg: Add LessWrong.com. - Move lampenwelt to .de and rename to lpw. - eafg: Add Effective Altruism Forum via Google. - eaf: Add EA forum. - fedora-wiki: Point to fedw. - filmweb.pl: Point to pl. - Grammar. - fw: Fix URL. - Title according to standard. - fd: Move to en. - f was done. - Add 0-arg. - Add fedbug 1. - fbv: Add 0-arg. - flt: Add 0-arg. - Remove broken. - Facebook: Add 0-arg. - Move fblint to fbdb. - anks: Add Anki Shared Decks. - cong: Remove "Google as a concordancer". - fhb: Add Flathub. - Merge pull request raycast#509 from trovu/508-raycast-trovu-constanly-loading-environment - npm audit fix
|
Thank you for your contribution! 🎉 🔔 @georgjaehnig you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="ext/trovu"
FORK_URL="https://github.com/georgjaehnig/raycast-extensions.git"
EXTENSION_NAME="trovu"
REPO_NAME="raycast-extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. |
Greptile SummaryThis PR updates the trovu extension to v1.3.0, changing query submission to resolve shortcut URLs directly via Confidence Score: 5/5Safe to merge; all findings are P2 style suggestions that do not affect runtime behavior. The functional change is well-implemented and covered by new integration tests. All findings are P2 convention issues (manual Preferences type, navigator.language fallback, stale module declarations) that do not block correct operation. src/index.tsx (manual Preferences interface), src/modules.d.ts (stale ambient declarations)
|
| Filename | Overview |
|---|---|
| extensions/trovu/src/index.tsx | Main command component refactored to call shortcut URLs directly via CallHandler; manually defines Preferences interface against convention |
| extensions/trovu/src/core/src/ts/modules/Env.ts | Core environment module migrated to TypeScript; uses navigator.language as fallback for locale which conflicts with Raycast-only locale preferences |
| extensions/trovu/src/core/src/ts/modules/CallHandler.ts | Core call handler migrated to TypeScript; getRedirectResponse now used directly from Raycast UI |
| extensions/trovu/src/index.test.tsx | New integration tests covering query submission, environment loading, reload behavior, and suggestion detail rendering |
| extensions/trovu/jest.config.js | New Jest configuration using ts-jest with jsdom test environment |
| extensions/trovu/eslint.config.mjs | ESLint config now disables @typescript-eslint/no-explicit-any, permitting broad any usage across the codebase |
| extensions/trovu/src/modules.d.ts | Module declarations still reference old import paths (./core/Env.js, ./core/SuggestionsGetter.js) that are no longer used |
| extensions/trovu/CHANGELOG.md | New 1.3.0 entry correctly uses {PR_MERGE_DATE} placeholder and is placed at the top |
| extensions/trovu/src/core/src/ts/modules/SuggestionsGetter.ts | Suggestions retrieval migrated to TypeScript with no functional changes |
| extensions/trovu/src/core/src/ts/modules/NamespaceFetcher.ts | Namespace fetching migrated to TypeScript with no functional changes |
Comments Outside Diff (3)
-
extensions/trovu/src/index.tsx, line 11-15 (link)Manually defined Preferences interface
The
Preferencesinterface is manually defined here, but Raycast auto-generates this inraycast-env.d.tsat build time. Keeping a manual definition risks it drifting out of sync withpackage.json's preference declarations. Remove the interface and rely on the generatedPreferencestype fromraycast-env.d.ts.Rule Used: What: Don't manually define
Preferencesfor `get... (source)Prompt To Fix With AI
This is a comment left during a code review. Path: extensions/trovu/src/index.tsx Line: 11-15 Comment: **Manually defined Preferences interface** The `Preferences` interface is manually defined here, but Raycast auto-generates this in `raycast-env.d.ts` at build time. Keeping a manual definition risks it drifting out of sync with `package.json`'s preference declarations. Remove the interface and rely on the generated `Preferences` type from `raycast-env.d.ts`. **Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/review/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8)) How can I resolve this? If you propose a fix, please make it concise.
-
extensions/trovu/src/core/src/ts/modules/Env.ts, line 357-363 (link)navigator.languageused for locale fallbackThis method reads
navigator.languageto determine locale defaults. In Raycast extensions, locale-dependent functionality should rely on the preferences API rather thannavigator.language. Sincelanguageandcountryare already required preferences in this extension, this fallback is unnecessary in the Raycast context.Rule Used: What: Do not implement custom localization logic i... (source)
Prompt To Fix With AI
This is a comment left during a code review. Path: extensions/trovu/src/core/src/ts/modules/Env.ts Line: 357-363 Comment: **`navigator.language` used for locale fallback** This method reads `navigator.language` to determine locale defaults. In Raycast extensions, locale-dependent functionality should rely on the preferences API rather than `navigator.language`. Since `language` and `country` are already required preferences in this extension, this fallback is unnecessary in the Raycast context. **Rule Used:** What: Do not implement custom localization logic i... ([source](https://app.greptile.com/review/custom-context?memory=78677f74-64f7-483b-b90d-9c33e2e049da)) How can I resolve this? If you propose a fix, please make it concise.
-
extensions/trovu/src/modules.d.ts, line 1-35 (link)This file declares ambient modules for
"./core/Env.js"and"./core/SuggestionsGetter.js", butindex.tsxnow imports from"./core/src/ts/modules/Env"and"./core/src/ts/modules/SuggestionsGetter". These declarations no longer match the actual import paths and are effectively dead code.Prompt To Fix With AI
This is a comment left during a code review. Path: extensions/trovu/src/modules.d.ts Line: 1-35 Comment: **Stale module declarations** This file declares ambient modules for `"./core/Env.js"` and `"./core/SuggestionsGetter.js"`, but `index.tsx` now imports from `"./core/src/ts/modules/Env"` and `"./core/src/ts/modules/SuggestionsGetter"`. These declarations no longer match the actual import paths and are effectively dead code. How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/trovu/src/index.tsx
Line: 11-15
Comment:
**Manually defined Preferences interface**
The `Preferences` interface is manually defined here, but Raycast auto-generates this in `raycast-env.d.ts` at build time. Keeping a manual definition risks it drifting out of sync with `package.json`'s preference declarations. Remove the interface and rely on the generated `Preferences` type from `raycast-env.d.ts`.
**Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/review/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8))
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: extensions/trovu/src/core/src/ts/modules/Env.ts
Line: 357-363
Comment:
**`navigator.language` used for locale fallback**
This method reads `navigator.language` to determine locale defaults. In Raycast extensions, locale-dependent functionality should rely on the preferences API rather than `navigator.language`. Since `language` and `country` are already required preferences in this extension, this fallback is unnecessary in the Raycast context.
**Rule Used:** What: Do not implement custom localization logic i... ([source](https://app.greptile.com/review/custom-context?memory=78677f74-64f7-483b-b90d-9c33e2e049da))
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: extensions/trovu/src/modules.d.ts
Line: 1-35
Comment:
**Stale module declarations**
This file declares ambient modules for `"./core/Env.js"` and `"./core/SuggestionsGetter.js"`, but `index.tsx` now imports from `"./core/src/ts/modules/Env"` and `"./core/src/ts/modules/SuggestionsGetter"`. These declarations no longer match the actual import paths and are effectively dead code.
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "Use symlink for global.d.ts." | Re-trigger Greptile
- Remove unused. - Update paths. - Remove Preferences interface.
|
Greptile encountered an error while reviewing this PR. Please reach out to [email protected] for assistance. |
- Updated dependencies in package.json to latest versions for better performance and security. - Changed import of countries-list to use namespace import for consistency. - Refactored getLanguageAndCountryFromBrowser to rely on extension preferences instead of navigator.language. - Deprecated getNavigatorLanguage method to avoid using global navigator. - Enhanced tsconfig.json by adding DOM and DOM.Iterable libraries and specifying node types.
|
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. |
Description
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder