Skip to content

Conversation

@drewcook
Copy link
Contributor

@drewcook drewcook commented Dec 7, 2022

General Changes

  • Adds in support to use text for the asset input's balance label
  • Applies to all instances of AssetInput across the UI

Developer Notes

Add any notes here that may be helpful for reviewers.


Author Checklist

Please ensure you, the author, have gone through this checklist to ensure there is an efficient workflow for the reviewers.

  • The base branch is set to main
  • The title is using Conventional Commit formatting
  • The Github issue has been linked to the PR in the Development section
  • The General Changes section has been filled out
  • Developer Notes have been added (optional)

If the PR is ready for review:

  • The PR is in Open state and not in Draft mode
  • The Ready for Dev Review label has been added

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 style generally follows existing patterns
  • 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)
  • Code changes have been quality checked in the ephemeral URL
  • QA verification has been completed
  • There are two or more approvals from the core team
  • Squash and merge has been checked

@drewcook drewcook added Ready for QA Review Ready for QA engineer reviews Ready for Dev Review Read for frontend engineer reviews labels Dec 7, 2022
@drewcook drewcook linked an issue Dec 7, 2022 that may be closed by this pull request
isMaxSelected={isMaxSelected}
disabled={withdrawTxState.loading}
maxValue={maxAmountToWithdraw.toString(10)}
balanceText={<Trans>Supply balance</Trans>}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be Available?

Copy link
Collaborator

Choose a reason for hiding this comment

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

In case the amount available to withdraw < supply balance

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, in all cases? Or just the edge-case when the liquidity isn't enough to cover?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I think optimally it makes sense to just state that for that one case, and Supply balance for all others

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 471.39 KB (🟡 +89 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/staking 20.49 KB (🟡 +19 B) 491.88 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@MareskoY MareskoY added QC Passed and removed Ready for QA Review Ready for QA engineer reviews labels Dec 8, 2022
MareskoY
MareskoY previously approved these changes Dec 8, 2022
iamanastasia
iamanastasia previously approved these changes Dec 8, 2022
Copy link
Collaborator

@defispartan defispartan left a comment

Choose a reason for hiding this comment

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

update WithdrawModal text

@drewcook drewcook dismissed stale reviews from iamanastasia and MareskoY via bb83e8e December 8, 2022 16:21
@github-actions
Copy link

github-actions bot commented Dec 8, 2022

@github-actions
Copy link

github-actions bot commented Dec 8, 2022

@drewcook drewcook merged commit a115097 into main Dec 8, 2022
@drewcook drewcook deleted the feat/asset-input-balance-text branch December 8, 2022 17:14
grothem pushed a commit that referenced this pull request Dec 16, 2022
* feat: support dynamic balance text for asset input

* chore: withdraw modal text

* chore: use lt() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QC Passed Ready for Dev Review Read for frontend engineer reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update labels for asset input across all modals

5 participants