Skip to content
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

Added Balance badge to the Settings page #4220

Merged
merged 3 commits into from
Jul 28, 2021

Conversation

parasharrajat
Copy link
Member

@parasharrajat parasharrajat commented Jul 25, 2021

cc @stitesExpensify

Details

Fixed Issues

$ #4171

Tests | QA Steps

  1. Open E.cash.
  2. Open Settings page.
  3. See the payments Link, it should have the wallet balance badge.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

image

Mobile Web

badge-m

Desktop

iOS

badge-i

Android

badge-a

@parasharrajat parasharrajat requested a review from a team as a code owner July 25, 2021 13:19
@MelvinBot MelvinBot requested review from Jag96 and removed request for a team July 25, 2021 13:19
@parasharrajat
Copy link
Member Author

Ready for review.

@parasharrajat
Copy link
Member Author

@Jag96 Whenever you are ready, please review it. I have no more changes left to do.

/** Is success type */
success: PropTypes.bool,

/** Is success type */
Copy link
Contributor

Choose a reason for hiding this comment

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

Error type


const propTypes = {
// Text to be shown as badge near the right end.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment should use block comments per style guide

* @param {Boolean} [isPressed]
* @returns {Object}
* @param {*} success
* @param {*} error
Copy link
Contributor

Choose a reason for hiding this comment

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

These should be {Boolean} right?

}) => {
const walletBalance = numberFormat(
userWallet.availableBalance,
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like if the user has no availableBalance, this can be $NaN, so I think we want a fallback of 0 here.

@parasharrajat
Copy link
Member Author

@Jag96 Updated.

@parasharrajat
Copy link
Member Author

Gentle bump @Jag96 Changes are done.

Copy link
Contributor

@Jag96 Jag96 left a comment

Choose a reason for hiding this comment

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

LGTM

@Jag96 Jag96 merged commit b08f80f into Expensify:main Jul 28, 2021
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging in version: 1.0.81-5🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Aug 6, 2021

🚀 Deployed to production in version: 1.0.82-7🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@parasharrajat parasharrajat deleted the walletbadge branch November 20, 2023 13:07
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.

3 participants