-
-
Notifications
You must be signed in to change notification settings - Fork 218
feat: Add modal explainer for pending payment clock icon (#3601) #3619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @a-khushal, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new feature aimed at improving user clarity within the Nostr Wallet Connect (NWC) settings. It implements an interactive modal that provides a detailed explanation for the 'pending payment clock icon,' helping users understand its significance. The modal also offers a convenient shortcut to view and manage these pending payment requests, enhancing the overall user experience and accessibility of NWC functionalities. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces an explainer modal for the pending payments icon, which is a nice user experience improvement. The implementation correctly leverages the existing ModalStore to display this information. My review has identified a couple of hardcoded true values in conditional rendering logic, likely left over from development. These should be replaced with dynamic variables to ensure the UI behaves as expected.
| true | ||
| ? 'views.Settings.NWC.title' | ||
| : 'views.Settings.NostrWalletConnect.title' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition for selecting the shorter header title is hardcoded to true. This should be replaced with the shouldReduceIconSize variable to dynamically adjust the title based on the number of icons displayed in the header.
| true | |
| ? 'views.Settings.NWC.title' | |
| : 'views.Settings.NostrWalletConnect.title' | |
| shouldReduceIconSize | |
| ? 'views.Settings.NWC.title' | |
| : 'views.Settings.NostrWalletConnect.title' |
| /> | ||
| </TouchableOpacity> | ||
| {hasPendingPayments && ( | ||
| {true && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fc4757a to
91dab6a
Compare
91dab6a to
40dd7db
Compare
|
This is not what I had in mind. We just wanted to add a modal for the clock icon on the balance pane |
Description
Relates to issue: ZEUS-3601
This pull request is categorized as a:
Checklist
yarn run tscand made sure my code compiles correctlyyarn run lintand made sure my code didn’t contain any problematic patternsyarn run prettierand made sure my code is formatted correctlyyarn run testand made sure all of the tests passTesting
If you modified or added a utility file, did you add new unit tests?
I have tested this PR on the following platforms (please specify OS version and phone model/VM):
I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):
Locales
Third Party Dependencies and Packages
yarnafter this PR is merged inpackage.jsonandyarn.lockhave been properly updatedOther: