Skip to content

Feat/trigger gator permissions revoke transaction#34373

Merged
V00D00-child merged 10 commits into
feat/gator-permissions-revoke-uifrom
feat/trigger-gator-permissions-revoke-transaction
Aug 14, 2025
Merged

Feat/trigger gator permissions revoke transaction#34373
V00D00-child merged 10 commits into
feat/gator-permissions-revoke-uifrom
feat/trigger-gator-permissions-revoke-transaction

Conversation

@V00D00-child

@V00D00-child V00D00-child commented Jul 17, 2025

Copy link
Copy Markdown
Member

Description

Open in GitHub Codespaces

Submit transactions to revoke gator permissions. Support single and batch revokes.

Changelog

CHANGELOG entry: Adds a button for the user to revoke a gator permission.

Related issues

requires: #33996
requires: MetaMask/core#6033
requires: MetaMask/snap-7715-permissions#108
relates to: MetaMask/snap-7715-permissions#84

Manual testing steps

  1. Generate a MM Flask build - yarn dist --build-type flask --apply-lavamoat false
  2. Install the latest development version of @metamask/permissions-kernel-snap and @metamask/gator-permissions-snap.
  3. Make a permission 7715 request to store a permission in profile sync.
  4. Go to the "All Permissions page".
  5. Click revoke to trigger a transaction to revoke a permission.
  6. Sign the transaction.

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@metamaskbot metamaskbot added the team-delegation MetaMask Delegation Team label Jul 17, 2025
@metamaskbot

metamaskbot commented Jul 17, 2025

Copy link
Copy Markdown
Collaborator

✨ Files requiring CODEOWNER review ✨

🖥️ @MetaMask/wallet-ux (2 files, +39 -24)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 pages/
          • 📁 gator-permissions-page/
            • 📁 token-streams/
              • 📄 review-token-streams-page.js +11 -18
            • 📁 token-subscriptions/
              • 📄 review-token-subscriptions-page.js +28 -6

…unction using @metamask/delegation-core package
@socket-security

socket-security Bot commented Jul 21, 2025

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​metamask/​delegation-core@​0.1.0731009990100

View full report

@V00D00-child V00D00-child changed the title [DRAFT]Feat/trigger gator permissions revoke transaction Feat/trigger gator permissions revoke transaction Jul 31, 2025
@V00D00-child V00D00-child marked this pull request as ready for review July 31, 2025 14:17
@V00D00-child V00D00-child requested a review from a team as a code owner July 31, 2025 14:17
cursor[bot]

This comment was marked as outdated.

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 31, 2025
Comment thread ui/hooks/gator-permissions/useRevokeGatorPermissions.ts Outdated
Comment thread ui/hooks/gator-permissions/useRevokeGatorPermissions.ts Outdated
Comment thread ui/hooks/gator-permissions/useRevokeGatorPermissions.ts Outdated
Comment thread package.json Outdated
cursor[bot]

This comment was marked as outdated.

// TODO: Implement revoke logic
console.log('erc20TokenStream to revoke:', erc20TokenStream);
const handleRevokeClick = async (stream) => {
await revokeGatorPermission(stream);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Async Function Error Handling Missing

The async handleRevokeClick function in ReviewTokenSubscriptionsPage and ReviewTokenStreamsPage lacks error handling. When revokeGatorPermission is called, any errors (e.g., from validation or transaction failures) result in unhandled promise rejections. This can lead to UI crashes, an inconsistent state, or silent failures without user feedback on failed revoke operations.

Additional Locations (1)
Fix in Cursor Fix in Web

@V00D00-child V00D00-child requested a review from MoMannn August 12, 2025 17:41
@V00D00-child V00D00-child merged commit 2bce330 into feat/gator-permissions-revoke-ui Aug 14, 2025
47 of 87 checks passed
@V00D00-child V00D00-child deleted the feat/trigger-gator-permissions-revoke-transaction branch August 14, 2025 17:49
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template team-delegation MetaMask Delegation Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants