Skip to content

Update plane extension - Support for Plane Self Hosted and API Key authentication - #22608

Merged
raycastbot merged 4 commits into
raycast:mainfrom
Saurabhkmr98:ext/plane
Nov 4, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
Saurabhkmr98:ext/plane

Conversation

@Saurabhkmr98

@Saurabhkmr98 Saurabhkmr98 commented Nov 3, 2025 •

Copy link
Copy Markdown
Contributor

Description

  • Added support for API_KEY authentication
  • Added support for Plane Self Hosted instances to use the extension via API key authentication
  • Close [Plane] ... #22454

Screencast

Screen.Recording.2025-11-03.at.5.51.13.PM.1.mp4

Checklist

- Merge branch \'contributions/merge-1762171785664\' into feat/pat-token-support
- Pull contributions
- add support for API key authentication for plane selfhosted
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: plane Issues related to the plane extension platform: macOS OP is author The OP of the PR is the author of the extension labels Nov 3, 2025
@raycastbot

ghost commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@Saurabhkmr98 Saurabhkmr98 changed the title Update plane extension Update plane extension - Support for Plane Self Hosted and API Key authentication Nov 3, 2025
@Saurabhkmr98
Saurabhkmr98 marked this pull request as ready for review November 3, 2025 12:53

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.

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.ts including 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.ts which has critical authentication logic issues that need to be resolved before merging

6 files reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/plane/src/api/auth.ts Resolved
Comment thread extensions/plane/src/api/auth.ts Resolved
Comment thread extensions/plane/src/api/auth.ts Resolved
@Saurabhkmr98
Saurabhkmr98 marked this pull request as draft November 3, 2025 13:13
@Saurabhkmr98
Saurabhkmr98 marked this pull request as ready for review November 3, 2025 13:27
@Saurabhkmr98

ghost commented Nov 3, 2025

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer can you please review this PR 😄

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.

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

Edit Code Review Agent Settings | Greptile

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.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 952bf41 into raycast:main Nov 4, 2025
@github-actions

ghost commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 4, 2025

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.

@Saurabhkmr98
Saurabhkmr98 deleted the ext/plane branch November 4, 2025 08:05
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: plane Issues related to the plane extension OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Plane] ...

3 participants