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

[ENG-3614] feat: Ability to manage a BRC-20 token's visibility (hide) #765

Merged
merged 35 commits into from
Jan 24, 2024

Conversation

jordankzf
Copy link
Contributor

@jordankzf jordankzf commented Jan 18, 2024

🔘 PR Type

Dependent on: secretkeylabs/xverse-core#353

What kind of change does this PR introduce?

Lets users hide BRC-20 tokens if they wish, on the Manage Tokens screen.

  • Bugfix
  • Enhancement
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

📜 Background

Provide a brief explanation of why this pull request is needed. Include the problem you are solving or the functionality you are adding. Reference any related issues.

Issue Link: #[issue_number]
Context Link (if applicable):

🔄 Changes

Enumerate the changes made in this pull request, detailing what has been modified, added, or removed. Include technical details and implications if necessary.

Impact:

  • Explain the broader impact of these changes.
  • How it improves performance, fixes bugs, adds functionality, etc.

🖼 Screenshot / 📹 Video

Include screenshots or a video demonstrating the changes. This is especially helpful for UI changes.

image image

✅ Review checklist

Please ensure the following are true before merging:

  • Code Style is consistent with the project guidelines.
  • Code is readable and well-commented.
  • No unnecessary or debugging code has been added.
  • Security considerations have been taken into account.
  • The change has been manually tested and works as expected.
  • Breaking changes and their impacts have been considered and documented.
  • Code does not introduce new technical debt or issues.

@jordankzf
Copy link
Contributor Author

jordankzf commented Jan 18, 2024

Design pattern review:

  1. Export Pick interface
  2. Extend FungibleToken from 1
  3. Return ticker as principal from brc20CoinList
  4. Enforce upper case ticker
  5. Default visible to undefined

Completed: secretkeylabs/xverse-core#353

@jordankzf jordankzf marked this pull request as draft January 18, 2024 10:14
@jordankzf jordankzf changed the title Ability to manage a BRC-20 token's visibility (hide) ENG-3614: Ability to manage a BRC-20 token's visibility (hide) Jan 19, 2024
@jordankzf jordankzf requested review from abdulhaseeb4239 and removed request for teebszet January 23, 2024 10:52
@jordankzf jordankzf marked this pull request as ready for review January 23, 2024 10:52
@teebszet teebszet changed the title ENG-3614: Ability to manage a BRC-20 token's visibility (hide) [ENG-3614] feat: Ability to manage a BRC-20 token's visibility (hide) Jan 23, 2024
Copy link

@DuskaT021 DuskaT021 added testing QA testing in progress ready for release and removed ready for test testing QA testing in progress labels Jan 24, 2024
@DuskaT021 DuskaT021 merged commit 35d76d0 into develop Jan 24, 2024
5 checks passed
jordankzf added a commit that referenced this pull request Jan 28, 2024
…#765)

* Add UpdateVisibleBrc20CoinListKey

* Bicoin toggled first attempt

* Fix ScrollableContainer not taking full height

* Don't override existing token's visiblity setting

* Hide brc20Coins if visible === false

* Delegate logic upstream to xverse-core

* Copy pasta

* Rename getFtTicker to more generic name

* CSS showDivider alternative

* Revert "CSS showDivider alternative"

This reverts commit 97dde6e.

* Bump to beta version of xverse-core

* xverse-core will default visible to true

* Bump xverse-core again

* Bump xverse-core again

* BRC-20 fiat value support

* Fix triple source of truth bug 🤪

* Update Brc20Token type for getBrc20Tokens

* Remove fallback

* Concurrent fetching

* Stop naively assuming brc20 tokens have no principal

* Bump xverse-core

* fix: brc20 detail page should have round token image

* chore: bump core beta version

* refactor: css only for manage token dividers

* refactor: remove a lot of fluff and use FiatAmountText component

* Safe type assertion

* FREE THYSELF FROM TYPECASTS

* Tim's changes

* Bump xverse-core to v9.1.0

* tokenFiatRate can be passed directly

* Fix closing extension does not apply changes bug

---------

Co-authored-by: Tim Man <[email protected]>
@teebszet teebszet deleted the jordankzf/hide-brc-20 branch February 26, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants