Skip to content

Conversation

@shoom3301
Copy link
Collaborator

@shoom3301 shoom3301 commented Oct 22, 2025

@shoom3301 shoom3301 requested review from a team October 22, 2025 14:06
@shoom3301 shoom3301 self-assigned this Oct 22, 2025
@vercel
Copy link

vercel bot commented Oct 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
cowfi Ready Ready Preview Oct 22, 2025 2:35pm
explorer-dev Ready Ready Preview Oct 22, 2025 2:35pm
sdk-tools Ready Ready Preview Oct 22, 2025 2:35pm
swap-dev Ready Ready Preview Oct 22, 2025 2:35pm
widget-configurator Ready Ready Preview Oct 22, 2025 2:35pm
1 Skipped Deployment
Project Deployment Preview Updated (UTC)
cosmos Ignored Ignored Oct 22, 2025 2:35pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 22, 2025

Walkthrough

A single text field in the hookDappsRegistry.ts file is refined by removing the word "Infinite" from the PERMIT_HOOK_DAPP_ID entry's descriptionShort field. This is a minimal semantic clarification to the permission description without affecting code logic or structure.

Changes

Cohort / File(s) Change Summary
Description text refinement
libs/hook-dapp-lib/src/hookDappsRegistry.ts
Removed "Infinite" from the PERMIT_HOOK_DAPP_ID descriptionShort field; text changed from "Infinite permit an address to spend one token on your behalf." to "Permit an address to spend one token on your behalf."

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • elena-zh
  • anxolin

Poem

🐰 A word springs free like morning dew,
"Infinite" fades—permission rings more true,
One ripple flows through registry lines,
Cleaner prose for cleaner signs! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description follows the template structure by including Summary and To Test sections, however the content is substantially incomplete. The Summary section only contains a Notion link without providing a high-level description of what changes are being accomplished, and the To Test section similarly only references the same link rather than providing actual testing steps, checkboxes, or expectations as shown in the template. While the description is related to the PR objectives (not off-topic), it fails to substantively fill out the required sections with meaningful content. Please expand the Summary section to include a high-level description of the change (e.g., explaining that the word "Infinite" was removed from the permit hook description to better reflect that permits can be partial, not infinite). Add a To Test section with clear, numbered testing steps and checkbox items showing what a reviewer or QA person should verify, such as checking that the updated description displays correctly or that the hook functions as expected.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title "fix: update permit hook description" directly describes the main change in the pull request, which is updating the PERMIT_HOOK_DAPP_ID entry's descriptionShort by removing the word "Infinite" from the permit hook description. The title is concise, specific, and uses the "fix:" prefix appropriately for what appears to be a bug fix or improvement. It clearly summarizes the primary change without being vague or off-topic.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/update-permit-hook-desc

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
libs/hook-dapp-lib/src/hookDappsRegistry.ts (1)

20-20: Fix duplicated/awkward sentence in validators description (drive‑by copy edit)

The sentence repeats and “without requiring ready for withdrawal” is ungrammatical. Suggested cleanup:

-      "This hook allows you to withdraw rewards from your Gnosis Chain validators through CoW Swap. It automates the process of interacting with the Gnosis Deposit Contract, enabling you to claim any available rewards directly to your specified withdrawal address. The hook monitors your validator's accrued rewards and triggers the claimWithdrawals function when rewards are ready for withdrawal. This simplifies the management of Gnosis validator earnings without requiring ready for withdrawal. This simplifies the management of Gnosis validator earnings without requiring manual contract interaction, providing a smoother and more efficient experience for users.",
+      "This hook allows you to withdraw rewards from your Gnosis Chain validators through CoW Swap. It automates interactions with the Gnosis Deposit Contract, enabling you to claim available rewards directly to your specified withdrawal address. The hook monitors your validator's accrued rewards and triggers claimWithdrawals when rewards are ready. This simplifies management of Gnosis validator earnings without manual contract interaction, providing a smoother and more efficient experience.",
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d234831 and 46d44c8.

📒 Files selected for processing (1)
  • libs/hook-dapp-lib/src/hookDappsRegistry.ts (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-08-12T05:57:08.021Z
Learnt from: shoom3301
PR: cowprotocol/cowswap#6138
File: libs/hook-dapp-lib/src/hookDappsRegistry.ts:1-1
Timestamp: 2025-08-12T05:57:08.021Z
Learning: The matchHooksToDapps function in libs/hook-dapp-lib/src/utils.ts provides backward compatibility for permit hooks through function selector detection (EIP_2612_PERMIT_SELECTOR and DAI_PERMIT_SELECTOR) rather than dappId matching, making it robust against dappId changes.

Applied to files:

  • libs/hook-dapp-lib/src/hookDappsRegistry.ts
🔇 Additional comments (2)
libs/hook-dapp-lib/src/hookDappsRegistry.ts (2)

41-43: Confirm if Permit hook should support mainnet beyond Sepolia testnet

The Permit hook (v0.1.0) is currently restricted to Sepolia (11155111) and will not appear on other networks due to filtering in validateHookDappManifest.tsx and useInternalHookDapps.ts. Unlike other hooks in the registry which support mainnet and multiple production networks, the Permit hook remains testnet-only. Clarify whether this restriction is intentional pending further testing or oversight—if mainnet support is intended, add chain IDs 1 and/or others to supportedNetworks in hookDappsRegistry.ts lines 41–43.


33-33: LGTM — change verified and ready to merge; optional: simplify "one token" to "a token" for consistency

The description update is correct and has no functional impact. No stale "Infinite permit" phrasing exists elsewhere in the codebase. The optional microcopy suggestion—changing "one token" to "a token"—aligns the short description with the entry name and avoids potential ambiguity about quantity.

Copy link
Contributor

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

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

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants