Skip to content

minor fixes#726

Merged
Hugo0 merged 3 commits intopeanut-wallet-devfrom
fix/copy-issues-mar-10
Mar 12, 2025
Merged

minor fixes#726
Hugo0 merged 3 commits intopeanut-wallet-devfrom
fix/copy-issues-mar-10

Conversation

@Hugo0
Copy link
Copy Markdown
Contributor

@Hugo0 Hugo0 commented Mar 10, 2025

fixes some minor copy issues

Summary by CodeRabbit

  • Documentation
    • Updated deployment URLs to reflect the new live site domain.
  • New Features
    • Revised page messaging from “Text Tokens” to “Send to Anyone” for clearer user communication.
    • Replaced Discord support links with a dedicated “Chat with support” button for a smoother support experience.
  • Style
    • Made minor text adjustments for consistency, including capitalization updates for branding.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
peanut-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 11:47am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 10, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The changes update various URLs from peanut.to to peanut.me in metadata objects, documentation, and redirection links. Several user interface texts have been modified, replacing “Text Tokens” with “Send to Anyone.” In addition, Discord links for support have been replaced by the new CrispButton component in several views. The unconditional execution of reset and fetch functions in the Create component’s hook has also been implemented. A new consultant feedback document was added, and a minor text update was applied to wallet path titles.

Changes

File(s) Change Summary
README.md
src/app/(mobile-ui)/[kyc, link-account, profile, refund]/page.tsx
src/app/legacy/_blog/page.tsx
src/app/metadata.ts
src/app/robots.ts
src/components/Welcome/welcomeSDK.tsx
Updated URLs from peanut.to to peanut.me in metadata, live/staging links, sitemap, and primary redirect.
src/components/Claim/Generic/[AlreadyClaimed, SenderClaim, WrongPassword].view.tsx
src/components/Claim/Link/Onchain/Success.view.tsx
src/components/Payment/Views/Payment.status.view.tsx
Replaced Discord hyperlink texts with new CrispButton for "Chat with support" by adding corresponding imports from @/components/CrispChat.
src/app/(mobile-ui)/profile/page.tsx
src/app/(mobile-ui)/refund/page.tsx
src/components/Create/Link/[Confirm, Input].view.tsx
Changed UI text from "Text Tokens" to "Send to Anyone" in metadata descriptions, titles, and content descriptions.
src/components/Create/Create.tsx Removed the conditional check for isPeanutWallet in the useEffect hook, calling resetTokenContextProvider() and fetchAndSetCrossChainDetails() unconditionally on mount; dependency array changed to [].
docs/consultant_feedback.md
src/constants/general.consts.ts
Added a new consultant feedback document with recommendations; updated wallet path title from "Wallet asset" to "Wallet Assets."

Sequence Diagram(s)

sequenceDiagram
    participant C as Create Component
    participant T as Token Context Provider
    participant X as Cross-Chain Service
    C->>T: resetTokenContextProvider()
    C->>X: fetchAndSetCrossChainDetails()
Loading

Possibly related PRs

  • Release #451: Related changes in metadata handling and URL updates.
  • sync #544: Updated URLs in metadata and documentation across multiple files, aligning with changes in the current PR.
  • Develop #557: Modifications in the src/components/Claim/Link/Initial.view.tsx file, focusing on claim links and error management.

Suggested reviewers

  • kushagrasarathe

Poem

I'm a little bunny with quick hops so neat,
Updated links and texts in every code beat.
From "peanut.to" to "peanut.me" we cheer,
Crisp buttons now chat—support is here!
My whiskers twitch with joy as commits land,
Celebrating each change across the coding land. 🐇


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ea4564c and 0ebf371.

📒 Files selected for processing (13)
  • README.md (1 hunks)
  • src/components/Claim/Link/Initial.view.tsx (2 hunks)
  • src/components/Claim/Link/Onchain/Confirm.view.tsx (1 hunks)
  • src/components/Claim/Link/Onchain/Success.view.tsx (2 hunks)
  • src/components/Create/Link/Confirm.view.tsx (2 hunks)
  • src/components/Create/Link/Input.view.tsx (2 hunks)
  • src/components/CrispChat.tsx (1 hunks)
  • src/components/Global/LinkAccountComponent/index.tsx (1 hunks)
  • src/components/Payment/Views/Confirm.payment.view.tsx (1 hunks)
  • src/components/Payment/Views/Payment.status.view.tsx (2 hunks)
  • src/components/Setup/Setup.consts.tsx (1 hunks)
  • src/constants/general.consts.ts (1 hunks)
  • src/utils/__tests__/url-parser.test.ts (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

unrelated, bad to have in commit

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.

delete this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixes this chain is not supported for xchain claims wrong copy

@notion-workspace
Copy link
Copy Markdown

Copy link
Copy Markdown
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

🔭 Outside diff range comments (1)
src/components/Welcome/welcomeSDK.tsx (1)

113-115: ⚠️ Potential issue

Consider updating this URL as well

I noticed that the refund link URL in this FAQ section still points to peanut.to/refund while other URLs in the codebase have been updated to the new peanut.me domain.

Apply this change for consistency:

-        redirectUrl: 'https://peanut.to/refund',
+        redirectUrl: 'https://peanut.me/refund',
🧹 Nitpick comments (11)
docs/consultant_feedback.md (10)

1-2: Improve Address Formatting and Verb Tense
Consider adding a comma after “@Hugomont” and switching “try” to “tried” so that the sentence reads:

"Hello @Hugomont, I went through the code and tried to answer as much as possible to your bullet points."
Also, replace “wasn't able to me more precise” with “wasn't able to be more precise.”

🧰 Tools
🪛 LanguageTool

[formatting] ~1-~1: Consider inserting a comma after addressing someone: “@Hugomont,”?
Context: Hello @Hugomont I went through the code and try to answ...

(HELLO_NNP_COMMA)


[uncategorized] ~1-~1: This verb may not be in the correct tense. Consider changing the tense to fit the context better.
Context: ...o @Hugomont I went through the code and try to answer as much as possible to your b...

(AI_EN_LECTOR_REPLACEMENT_VERB_TENSE)


5-10: Refine Feedback Bullet Points
Rephrase the Redux guidance for clarity. For example, change:

"- I would not recommend using Redux, it's an old solution (pre-context) that most of the company try to get rid of"
to something like:
"- Avoid using Redux since it’s an outdated solution that many companies are moving away from."

🧰 Tools
🪛 LanguageTool

[uncategorized] ~9-~9: Possible missing preposition found.
Context: ...that most of the company try to get rid of Best practices with component: - I wou...

(AI_EN_LECTOR_MISSING_PREPOSITION)


11-14: Clarify Component Best Practices
Consider rewording the bullet points for better readability. For instance, change:

"- I would recommend to create more pages & subpages (with layout)"
to:
"- Consider creating additional pages and subpages with consistent layouts"
and modify
"- Avoid creating component inside component (ex: GlobalLinkAccount has a renderComponent function)"
to:
"- Avoid defining components within other components (e.g., GlobalLinkAccount’s renderComponent function)."

🧰 Tools
🪛 LanguageTool

[uncategorized] ~11-~11: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ... try to get rid of Best practices with component: - I would recommend to create more pag...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[grammar] ~12-~12: The verb ‘recommend’ is used with the gerund form.
Context: ...est practices with component: - I would recommend to create more pages & subpages (with layout) - A...

(ADMIT_ENJOY_VB)


[uncategorized] ~13-~13: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...subpages (with layout) - Avoid creating component inside component (ex: GlobalLinkAccount...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[uncategorized] ~13-~13: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...yout) - Avoid creating component inside component (ex: GlobalLinkAccount has a renderComp...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


15-18: Enhance Compile Times Recommendation
Replace shorthand “deps” with “dependencies” to increase clarity. For example, update:

"- Splitting the code and deps, lazy loading some chunks might reduce it."
to:
"- Splitting the code and dependencies and lazy loading specific chunks might help reduce compile times."

🧰 Tools
🪛 LanguageTool

[uncategorized] ~17-~17: Possible missing comma found.
Context: ...ng the code and deps, lazy loading some chunks might reduce it. Large components that...

(AI_HYDRA_LEO_MISSING_COMMA)


19-21: Formalize Informal Language
Replace “biz logic” with “business logic” to maintain a professional tone.

🧰 Tools
🪛 LanguageTool

[style] ~19-~19: The word ‘biz’ is informal. Consider replacing it.
Context: ...ents that sometimes contain both ui and biz logic: - For me it's not too big of an ...

(BIZ)


[uncategorized] ~20-~20: Consider adding a comma here to clarify the structure of the sentence.
Context: ...es contain both ui and biz logic: - For me it's not too big of an issue. Maybe we ...

(PRP_COMMA)


22-34: Tighten Web Vitals Recommendations
Review the punctuation and phrasing for consistency—for example, insert a comma after “for example” in bullet point items and change “unused code & import” to “unused code and imports.” These minor adjustments will enhance readability.


35-38: Correct Spelling in State Persistence Section
Change “complexe data” to “complex data” to correct the spelling error.


39-42: Revise Section Title for Clarity
The header “bruddle/style/color management” might be improved by renaming it to “Brand/Style/Color Management” for enhanced clarity and professionalism.

🧰 Tools
🪛 LanguageTool

[grammar] ~40-~40: Possible agreement error. The noun ‘config’ seems to be countable; consider using: “bunch of configs”.
Context: ...library (ex: chakra-ui-step is adding a bunch of config into CSS for one component) - I would n...

(A_COLLECTIVE_OF_NN)


43-48: Minor Formatting Enhancements in Bonus Section
Insert a comma after “for example” in the spacing rules bullet to correctly punctuate the sentence.

🧰 Tools
🪛 LanguageTool

[typographical] ~47-~47: After the expression ‘for example’ a comma is usually used.
Context: ... rules for spacing and stick to it. For example I do only 4px, 8px, 16px, 24px, 32px & ...

(COMMA_FOR_EXAMPLE)


49-80: Review Conversation Transcript for Consistency
The conversation transcript contains several typographical and grammatical inconsistencies (e.g., “The state of the is totally stored…”). It may be beneficial to clean up these excerpts for clarity if that matches your documentation style.

🧰 Tools
🪛 LanguageTool

[grammar] ~55-~55: The verb ‘recommend’ is used with the gerund form.
Context: ...ct context for state then? 2. "I would recommend to create more pages & subpages (with layout)" - ...

(ADMIT_ENJOY_VB)


[uncategorized] ~65-~65: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... trick 2. I don't have the code in mind but I tend to split the UI components from ...

(COMMA_COMPOUND_SENTENCE)


[misspelling] ~65-~65: This expression is normally spelled as one or with a hyphen.
Context: ...ponents from the pages. Using pages and sub pages in combination with search params, you'...

(EN_COMPOUNDS_SUB_PAGES)


[uncategorized] ~70-~70: Use a comma before ‘so’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... forms depending on the type of strategy so I created one subpage per type of strat...

(COMMA_COMPOUND_SENTENCE)


[uncategorized] ~71-~71: Did you mean “there is”?
Context: ...page per type of strategy. The state of the is totally stored in the URL and everythin...

(THE_THERE)


[uncategorized] ~71-~71: A comma might be missing here.
Context: ...xternal endpoint (for the prices in the chart for example). Since the URL is accessib...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)


[uncategorized] ~72-~72: A comma might be missing here.
Context: ...mple). Since the URL is accessible from everywhere I do not need to do some props drilling...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)


[style] ~76-~76: This phrasing can be overused. Try elevating your writing with a more formal alternative.
Context: ... is open source. We can organize a call if you want, I can show you my thought process when...

(IF_YOU_WANT)


[uncategorized] ~79-~79: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...2/4/25 9:14 PM] This is one of the page component: https://github.com/bancorprotocol/carb...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)

🪛 markdownlint-cli2 (0.17.2)

61-61: Bare URL used
null

(MD034, no-bare-urls)


67-67: Bare URL used
null

(MD034, no-bare-urls)


80-80: Bare URL used
null

(MD034, no-bare-urls)

src/app/legacy/_blog/page.tsx (1)

8-9: Update Metadata Base URL and Verify Description Consistency
The metadataBase is correctly set to https://peanut.me. However, note that the page description (“Text Tokens”) was not updated—even though UI texts in other parts of the app now refer to “Send to Anyone” or similar. Please confirm whether this is intentional for the legacy blog page.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5b71cfe and ea4564c.

📒 Files selected for processing (19)
  • README.md (2 hunks)
  • docs/consultant_feedback.md (1 hunks)
  • src/app/(mobile-ui)/kyc/page.tsx (1 hunks)
  • src/app/(mobile-ui)/link-account/page.tsx (1 hunks)
  • src/app/(mobile-ui)/profile/page.tsx (1 hunks)
  • src/app/(mobile-ui)/refund/page.tsx (1 hunks)
  • src/app/legacy/_blog/page.tsx (1 hunks)
  • src/app/metadata.ts (1 hunks)
  • src/app/robots.ts (1 hunks)
  • src/components/Claim/Generic/AlreadyClaimed.view.tsx (2 hunks)
  • src/components/Claim/Generic/SenderClaim.view.tsx (2 hunks)
  • src/components/Claim/Generic/WrongPassword.view.tsx (2 hunks)
  • src/components/Claim/Link/Onchain/Success.view.tsx (2 hunks)
  • src/components/Create/Create.tsx (1 hunks)
  • src/components/Create/Link/Confirm.view.tsx (1 hunks)
  • src/components/Create/Link/Input.view.tsx (1 hunks)
  • src/components/Payment/Views/Payment.status.view.tsx (2 hunks)
  • src/components/Welcome/welcomeSDK.tsx (1 hunks)
  • src/constants/general.consts.ts (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
src/components/Create/Create.tsx (2)
Learnt from: jjramirezn
PR: peanutprotocol/peanut-ui#631
File: src/components/Create/Create.tsx:108-112
Timestamp: 2025-01-16T13:14:40.363Z
Learning: In the Peanut UI codebase, the `resetTokenContextProvider` function from `tokenSelectorContext` is a stable function reference that doesn't change, so it doesn't need to be included in useEffect dependencies.
Learnt from: jjramirezn
PR: peanutprotocol/peanut-ui#551
File: src/components/Request/Create/Views/Initial.view.tsx:151-156
Timestamp: 2024-12-02T17:19:18.532Z
Learning: In the `InitialView` component at `src/components/Request/Create/Views/Initial.view.tsx`, when setting the default chain and token in the `useEffect` triggered by `isPeanutWallet`, it's acceptable to omit the setters from the dependency array and not include additional error handling for invalid defaults.
🪛 LanguageTool
docs/consultant_feedback.md

[formatting] ~1-~1: Consider inserting a comma after addressing someone: “@Hugomont,”?
Context: Hello @Hugomont I went through the code and try to answ...

(HELLO_NNP_COMMA)


[uncategorized] ~1-~1: This verb may not be in the correct tense. Consider changing the tense to fit the context better.
Context: ...o @Hugomont I went through the code and try to answer as much as possible to your b...

(AI_EN_LECTOR_REPLACEMENT_VERB_TENSE)


[uncategorized] ~9-~9: Possible missing preposition found.
Context: ...that most of the company try to get rid of Best practices with component: - I wou...

(AI_EN_LECTOR_MISSING_PREPOSITION)


[uncategorized] ~11-~11: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ... try to get rid of Best practices with component: - I would recommend to create more pag...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[grammar] ~12-~12: The verb ‘recommend’ is used with the gerund form.
Context: ...est practices with component: - I would recommend to create more pages & subpages (with layout) - A...

(ADMIT_ENJOY_VB)


[uncategorized] ~13-~13: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...subpages (with layout) - Avoid creating component inside component (ex: GlobalLinkAccount...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[uncategorized] ~13-~13: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...yout) - Avoid creating component inside component (ex: GlobalLinkAccount has a renderComp...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)


[uncategorized] ~17-~17: Possible missing comma found.
Context: ...ng the code and deps, lazy loading some chunks might reduce it. Large components that...

(AI_HYDRA_LEO_MISSING_COMMA)


[style] ~19-~19: The word ‘biz’ is informal. Consider replacing it.
Context: ...ents that sometimes contain both ui and biz logic: - For me it's not too big of an ...

(BIZ)


[uncategorized] ~20-~20: Consider adding a comma here to clarify the structure of the sentence.
Context: ...es contain both ui and biz logic: - For me it's not too big of an issue. Maybe we ...

(PRP_COMMA)


[grammar] ~40-~40: Possible agreement error. The noun ‘config’ seems to be countable; consider using: “bunch of configs”.
Context: ...library (ex: chakra-ui-step is adding a bunch of config into CSS for one component) - I would n...

(A_COLLECTIVE_OF_NN)


[typographical] ~47-~47: After the expression ‘for example’ a comma is usually used.
Context: ... rules for spacing and stick to it. For example I do only 4px, 8px, 16px, 24px, 32px & ...

(COMMA_FOR_EXAMPLE)


[grammar] ~55-~55: The verb ‘recommend’ is used with the gerund form.
Context: ...ct context for state then? 2. "I would recommend to create more pages & subpages (with layout)" - ...

(ADMIT_ENJOY_VB)


[uncategorized] ~65-~65: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... trick 2. I don't have the code in mind but I tend to split the UI components from ...

(COMMA_COMPOUND_SENTENCE)


[misspelling] ~65-~65: This expression is normally spelled as one or with a hyphen.
Context: ...ponents from the pages. Using pages and sub pages in combination with search params, you'...

(EN_COMPOUNDS_SUB_PAGES)


[uncategorized] ~70-~70: Use a comma before ‘so’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... forms depending on the type of strategy so I created one subpage per type of strat...

(COMMA_COMPOUND_SENTENCE)


[uncategorized] ~71-~71: Did you mean “there is”?
Context: ...page per type of strategy. The state of the is totally stored in the URL and everythin...

(THE_THERE)


[uncategorized] ~71-~71: A comma might be missing here.
Context: ...xternal endpoint (for the prices in the chart for example). Since the URL is accessib...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)


[uncategorized] ~72-~72: A comma might be missing here.
Context: ...mple). Since the URL is accessible from everywhere I do not need to do some props drilling...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)


[style] ~76-~76: This phrasing can be overused. Try elevating your writing with a more formal alternative.
Context: ... is open source. We can organize a call if you want, I can show you my thought process when...

(IF_YOU_WANT)


[uncategorized] ~79-~79: The grammatical number of this noun doesn’t look right. Consider replacing it.
Context: ...2/4/25 9:14 PM] This is one of the page component: https://github.com/bancorprotocol/carb...

(AI_EN_LECTOR_REPLACEMENT_NOUN_NUMBER)

🪛 markdownlint-cli2 (0.17.2)
docs/consultant_feedback.md

61-61: Bare URL used
null

(MD034, no-bare-urls)


67-67: Bare URL used
null

(MD034, no-bare-urls)


80-80: Bare URL used
null

(MD034, no-bare-urls)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Deploy-Preview
🔇 Additional comments (25)
src/constants/general.consts.ts (1)

193-193: Correct Pluralization for Wallet Path
The updated path title for /wallet ("Wallet Assets") correctly uses the plural form and aligns with the updated UI text.

src/app/robots.ts (1)

20-20: Update Sitemap URL
The sitemap URL now falls back to 'https://peanut.me' via the environment variable, ensuring consistency with the new base domain.

src/app/(mobile-ui)/link-account/page.tsx (1)

8-9: Confirm Metadata Consistency
The metadata in this file is updated to use the new base URL (https://peanut.me) and the description (“Send crypto via link”) reflects the updated UI messaging. This change is consistent with the overall direction of the PR.

src/app/(mobile-ui)/kyc/page.tsx (1)

10-10: Domain update looks good

The URL change from peanut.to to peanut.me is consistent with the domain migration mentioned in the PR objectives.

src/components/Welcome/welcomeSDK.tsx (1)

82-82: URL update is consistent with domain migration

The redirection URL has been properly updated from peanut.to to peanut.me for the "Cross-chain" feature.

src/app/metadata.ts (2)

17-17: Domain update in metadata base URL is correct

The fallback URL for metadataBase has been properly updated to use the new domain.


24-24: OpenGraph URL update is consistent

The OpenGraph URL has been correctly updated to the new domain, maintaining consistency across metadata properties.

src/app/(mobile-ui)/refund/page.tsx (2)

6-6: Messaging update from "Text Tokens" to "Send to Anyone"

The description text change aligns with the copy updates mentioned in the PR objectives.


7-7: Domain update is consistent

The metadataBase URL has been properly updated to use the new peanut.me domain.

README.md (1)

1-1: LGTM: URL update to new domain

The update from peanut.to to peanut.me for the live site URL aligns with the domain migration mentioned in the PR summary.

src/components/Claim/Link/Onchain/Success.view.tsx (2)

4-4: LGTM: Import added for CrispButton component

This import is required for the updated support method implemented below.


111-112: Support method updated from Discord to Crisp chat

Replacing the Discord link with the CrispButton component provides a more seamless in-app support experience for users.

src/components/Create/Link/Confirm.view.tsx (1)

247-247: LGTM: UI text updated for clarity

Changing from "Text Tokens" to "Send to Anyone" makes the functionality clearer to end users.

src/components/Claim/Generic/WrongPassword.view.tsx (2)

5-5: LGTM: Import added for CrispButton component

This import is required for the updated support method implemented below.


16-17: Support method updated from Discord to Crisp chat

Replacing the Discord link with the CrispButton component provides a more seamless in-app support experience for users.

src/components/Claim/Generic/AlreadyClaimed.view.tsx (2)

6-6: Clean import addition for the new support component.

The addition of the CrispButton import is clean and follows the established import pattern in the file.


83-84: Support channel update improves user experience.

Good update replacing the Discord link with a more integrated CrispButton component. This change provides users with a more seamless support experience while maintaining the friendly tone in the message.

src/components/Payment/Views/Payment.status.view.tsx (2)

19-19: Clean import addition for the new support component.

The import for CrispButton is properly placed and follows the established import pattern in the file.


303-304: Support channel update improves user experience.

Good update replacing the Discord reference with the CrispButton component. This provides a more integrated support experience for users, which is a nice usability improvement.

src/components/Create/Link/Input.view.tsx (2)

340-340: Clearer and more user-friendly title.

Good change from "Text Tokens" to "Send to Anyone" - the new copy is more intuitive and better communicates the feature's purpose to users.


347-347: Improved description focuses on user benefits.

The updated description is excellent - it clearly explains the key benefit (sending without needing a recipient's wallet address) and the flexibility for recipients (claiming in preferred token and blockchain), all in a more concise and user-friendly format.

src/app/(mobile-ui)/profile/page.tsx (1)

7-8: Updated metadata with consistent branding.

Good updates to both the description (now using "Send to Anyone" instead of "Text Tokens") and the metadataBase URL (changed from peanut.to to peanut.me). These changes ensure consistency with the updated branding across the application.

src/components/Claim/Generic/SenderClaim.view.tsx (2)

5-5: New CrispButton component imported for support integration.

The addition of the CrispButton import enables a new support interaction method in the UI.


93-94: Improved support interaction by replacing Discord link with CrispButton.

This change enhances the support experience by keeping users within the application instead of redirecting to Discord. The implementation maintains proper styling for both light and dark modes.

src/components/Create/Create.tsx (1)

108-110: Unconditional reset and fetch operations on component mount.

The previous version conditionally executed these functions based on isPeanutWallet, but now they run unconditionally when the component mounts. According to retrieved learnings, resetTokenContextProvider is a stable function reference that doesn't need to be included in dependencies.

This change ensures consistent initialization regardless of wallet type.

README.md Outdated

```bash
git submodule update --init --recursive
git submodule update --init --recursives
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot Mar 10, 2025

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix typo in git submodule command

The correct flag for git submodule update is --recursive (without the 's' at the end).

-git submodule update --init --recursives
+git submodule update --init --recursive
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
git submodule update --init --recursives
git submodule update --init --recursive

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.

@Hugo0 typo? afaik its recursive 👀

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.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Copy link
Copy Markdown
Contributor

@kushagrasarathe kushagrasarathe left a comment

Choose a reason for hiding this comment

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

approved, two things tho:

  • fix git recursive cmd typo
  • delete consultant_feedback.md

README.md Outdated

```bash
git submodule update --init --recursive
git submodule update --init --recursives
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.

@Hugo0 typo? afaik its recursive 👀

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.

delete this?

Discord!
</a>
We would like to hear from your experience.{' '}
<CrispButton className="text-black underline dark:text-white">Chat with support</CrispButton>
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.

noiceee

@Hugo0 Hugo0 merged commit 705d105 into peanut-wallet-dev Mar 12, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants