Skip to content

feat: add button to support in modal blocked address#2884

Open
AGMASO wants to merge 3 commits intomainfrom
feat/error-button-in-compliance
Open

feat: add button to support in modal blocked address#2884
AGMASO wants to merge 3 commits intomainfrom
feat/error-button-in-compliance

Conversation

@AGMASO
Copy link
Collaborator

@AGMASO AGMASO commented Feb 26, 2026

General Changes

  • add button to support in modal blocked address
Screenshot 2026-02-26 at 6 53 44 PM Screenshot 2026-02-26 at 6 54 07 PM

Developer Notes

Add any notes here that may be helpful for reviewers.


Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)

Copilot AI review requested due to automatic review settings February 26, 2026 18:09
@vercel
Copy link

vercel bot commented Feb 26, 2026

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

Project Deployment Actions Updated (UTC)
interface Ready Ready Preview, Comment Mar 11, 2026 2:34pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a "Get support" button to the blocked address modal, allowing users to open the support feedback dialog with a pre-filled message containing their blocked wallet address. The implementation follows an existing pattern used in other parts of the application (such as Error.tsx), utilizing the root store to manage the feedback dialog state.

Changes:

  • Added support button integration to AddressBlockedModal component using the feedback system
  • Updated localization file to add reference for the "Get support" message

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/components/AddressBlockedModal.tsx Added "Get support" button with handler that opens feedback modal with prefilled message containing blocked wallet address
src/locales/en/messages.po Added localization reference for "Get support" text in AddressBlockedModal context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


setSupportPrefillMessage(template);
setFeedbackOpen(true);
close();
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The close() function is called but not defined. Unlike other modals in the codebase (such as Error.tsx), this component doesn't use the useModalContext hook to obtain the close function. Since AddressBlockedModal is designed to be non-dismissable (as indicated by the comment on line 23), calling close() here appears to be a copy-paste error from Error.tsx. This will cause a runtime error when the Get Support button is clicked. Consider removing the close() call, as the modal should remain open when the support feedback dialog opens.

Suggested change
close();

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.


setSupportPrefillMessage(template);
setFeedbackOpen(true);
close();
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

close() is called in handleGetSupport, but there is no close in scope (no prop and no useModalContext() hook), so this will fail to compile. Either import/use useModalContext (like TxErrorView does) and call its close, or remove the call if the blocked modal is intended to stay open while the Support modal opens.

Suggested change
close();

Copilot uses AI. Check for mistakes.
);
const handleGetSupport = () => {
const walletAddress = address ? address : 'Address not available';
const template = `Unable to Connect:\n\n"${walletAddress}"`;
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

The support prefill template is hard-coded to Unable to Connect even when isError is true and the UI title shows Connection Error. Consider generating the template based on isError (and potentially including any available error context) so the message aligns with what the user is seeing.

Suggested change
const template = `Unable to Connect:\n\n"${walletAddress}"`;
const title = isError ? 'Connection Error' : 'Unable to Connect';
const template = `${title}:\n\n"${walletAddress}"`;

Copilot uses AI. Check for mistakes.
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