Skip to content

fixed twitter username and some other fixes#1203

Merged
Hugo0 merged 1 commit intopeanut-walletfrom
chore/twitter-username-update
Sep 11, 2025
Merged

fixed twitter username and some other fixes#1203
Hugo0 merged 1 commit intopeanut-walletfrom
chore/twitter-username-update

Conversation

@Hugo0
Copy link
Contributor

@Hugo0 Hugo0 commented Sep 11, 2025

We changed to @joinpeanut

Fixed the LP links

@vercel
Copy link

vercel bot commented Sep 11, 2025

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

Project Deployment Preview Comments Updated (UTC)
peanut-wallet Ready Ready Preview Comment Sep 11, 2025 9:23am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 11, 2025

Walkthrough

Project-wide URL updates migrate references from peanut.to to peanut.me across README, metadata, redirects, config defaults, footer/socials, profile/setup links, and tooltips. One Twitter handle changes to @joinpeanut. No logic or exported API changes.

Changes

Cohort / File(s) Change summary
Docs, help, and footer links
src/components/Global/Footer/consts.ts, src/components/Profile/index.tsx, src/components/Setup/Views/SetupPasskey.tsx, src/constants/tooltips.ts
Update docs URLs from docs.peanut.to to docs.peanut.me; update Twitter from https://twitter.com/peanutprotocol to https://twitter.com/joinpeanut.
Site metadata and config defaults
public/game/peanut-game.html, src/config/wagmi.config.tsx
Change og:url to http://www.peanut.me; update Twitter meta fields to @joinpeanut; set metadata.url fallback to https://peanut.me.
Redirects
redirects.json
Change destination for “/docs” from https://docs.peanut.to to https://docs.peanut.me.
README
README.md
Update displayed domains from .to to .me; adjust staging link href to https://staging.peanut.me.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

enhancement

Suggested reviewers

  • jjramirezn

Pre-merge checks (2 passed, 1 inconclusive)

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The current title, "fixed twitter username and some other fixes", correctly references the Twitter handle change present in the diff but is vague about the other changes (notably multiple docs and domain URL updates to peanut.me), so it does not clearly communicate the PR's primary scope. Please use a concise, specific title that highlights the main changes; for example, "Update Twitter handle to @joinpeanut and switch docs/links to peanut.me".
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed The description ("We changed to @joinpeanut\n\nFixed the LP links") directly references the Twitter handle change and link fixes shown in the changeset, so it is on-topic though brief.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/twitter-username-update

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: 1

🧹 Nitpick comments (3)
src/config/wagmi.config.tsx (1)

34-36: Avoid undefined favicon when NEXT_PUBLIC_BASE_URL is unset

Derive icons from the same base URL fallback to prevent undefined/favicon.ico locally/preview.

-const metadata = {
+const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'https://peanut.me'
+const metadata = {
   name: 'Peanut Protocol',
   description: 'Peanut protocol - send crypto with links',
-  url: process.env.NEXT_PUBLIC_BASE_URL || 'https://peanut.me', // origin must match your domain & subdomain
-  icons: [`${process.env.NEXT_PUBLIC_BASE_URL}/favicon.ico`],
+  url: baseUrl, // origin must match your domain & subdomain
+  icons: [`${baseUrl}/favicon.ico`],
 }
public/game/peanut-game.html (1)

7-7: Use canonical HTTPS URL (and correct path) for OG

Prefer https and the exact page URL to avoid 301 chains and improve sharing.

-<meta property="og:url" content="http://www.peanut.me" />
+<meta property="og:url" content="https://peanut.me/game/peanut-game.html" />
README.md (1)

22-22: Typo: duplicated word

Change “secure secure context” → “secure context”.

-# Note: run pnpm run dev:https if you need to work in a secure secure context
+# Note: run pnpm run dev:https if you need to work in a secure context
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 047ce69 and 76e07dd.

📒 Files selected for processing (8)
  • README.md (1 hunks)
  • public/game/peanut-game.html (1 hunks)
  • redirects.json (1 hunks)
  • src/components/Global/Footer/consts.ts (3 hunks)
  • src/components/Profile/index.tsx (2 hunks)
  • src/components/Setup/Views/SetupPasskey.tsx (1 hunks)
  • src/config/wagmi.config.tsx (1 hunks)
  • src/constants/tooltips.ts (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: Hugo0
PR: peanutprotocol/peanut-ui#1014
File: src/components/Claim/Link/Initial.view.tsx:413-413
Timestamp: 2025-07-24T13:26:10.290Z
Learning: In the peanut-ui repository, the change from `${SQUID_API_URL}/route` to `${SQUID_API_URL}/v2/route` in src/components/Claim/Link/Initial.view.tsx was a typo fix, not an API migration, as the codebase was already using Squid API v2.
📚 Learning: 2025-07-24T13:26:10.290Z
Learnt from: Hugo0
PR: peanutprotocol/peanut-ui#1014
File: src/components/Claim/Link/Initial.view.tsx:413-413
Timestamp: 2025-07-24T13:26:10.290Z
Learning: In the peanut-ui repository, the change from `${SQUID_API_URL}/route` to `${SQUID_API_URL}/v2/route` in src/components/Claim/Link/Initial.view.tsx was a typo fix, not an API migration, as the codebase was already using Squid API v2.

Applied to files:

  • src/components/Profile/index.tsx
  • src/components/Setup/Views/SetupPasskey.tsx
  • src/components/Global/Footer/consts.ts
  • src/config/wagmi.config.tsx
  • src/constants/tooltips.ts
📚 Learning: 2025-06-18T19:56:55.443Z
Learnt from: jjramirezn
PR: peanutprotocol/peanut-ui#919
File: src/components/Withdraw/views/Initial.withdraw.view.tsx:87-87
Timestamp: 2025-06-18T19:56:55.443Z
Learning: In withdraw flows for Peanut Wallet, the PeanutActionDetailsCard should always display "USDC" as the token symbol because it shows the amount being withdrawn from the Peanut Wallet (which holds USDC), regardless of the destination token/chain selected by the user. The TokenSelector is used for choosing the withdrawal destination, not the source display.

Applied to files:

  • src/constants/tooltips.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Deploy-Preview
🔇 Additional comments (10)
redirects.json (2)

4-4: Confirm redirect permanence for /docs

If the domain migration is final, consider "permanent": true for SEO/cache benefits. Otherwise, keeping it non-permanent is fine.


19-31: Validate legacy.peanut.to redirects

redirects.json still contains entries pointing to https://legacy.peanut.to (lines 19–31). Confirm this is intentional and whether those legacy hosts will migrate to .me; if not, update the redirects.

Also found other peanut.to references — review for consistency: src/middleware.ts, src/app/api/health/route.ts, src/components/Payment/Views/Error.validation.view.tsx, src/components/Global/WalletNavigation/index.tsx, scripts/README-qr-generator.md, src/assets/chains/arbitrum.svg.

src/components/Setup/Views/SetupPasskey.tsx (1)

107-107: LGTM: docs link updated to .me

Matches the project-wide domain change.

public/game/peanut-game.html (1)

9-10: LGTM: Twitter handle updated

Both twitter:site and twitter:creator now point to @joinpeanut.

src/components/Global/Footer/consts.ts (3)

6-6: LGTM: Twitter URL updated to @joinpeanut


21-21: LGTM: Docs (gitbook) moved to docs.peanut.me


34-34: LGTM: Docs link updated in LINKS

README.md (1)

1-1: LGTM: “Live at” display moved to .me

src/components/Profile/index.tsx (2)

49-49: LGTM: Referrals docs link updated


71-71: LGTM: Fees docs link updated

For US bank accounts, enter just your bank account number, no routing number.

<a href="https://docs.peanut.to/cashout/supported-geographies" target="_blank" class="underline text-blue-600">Supported regions</a>`,
<a href="https://docs.peanut.me/cashout/supported-geographies" target="_blank" class="underline text-blue-600">Supported regions</a>`,
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add rel="noopener noreferrer" on target="_blank" links (prevent tabnabbing)

These tooltip anchors open new tabs; add rel attribute for security/perf parity with other components (e.g., SetupPasskey).

-<a href="https://docs.peanut.me/cashout/supported-geographies" target="_blank" class="underline text-blue-600">Supported regions</a>
+<a href="https://docs.peanut.me/cashout/supported-geographies" target="_blank" rel="noopener noreferrer" class="underline text-blue-600">Supported regions</a>
-<a href="https://docs.peanut.me/cashout/supported-geographies" target="_blank" class="underline text-blue-600">Learn more about supported regions</a>
+<a href="https://docs.peanut.me/cashout/supported-geographies" target="_blank" rel="noopener noreferrer" class="underline text-blue-600">Learn more about supported regions</a>

Also applies to: 14-14

🤖 Prompt for AI Agents
In src/constants/tooltips.ts around lines 6 and 14, the anchor tags that use
target="_blank" lack rel="noopener noreferrer"; update both anchors to include
rel="noopener noreferrer" (matching other components like SetupPasskey) to
prevent tabnabbing and ensure consistent security/performance behavior when
opening links in a new tab.

@Hugo0 Hugo0 merged commit a72a391 into peanut-wallet Sep 11, 2025
8 checks passed
This was referenced Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants