Repository navigation
Update plane extension - Support for Plane Self Hosted and API Key authentication - #22608
Conversation
- Merge branch \'contributions/merge-1762171785664\' into feat/pat-token-support - Pull contributions - add support for API key authentication for plane selfhosted
commented
Nov 3, 2025
|
Thank you for the update! 🎉 You can expect an initial review within five business days. |
left a comment
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR extends the Plane extension's authentication capabilities to support both Plane Cloud (via OAuth) and Plane Self-Hosted instances (via API key authentication). The changes introduce a dual authentication system where users can optionally provide an API_KEY preference to connect to self-hosted installations. When API key authentication is used, users must also specify their workspace slug through a new form component, which is stored locally for future use. The implementation maintains backward compatibility with the existing OAuth flow for cloud users while enabling self-hosted users to authenticate using their API keys. Key changes include updated authentication logic in auth.ts, modified client configuration in client.ts, a new workspace slug form component, enhanced authorization view logic, and comprehensive documentation updates explaining both authentication methods.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
extensions/plane/CHANGELOG.md |
5/5 | Added properly formatted changelog entry documenting API key authentication and self-hosted support |
extensions/plane/README.md |
5/5 | Comprehensive documentation update with detailed authentication instructions for both OAuth and API key methods |
extensions/plane/src/components/WorkspaceSlugForm.tsx |
5/5 | New form component for capturing workspace slugs required for API key authentication |
extensions/plane/src/api/auth.ts |
2/5 | Authentication logic updated to support API keys but has significant issues with token parameter confusion and incomplete flow |
extensions/plane/src/api/client.ts |
4/5 | PlaneClient constructor properly updated to support both OAuth and API key authentication methods |
extensions/plane/src/components/AuthorizedView.tsx |
3/5 | Dual authentication flow implementation with some concerns around preferences initialization and redundant code |
Confidence score: 2/5
- This PR introduces potentially breaking authentication issues that could affect both existing OAuth users and new API key users
- Score lowered due to serious authentication flow problems in
auth.tsincluding token parameter confusion, incomplete API key user flow, and missing type definitions that could cause runtime errors - Pay close attention to
extensions/plane/src/api/auth.tswhich has critical authentication logic issues that need to be resolved before merging
6 files reviewed, 3 comments
commented
Nov 3, 2025
|
@pernielsentikaer can you please review this PR 😄 |
left a comment
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds API key authentication support to the Plane extension, enabling compatibility with self-hosted Plane instances. The changes introduce a dual authentication system where users can choose between OAuth (recommended for Plane Cloud) or API key authentication. Key additions include a new WorkspaceSlugForm component for capturing workspace information, modifications to the PlaneClient constructor to accept both authentication methods, and updates to the authentication flow in AuthorizedView. The README has been enhanced with comprehensive documentation for both authentication methods, and the changelog properly documents these new features.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/plane/src/api/auth.ts | 1/5 | Critical compilation error due to undefined Preferences type that blocks the entire authentication flow |
| extensions/plane/src/components/AuthorizedView.tsx | 2/5 | Complex authentication flow changes with potential OAuth breaking issues and state management inconsistencies |
| extensions/plane/src/api/client.ts | 3/5 | Constructor parameter reordering and dual authentication support with minor implementation concerns |
| extensions/plane/src/components/WorkspaceSlugForm.tsx | 4/5 | Well-implemented form component following Raycast best practices with proper validation and error handling |
| extensions/plane/README.md | 4/5 | Clear documentation for both authentication methods with proper setup instructions |
| extensions/plane/CHANGELOG.md | 5/5 | Proper changelog entry with correct formatting and PR merge date template |
Confidence score: 1/5
- This PR has critical blocking issues that will prevent compilation and break existing functionality
- Score reflects undefined Preferences type causing compilation failure, incorrect OAuth token handling that could break existing users, and complex authentication flow changes that introduce multiple potential failure points
- Pay close attention to extensions/plane/src/api/auth.ts and extensions/plane/src/components/AuthorizedView.tsx for critical fixes needed
6 files reviewed, 3 comments
commented
Nov 4, 2025
|
Published to the Raycast Store: |
commented
Nov 4, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Screencast
Screen.Recording.2025-11-03.at.5.51.13.PM.1.mp4
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder