Repository navigation
Granola: Fix auth fallback and add folder management (v2.1.3) - #27746
Conversation
|
Thank you for your contribution! 🎉 🔔 @RobErskine @jlokos 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="jlokos/granola-v2.1.3"
FORK_URL="https://github.com/jlokos/raycast-extensions.git"
EXTENSION_NAME="granola"
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 fixes Granola authentication for users whose sessions have migrated to
Confidence Score: 5/5The auth fallback and folder management changes are well-contained and safe to merge. The new authentication fallback reads only from local files with full try/catch coverage and token-expiry checks. The folder management tool properly gates mutations behind confirmations. The only finding is a changelog date convention nit. No files require special attention. Important Files Changed
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
extensions/granola/CHANGELOG.md:3
The changelog entry uses a hardcoded date instead of the `{PR_MERGE_DATE}` placeholder required by the Raycast changelog convention. The hardcoded date should be replaced with the placeholder so that the release date is populated automatically when the PR is merged.
```suggestion
## [2.1.3] - {PR_MERGE_DATE}
```
Reviews (3): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile |
| action: "get" | "create" | "add-note" | "remove-note" | "delete"; | ||
| folderId?: string; | ||
| noteId?: string; | ||
| title?: string; | ||
| }; |
There was a problem hiding this comment.
Rename action missing from
Input type
The PR description explicitly lists "renaming" as a new capability of the manage-folders tool ("creating, deleting, renaming, and organizing"), but neither the Input union type nor the tool implementation includes a rename action, and there is no corresponding updateDocumentList / renameDocumentList function in granolaApi.ts. If folder renaming was intentionally deferred, the PR description is misleading and should be updated accordingly.
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/granola/src/tools/manage-folders.ts
Line: 13-17
Comment:
**Rename action missing from `Input` type**
The PR description explicitly lists "renaming" as a new capability of the `manage-folders` tool ("creating, deleting, renaming, and organizing"), but neither the `Input` union type nor the tool implementation includes a `rename` action, and there is no corresponding `updateDocumentList` / `renameDocumentList` function in `granolaApi.ts`. If folder renaming was intentionally deferred, the PR description is misleading and should be updated accordingly.
How can I resolve this? If you propose a fix, please make it concise.| return { | ||
| style: input.action === "delete" ? Action.Style.Destructive : Action.Style.Regular, | ||
| message: `${actionLabels[input.action]} in Granola?`, | ||
| info: [ | ||
| { name: "Folder ID", value: input.folderId }, | ||
| { name: "Note ID", value: input.noteId }, | ||
| { name: "Title", value: input.title }, | ||
| ], | ||
| }; |
There was a problem hiding this comment.
Confirmation info leaks
undefined for irrelevant fields
All three info items (folderId, noteId, title) are always included regardless of the selected action. For a create action, for example, folderId and noteId will both be undefined, which may render as blank or literal "undefined" text in the Raycast confirmation dialog. Consider filtering to only include fields that are relevant to the chosen action (e.g. show folderId only when it is required).
Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/granola/src/tools/manage-folders.ts
Line: 37-45
Comment:
**Confirmation info leaks `undefined` for irrelevant fields**
All three info items (`folderId`, `noteId`, `title`) are always included regardless of the selected action. For a `create` action, for example, `folderId` and `noteId` will both be `undefined`, which may render as blank or literal `"undefined"` text in the Raycast confirmation dialog. Consider filtering to only include fields that are relevant to the chosen action (e.g. show `folderId` only when it is required).
How can I resolve this? If you propose a fix, please make it concise.|
Thanks for jumping on this @jlokos. I'm good with this fix |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
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
This update fixes Granola authentication for users. It also adds folder management support for the Granola AI tools.
Authentication Fix
AI Tools and Folder Management
manage-foldersAI tool for creating, deleting, renaming, and organizing Granola foldersfolderIdValidation
npm run lintnpm run buildnpx ray evals(100% | 16/16 Passed)Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool