Skip to content

[Super Productivity] require access token - #30163

Open
xmok wants to merge 2 commits into
raycast:mainfrom
xmok:ext/super-productivity
Open

[Super Productivity] require access token#30163
xmok wants to merge 2 commits into
raycast:mainfrom
xmok:ext/super-productivity

Conversation

@xmok

@xmok xmok commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Description

Screencast

super-productivity-260812.mp4

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: super-productivity Issues related to the super-productivity extension platform: macOS platform: Windows labels Aug 12, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @pvnkmnk 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/super-productivity"
FORK_URL="https://github.com/xmok/raycast-extensions.git"
EXTENSION_NAME="super-productivity"
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 dev

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

@greptile-apps

greptile-apps Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR requires a Super Productivity local API access token and attaches it to API requests as a Bearer credential.

  • Adds a required password preference and setup documentation.
  • Adds the authorization header and updates API test preferences.
  • Records the change in the extension changelog.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains.

No blocking failure remains.

Important Files Changed

Filename Overview
extensions/super-productivity/src/api.ts Reads the required token preference and includes it as a Bearer credential on local API requests.
extensions/super-productivity/src/api.test.ts Updates the shared preference mock with an access-token value.
extensions/super-productivity/package.json Adds the required password preference and records the new contributor.
extensions/super-productivity/README.md Documents that users must obtain and enter the local REST API access token.
extensions/super-productivity/CHANGELOG.md Adds a correctly positioned release entry for the token requirement.

Reviews (2): Last reviewed commit: "[Super Productivity] accessToken in test" | Re-trigger Greptile

try {
const res = await fetch(url, {
headers: {
Authorization: `Bearer ${accessToken}`,

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.

P2 Authentication header lacks test coverage

Every API operation now depends on the exact Authorization header, but the current preference mock supplies no accessToken and the fetch assertions accept any options object. An incorrect token value, header name, or authorization scheme can therefore pass CI while leaving every command unable to authenticate.

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/super-productivity/src/api.ts
Line: 31

Comment:
**Authentication header lacks test coverage**

Every API operation now depends on the exact `Authorization` header, but the current preference mock supplies no `accessToken` and the fetch assertions accept any options object. An incorrect token value, header name, or authorization scheme can therefore pass CI while leaving every command unable to authenticate.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@pernielsentikaer pernielsentikaer self-assigned this Aug 12, 2026
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: super-productivity Issues related to the super-productivity extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Super Productivity] Extension missing Authorization header — Local REST API token not sent

3 participants