Skip to content

Update proton-pass extension - #27544

Merged
raycastbot merged 9 commits into
raycast:mainfrom
izyuumi:ext/proton-pass
May 1, 2026
Merged

raycastbot merged 9 commits into
raycast:mainfrom
izyuumi:ext/proton-pass

Conversation

@izyuumi

@izyuumi izyuumi commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes #27511.

The Proton Pass Search Items command could show items from only one vault even when "All Vaults" was selected. The vault list itself loaded correctly, but item loading is performed per vault with pass-cli item list --share-id. Some scoped item-list responses can omit an item-level share_id; the extension was treating that as invalid item data, dropping that vault's results during the all-vault aggregation.

This change extracts the pass-cli JSON normalization into a small testable module and uses the requested vault shareId as a fallback when normalizing scoped item-list and item-detail responses. It also keeps the per-vault error log useful by including the error message if another vault fails to load.

Validation

  • npm test
  • npm run build
  • npm run lint
  • npm run publish

Screencast

N/A - bug fix for CLI JSON normalization and vault aggregation behavior.

Checklist

izyuumi and others added 7 commits February 23, 2026 23:53
- Resolve changelog merge conflict
- Pull contributions
- Merge branch \'contributions/merge-1771858002740\'
- Pull contributions
- Add optional background refresh and web URL integration
- fix: restore Cmd+D shortcut, section grouping, and consistent debug copy (#1)
- fix: quarantine removal, default detail action, consistent copy toasts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- Merge branch \'contributions/merge-1777542847754\' into codex/fix-proton-pass-vault-search
- Pull contributions
- Fix Proton Pass vault item normalization
- fix: keep hook order stable in search view
- Clarify independent proton-pass implementation and update changelog
- Implement pass-cli web login flow in Raycast auth UX
- Fix usePromise argument typing in search items
- Resolve changelog merge conflict
- Pull contributions
- Merge branch \'contributions/merge-1771858002740\'
- Pull contributions
- Add optional background refresh and web URL integration
- fix: restore Cmd+D shortcut, section grouping, and consistent debug copy (#1)
- fix: quarantine removal, default detail action, consistent copy toasts
- fix: resolve lint issue in totp refresh timer
- Merge branch \'contributions/merge-1771623325182\'
- Pull contributions
- chore: update proton pass command and metadata assets
- chore: update package-lock.json
- style: format pass-cli.ts with Prettier
- fix: address remaining Greptile review feedback
- chore: add CLAUDE.md to gitignore
- fix: address Greptile review feedback for security and correctness
- fix: add missing JSX import for error views component
- chore: update extension icon
- chore: update changelog, README, and add mock data for development
- docs: update README and clean up comments in code
- refactor: streamline error handling and improve code organization
- feat: add caching, vault filter, and improved error handling
- fix: align CLI integration with actual pass-cli JSON output
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: proton-pass Issues related to the proton-pass extension platform: macOS OP is author The OP of the PR is the author of the extension labels Apr 30, 2026
@raycastbot

raycastbot commented Apr 30, 2026 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @izyuumi @FeernandoOFF 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/proton-pass"
FORK_URL="https://github.com/izyuumi/raycast-extensions.git"
EXTENSION_NAME="proton-pass"
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 10-15 business days.

@izyuumi
izyuumi marked this pull request as ready for review April 30, 2026 12:51
@greptile-apps

greptile-apps Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a bug where the "All Vaults" aggregation in the Search Items command silently dropped results from vaults whose scoped pass-cli responses omit the item-level share_id. The fix extracts JSON normalization into a dedicated pass-cli-normalize.ts module with a vaultShareIdOverride fallback and adds unit tests. It also corrects a React Rules of Hooks violation by moving the errorView early-return to after the useMemo calls.

Confidence Score: 5/5

Safe to merge — the logic change is well-scoped and validated by new unit tests.

All changes are P2 or lower. The core bug fix is straightforward and covered by tests, the Rules of Hooks fix is correct, and the only issue is a minor changelog date format.

extensions/proton-pass/CHANGELOG.md — needs {PR_MERGE_DATE} placeholder

Important Files Changed

Filename Overview
extensions/proton-pass/src/lib/pass-cli-normalize.ts New normalization module extracted from pass-cli.ts; adds vaultShareIdOverride fallback to fix the "All Vaults" aggregation bug
extensions/proton-pass/src/lib/pass-cli-normalize.test.ts Unit tests for the new normalizeItem function covering the shareId fallback fix and explicit shareId preservation
extensions/proton-pass/src/lib/pass-cli.ts Removes inline normalization functions (now in pass-cli-normalize.ts) and passes shareId fallback to normalizeItem and normalizeItemDetail
extensions/proton-pass/src/search-items.tsx Moves errorView check to after useMemo hooks — correctly fixes a React Rules of Hooks violation in the original code
extensions/proton-pass/CHANGELOG.md New entry added for this PR but uses a hardcoded date instead of the required {PR_MERGE_DATE} placeholder
extensions/proton-pass/tsconfig.test.json New TypeScript config for test builds, correctly scoped to normalize module and its dependencies
extensions/proton-pass/package.json Adds test script using node:test runner via tsc compilation to .test-build
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
extensions/proton-pass/CHANGELOG.md:3
**Hardcoded date instead of `{PR_MERGE_DATE}` placeholder**

Changelog entry titles must use the `{PR_MERGE_DATE}` template variable so the merge date is populated automatically on release. Using a hardcoded date here bypasses that convention.

```suggestion
## [Improvements] - {PR_MERGE_DATE}
```

Reviews (3): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile

Comment thread extensions/proton-pass/CHANGELOG.md Resolved

@pernielsentikaer pernielsentikaer 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 61f51b7 into raycast:main May 1, 2026
1 check passed
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

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.

@izyuumi
izyuumi deleted the ext/proton-pass branch August 30, 2026 15:46
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: proton-pass Issues related to the proton-pass 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.

[Proton Pass] Not searching secrets in all Vaults

4 participants