Skip to content

Update google-books extension - #25235

Merged
raycastbot merged 11 commits into
raycast:mainfrom
chrismessina:ext/google-books
Feb 20, 2026
Merged

raycastbot merged 11 commits into
raycast:mainfrom
chrismessina:ext/google-books

Conversation

@chrismessina

@chrismessina chrismessina commented Feb 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

I decided to update this extension because I was hitting its rate limits. I started by adding support for setting a personal API token, but then decided to make some other improvements, like adding a Book Covers view, supporting Raycast Icons, adding a toggleable Detail sidebar to replace the ugly markdown page, and then added various actions for copying book data.

Updates:

  • feat: toggleable detail sidebar in List view showing book metadata
  • feat: switchable views — List & Grid
  • feat: "View Book Cover"
  • feat: Allow user to add Google Books API key to avoid throttling
  • refactor: reorganize code into views/, actions/, and utils/ directories
  • refactor: replace all emojis with Raycast Icon equivalents
  • refactor: extract shared BookActionSections component for consistent actions across views
  • refactor: improved API access efficiency by reducing requested data
  • fix: correct singular/plural in section subtitles ("1 book" vs "2 books")
  • fix: rate limiting due to API changes
  • deps: update dependencies to latest versions

Screencast

google-books-1 google-books-2 google-books-3 google-books-4

Checklist

- Update CHANGELOG and README
- Add detail sidebar, multiple views, cover actions, and code reorganization
- Update dependencies, add API key support, improve UI with grid views and rate limit handling
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: google-books Issues related to the google-books extension platform: macOS labels Feb 8, 2026
@raycastbot

ghost commented Feb 8, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @Ali-Parandeh @xmok 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 commands
BRANCH="ext/google-books"
FORK_URL="https://github.com/chrismessina/extensions.git"
EXTENSION_NAME="google-books"
REPO_NAME="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 dev

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

@greptile-apps

ghost commented Feb 8, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Substantial update to the Google Books extension adding a toggleable detail sidebar, Grid/List view switching, a Book Cover viewer, and an optional API key preference to avoid rate limiting. The codebase has been well-reorganized into views/, actions/, and utils/ directories with a shared BookActionSections component.

  • Bug: The BookGrid component doesn't receive or pass searchText/onSearchTextChange to the Raycast Grid, so users cannot type new search queries while in Grid view — effectively breaking search when switching away from List mode.
  • Previous review feedback around selfLink missing from the API fields, zero-price formatting, fetch error handling, and non-unique temp filenames has been addressed in this revision.
  • CHANGELOG uses the correct {PR_MERGE_DATE} placeholder and is placed at the top of the file.

Confidence Score: 3/5

  • The Grid view search bug should be fixed before merging, but the rest of the extension is well-structured.
  • Score reflects a functional bug where Grid view loses search capability. The List view, API integration, error handling, and code organization are solid. Most prior review feedback has been addressed.
  • Pay close attention to extensions/google-books/src/views/BookGrid.tsx and extensions/google-books/src/index.tsx — the Grid component needs searchText and onSearchTextChange props threaded through from the parent.

Important Files Changed

Filename Overview
extensions/google-books/src/views/BookGrid.tsx Grid view is missing searchText/onSearchTextChange props, breaking search when users switch to Grid mode.
extensions/google-books/src/index.tsx Major refactor with view mode switching, proper memoization, and state management. Doesn't pass searchText/onSearchTextChange to BookGrid.
extensions/google-books/src/hooks/useSearch.ts Good improvements: debouncing, partial response fields, API key support, rate-limit error handling. selfLink now included in FIELDS.
extensions/google-books/src/actions/BookActions.tsx Shared action panel component with proper null guards on links and conditional rendering. Well-structured.
extensions/google-books/src/views/BookCover.tsx Cover view with download/copy actions. Now includes response.ok check and per-book temp filenames. Properly guarded.
extensions/google-books/src/views/BookListItem.tsx Rich metadata sidebar with proper null checks and conditional rendering throughout. selfLink fallback now works since it's in FIELDS.
extensions/google-books/src/utils/books.ts Utility functions for formatting, ISBN extraction, cover URL handling. Zero-price fix applied correctly.
extensions/google-books/package.json Added optional API key preference with password type, updated dependencies, added contributor.

Last reviewed commit: 2828012

ghost left a comment

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.

5 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@chrismessina
chrismessina marked this pull request as draft February 8, 2026 22:07
@chrismessina
chrismessina marked this pull request as ready for review February 8, 2026 22:13

ghost left a comment

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.

19 files reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

@chrismessina
chrismessina marked this pull request as draft February 8, 2026 23:48
@chrismessina
chrismessina marked this pull request as ready for review February 9, 2026 01:00

ghost left a comment

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.

19 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/google-books/README.md Resolved
@chrismessina
chrismessina marked this pull request as draft February 9, 2026 03:00
… book cover view; address Greptile feedback
@chrismessina
chrismessina marked this pull request as ready for review February 9, 2026 03:11

ghost left a comment

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.

19 files reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

@chrismessina
chrismessina marked this pull request as draft February 9, 2026 17:02
@chrismessina
chrismessina marked this pull request as ready for review February 9, 2026 18:40

ghost left a comment

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.

6 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

- Linted
- Fix search URL fallback and add null safety check for Google Books link
@0xdhrv

ghost commented Feb 18, 2026

Copy link
Copy Markdown
Member

@greptileai, could you please do a fresh review of this PR?

@0xdhrv 0xdhrv self-assigned this Feb 18, 2026

ghost left a comment

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.

19 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/google-books/src/index.tsx Resolved
@chrismessina
chrismessina marked this pull request as draft February 18, 2026 19:21
… use useState for search

- BookGrid.tsx: optional chaining for title/authors, remove duplicate key prop
- books.ts: optional chaining for description.replace, extract authors variable
- google-books.dt.ts: make PanelizationSummary fields and textSnippet optional
- useSearch.ts: add selfLink to FIELDS, fix cache fallback, type initialData, add error handler
- index.tsx: useMemo for categorizedItems/filteredCategorizedItems, useState for searchText/activeFilter
@chrismessina
chrismessina marked this pull request as ready for review February 18, 2026 21:41

ghost left a comment

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.

20 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Chris Messina and others added 3 commits February 18, 2026 17:57
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
The previous commit duplicated the entire function signature, causing a parse error.
Also adds searchText and onSearchTextChange to BookGridProps interface.
Fixes Grid view losing search capability when switching from List view.
Addresses Greptile review comment.

ghost 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 307abaf into raycast:main Feb 20, 2026
@github-actions

ghost commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Feb 20, 2026

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.

@chrismessina
chrismessina deleted the ext/google-books branch June 19, 2026 05:31
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: google-books Issues related to the google-books extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants