Skip to content

Commit

Permalink
feat: exotics v1 (#689)
Browse files Browse the repository at this point in the history
* chore: merge from upstream develop (#26)

* release: v0.19.0 (#607)

* release: v0.19.0

* update package-lock

* bump xverse core version to fix fee issue

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Build analytics tracking for web-extension (#590)

* Build analytics tracking for web-extension

* Add `/privacy-preferences` screen

* Build analytics tracking for web-extension

* Update mixpanel tracking logic

* Remove unused wallet action name

* Add authorize data collection toggler and popup

* Update tracking logic

* Add translation keys

* Update mixpanel tracking logic

* Remove unused imports

* Make some code changes after PR review, upgrade `xverse-core` package version

* Upgrade `xverse-core` package version

* Resolve git conflicts

* Handling fees with thresholds (#601)

* Handling fees with thresholds

* Add margin under the high fees warning

* Change the high fees warning position for Ordinals & Brc-20 txs

* Show the warning if the initial fee from transaction is greater than the threshold

* Add high fee warning for one-step brc20 transfer

* update copy

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Refactor ledger-related logic (#586)

* Add STX support for Ledger accounts

* Update the copy and ledger account import logic

* Update the ledger account import logic for STX support

* Add `/add-stx-address-ledger` route for adding stx account

* Remove the old case handling when there is no `ordinalsAddress`

* Add STX address verification with ledger device

* Remove the `/send-stx-ledger` path and update `/send-stx` to handle ledger

* Handle regular STX transactions

* Remove unused `/review-ledger-stx-tx` path, add STX NFT handling

* Remove `/review-ledger-ft-tx` and `/send-ft-ledger` routes, update `/send-ft` to support ledger

* Enable STX auth requests for ledger accounts that have an STX address

* Add link to the auth popup  to add the STX Ledger account

* Update screen UI for STX NFT sending

* Update copy for STX incoming tx signing

* Update STX message signing logic

* Update STX-related logic for ledger accounts

* Update error handling for STX message signing with ledger

* Get rid of `findLedgerAccountId` ledger util, move more copy to locales

* Fix cropped button container for tx signing popup

* Update address index definition for adding stx address

* Update address index definition for address verification and stx tx confirmation

* Update address index definition for stx jwt auth

* Refactor ledger-related logic

* Refactor ledger account import

* Fix ledger account import when both BTC and STX options are selected

* Refactor ledger address verification screen

* Refactor ledger tx confirmation screen

* Refactor Add stx address screen

* Fix `unsignedTx` type

* Add `StacksRecipient` type and make some small code fixes

* Add `icon` prop for the `ActionButton` component

* Change the ledger steps in a callback

* Add types for ledger tx state objects

* Fix account index for stx account import, update ledger tx types and utils

* Change the import path for `StacksRecipient`

* Change the steps numeration for ledger account import

* Get rid of unused step changing logic for ledger account import

* Add more error handling

* Update xverse-core version for testing purposes

* Remove caret symbol in xverse-core package

* Fix CI build

* Make a couple of code fixes according to PR review comments

* Add more transaltions

* Add the `DEFAULT_TRANSITION_OPTIONS` constant

* Make separate components for Steps and StepControls for the Ledger account import flow

* Fix style imports

* Upgrade the `xverse-core` package version

* Upgrade `xverse-core` package version

* Disable PSBT tx signing for ledger accounts

* update xverse-core

* package-lock

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

---------

Co-authored-by: Yukan <yukanliao@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* chore: allow ci build version to pass env vars to build (#27)

* feat/eng 2904 implement frontend on web extension (#5)

* Tim/eng 2933 implement dashboard display of rare sats bundles (#1)

* chore: create a hook for rare sats with placeholder data

* chore: add some inscription placeholder with image

* feat/eng 2933 implement dashboard rare sats tab (#4)

* chore: create a collectiblesTabs component with react-tabs

* refactor: move nft dashboard logic into hook

* feat: move rare sats into separate tab

* fix: add tab state styling and move to common.styled

* feat: style collectibles header

* fix: restyle all grid item colors and add total items

* fix: supply total nfts and total rare sats number

and type the collectiblesTabs props

* style: comments

* feat/eng 2934 implement sats bundle UI screen (#6)

* Abdulhaseeb/eng 2930 implement settings screen updates (#7)

* feat: enable rare sats from settings

* fix: disabled UI

* fix: typos

* Abdulhaseeb/eng 2931 implement info dialogs (#8)

* feat: enable rare sats from settings

* feat: notice alert and rarities screen

* feat: new feature dialog

* fix: styles

* feat: add UI for rare sats bundle in collectible item details (#2)

* fix: ordinal thumbnails were broken (#10)

* Add no collectibles and error screens (#11)

* feat: integrate rare sats form core (#9)

* feat: add rare sats item detail screen (#3)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* feat: implement rare sats send screen (#12)

* chore: use getUtxoOrdinalBundle to know if a inscription belongs to a bundle (#14)

* Abdulhaseeb/eng 2938 implement rare sats confirm screen (#15)

* feat: confirm rare sat tx

* feat: added warning callout

* feat: implement UI for rare sats thumbnails (#16)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

* feat: add rare sats thumbnathumbnails

* chore: add missing mock data for testing inscriptions belonging to a bundle

* Tim/eng 2959 set up test mocks (#17)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen (#18)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen

* fix: ui

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: rarities screen UI (#19)

* chore: fix some todos and issues in rare sats feature (#20)

* chore: Unify assets and rarity label in rarityTile and rareSatIcon components

* chore: create bundle asset and use it in RareSatsTabGridItem and confirm send screen

* chore: add bundle asset component in send screen

* chore: make glow optional and remove it from inscribed rare sats asset

* chore: add assets to bundle gallery view

* chore: remove unsupported media callout. add margin bottom and fix cannot send rare sat individually for gallery view

* fix: styling on gallery view for dashboard and rare sats bundle grids (#22)

* fix: styling on gallery view for dashboard and rare sats bundle grids

* fix: add column layout for rare sats bundle gallery view

* fix: rare sats bundle back should always fo to gallery

* fix: header spacing rare sats bundle and load more button

* feat: add isLoading state for rare sats tab

* fix: remove is owned by active account check

the user flow resets whenever account changes, so this check is no
longer necessary

* feat: save collectibles tab index in query params

* fix: restore ledger open in new tab behaviour

* fix: show info panel regardless of empty state (#23)

* chore: fix UI issues (#24)

* chore: fix issues with dont see your rare sat banner

* chore: fix ui issues in rare sats details screen

* Update src/app/screens/nftDashboard/notice.tsx

* refactor: use library components and minor styling fixes

* fix: rare sat bundle send button width

* fix: add separator in gallery view rare sats bundle and styling fixes

* fix: minor style fix

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: branch merge errors

* chore: remove mock data (#28)

* chore: remove mock data

* chore: add extenral links to scan tool and rare sats post

* chore: move external link urls to constants file

---------

Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* release v0.20.0 (#29)

* release: v0.19.0 (#607)

* release: v0.19.0

* update package-lock

* bump xverse core version to fix fee issue

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Build analytics tracking for web-extension (#590)

* Build analytics tracking for web-extension

* Add `/privacy-preferences` screen

* Build analytics tracking for web-extension

* Update mixpanel tracking logic

* Remove unused wallet action name

* Add authorize data collection toggler and popup

* Update tracking logic

* Add translation keys

* Update mixpanel tracking logic

* Remove unused imports

* Make some code changes after PR review, upgrade `xverse-core` package version

* Upgrade `xverse-core` package version

* Resolve git conflicts

* Handling fees with thresholds (#601)

* Handling fees with thresholds

* Add margin under the high fees warning

* Change the high fees warning position for Ordinals & Brc-20 txs

* Show the warning if the initial fee from transaction is greater than the threshold

* Add high fee warning for one-step brc20 transfer

* update copy

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Refactor ledger-related logic (#586)

* Add STX support for Ledger accounts

* Update the copy and ledger account import logic

* Update the ledger account import logic for STX support

* Add `/add-stx-address-ledger` route for adding stx account

* Remove the old case handling when there is no `ordinalsAddress`

* Add STX address verification with ledger device

* Remove the `/send-stx-ledger` path and update `/send-stx` to handle ledger

* Handle regular STX transactions

* Remove unused `/review-ledger-stx-tx` path, add STX NFT handling

* Remove `/review-ledger-ft-tx` and `/send-ft-ledger` routes, update `/send-ft` to support ledger

* Enable STX auth requests for ledger accounts that have an STX address

* Add link to the auth popup  to add the STX Ledger account

* Update screen UI for STX NFT sending

* Update copy for STX incoming tx signing

* Update STX message signing logic

* Update STX-related logic for ledger accounts

* Update error handling for STX message signing with ledger

* Get rid of `findLedgerAccountId` ledger util, move more copy to locales

* Fix cropped button container for tx signing popup

* Update address index definition for adding stx address

* Update address index definition for address verification and stx tx confirmation

* Update address index definition for stx jwt auth

* Refactor ledger-related logic

* Refactor ledger account import

* Fix ledger account import when both BTC and STX options are selected

* Refactor ledger address verification screen

* Refactor ledger tx confirmation screen

* Refactor Add stx address screen

* Fix `unsignedTx` type

* Add `StacksRecipient` type and make some small code fixes

* Add `icon` prop for the `ActionButton` component

* Change the ledger steps in a callback

* Add types for ledger tx state objects

* Fix account index for stx account import, update ledger tx types and utils

* Change the import path for `StacksRecipient`

* Change the steps numeration for ledger account import

* Get rid of unused step changing logic for ledger account import

* Add more error handling

* Update xverse-core version for testing purposes

* Remove caret symbol in xverse-core package

* Fix CI build

* Make a couple of code fixes according to PR review comments

* Add more transaltions

* Add the `DEFAULT_TRANSITION_OPTIONS` constant

* Make separate components for Steps and StepControls for the Ledger account import flow

* Fix style imports

* Upgrade the `xverse-core` package version

* Upgrade `xverse-core` package version

* Disable PSBT tx signing for ledger accounts

* update xverse-core

* package-lock

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* release v0.20.0

* chore: bump to xverse-core 1.8.2 for bip322 signing fix

* fix: collectibles dashboard should ignore invalid params errors (#33)

* fix: put in a quick fix for more location.state serialization bugs (#34)

* chore: add support for rare sats in tx confirmation screen (#35)

* chore: add support for rare sats in tx confirmation screen

* chore: remove logs and fix typo

* chore: change unknown icon

---------

Co-authored-by: Tim Man <timothyc.man@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>

* chore: tidy up zips of each build run and the release uploads (#31)

* feat: collectibles ui frontend (#30)

* [ENG-2836] feat: Ordinals and BRC-20 collectibles UI

* Improve ordinals & brc-20 collectibles fetching logic and UI

* Collectible ordinal detail page (#32)

* Tim/eng 2933 implement dashboard display of rare sats bundles (#1)

* chore: create a hook for rare sats with placeholder data

* chore: add some inscription placeholder with image

* feat/eng 2933 implement dashboard rare sats tab (#4)

* chore: create a collectiblesTabs component with react-tabs

* refactor: move nft dashboard logic into hook

* feat: move rare sats into separate tab

* fix: add tab state styling and move to common.styled

* feat: style collectibles header

* fix: restyle all grid item colors and add total items

* fix: supply total nfts and total rare sats number

and type the collectiblesTabs props

* style: comments

* feat/eng 2934 implement sats bundle UI screen (#6)

* Abdulhaseeb/eng 2930 implement settings screen updates (#7)

* feat: enable rare sats from settings

* fix: disabled UI

* fix: typos

* Abdulhaseeb/eng 2931 implement info dialogs (#8)

* feat: enable rare sats from settings

* feat: notice alert and rarities screen

* feat: new feature dialog

* fix: styles

* feat: add UI for rare sats bundle in collectible item details (#2)

* fix: ordinal thumbnails were broken (#10)

* Add no collectibles and error screens (#11)

* feat: integrate rare sats form core (#9)

* feat: add rare sats item detail screen (#3)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* feat: implement rare sats send screen (#12)

* chore: use getUtxoOrdinalBundle to know if a inscription belongs to a bundle (#14)

* Abdulhaseeb/eng 2938 implement rare sats confirm screen (#15)

* feat: confirm rare sat tx

* feat: added warning callout

* feat: implement UI for rare sats thumbnails (#16)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

* feat: add rare sats thumbnathumbnails

* chore: add missing mock data for testing inscriptions belonging to a bundle

* Tim/eng 2959 set up test mocks (#17)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen (#18)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen

* fix: ui

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: rarities screen UI (#19)

* chore: fix some todos and issues in rare sats feature (#20)

* chore: Unify assets and rarity label in rarityTile and rareSatIcon components

* chore: create bundle asset and use it in RareSatsTabGridItem and confirm send screen

* chore: add bundle asset component in send screen

* chore: make glow optional and remove it from inscribed rare sats asset

* chore: add assets to bundle gallery view

* chore: remove unsupported media callout. add margin bottom and fix cannot send rare sat individually for gallery view

* fix: styling on gallery view for dashboard and rare sats bundle grids (#22)

* fix: styling on gallery view for dashboard and rare sats bundle grids

* fix: add column layout for rare sats bundle gallery view

* fix: rare sats bundle back should always fo to gallery

* fix: header spacing rare sats bundle and load more button

* feat: add isLoading state for rare sats tab

* fix: remove is owned by active account check

the user flow resets whenever account changes, so this check is no
longer necessary

* feat: save collectibles tab index in query params

* fix: restore ledger open in new tab behaviour

* fix: show info panel regardless of empty state (#23)

* Add ordinal attributes in detail screen

* chore: fix UI issues (#24)

* chore: fix issues with dont see your rare sat banner

* chore: fix ui issues in rare sats details screen

* Update src/app/screens/nftDashboard/notice.tsx

* refactor: use library components and minor styling fixes

* fix: rare sat bundle send button width

* fix: add separator in gallery view rare sats bundle and styling fixes

* fix: minor style fix

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: branch merge errors

* chore: remove mock data (#28)

* chore: remove mock data

* chore: add extenral links to scan tool and rare sats post

* chore: move external link urls to constants file

* Add scrollbar to ordinal detail screen

* Adjust text alignment

* Update Navigation Bar

* Add Share button in extension ordinal detail screen

* Include useInscription hook

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* Fix `getNextPageParam` param in the `useAddressInscriptionCollections` hook

* feat: inscriptions collection page UI components (#36)

* chore: use xverse-core with api functions

* feat: add ordinals collection screen and route

* chore: add prettier organize imports plugin

* chore: remove unused eslint disable line

* fix: fix tab query params

* feat: add ordinals collection route and screen

* fix: revert scrollbar change

* Tim/eng 2813 inscriptions collection page data fetching pagination (#37)

* Make some small code tweaks

* Complete Remaining Todos for Ordinal Detail Screen (#38)

* Update ordinal detail Ui accodrding to MVP

* Get ordinal details from api

* Have placeholder incase market data does not exist

* Fix navigation and address comments

* feat: collection grid items (#39)

* Add content skeleton loader for Collectibles tab

* Fix border radius for Collectibles skeleton loader

* Fix the loader condition in Collectibles tab

* Update BRC20 token collection thumbnail in main collectible page

* Tim/eng 2833 inscriptions full screen responsive main page collection (#41)

* feat: style the send screen including responsive layout

* style: use theme radius

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

---------

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* Display collection market data (#40)

* Get collection amrket data

* Fix alignment on collection page

* chore: revert the large package-lock.json diff

* Update receive screen and bottom modal (#42)

* Update recieve screen

* Add updated QR code in recieve screen

* Update receive modal

* Fix getNextPageParam for const useAddressInscriptionCollections = () => {

* Remove unused package

* fix: use theme radius

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* fix: use theme radius

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* Address comments

* chore: remove empty unreferenced component

* Remove unused background color

* fix: layout and spacing on updated bottom modal, receive nft

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* fix color for custom switch and code typo (#43)

* unstaged package-lock.json

* fix: update all custom switch colors

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: inscriptions grid fixes (#44)

* chore: bump core version to 1.9.1

* Update function to recognise and parse brc20 tokens (#46)

* Update skeleton loader logic for Collectibles UI (#45)

* Update skeleton loader logic for Collectibles UI

* Add a separate `TilesSkeletonLoader` component, add skeleton loader on the Collection page

* Add ordinal detail page skeleton loader for the extension view

* Add skeleton loader for the ordinal image component

* fix: collectibles fixes from review (#47)

* Fix minor ui bugs in collectible screen (#48)

---------

Co-authored-by: Imamah-Zafar <88320460+Imamah-Zafar@users.noreply.github.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>
Co-authored-by: Duska.T <55587184+DuskaT021@users.noreply.github.com>

* Release/0.21.0 (#49)

* chore: merge upstream develop (#53)

* release: v0.19.0 (#607)

* release: v0.19.0

* update package-lock

* bump xverse core version to fix fee issue

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Build analytics tracking for web-extension (#590)

* Build analytics tracking for web-extension

* Add `/privacy-preferences` screen

* Build analytics tracking for web-extension

* Update mixpanel tracking logic

* Remove unused wallet action name

* Add authorize data collection toggler and popup

* Update tracking logic

* Add translation keys

* Update mixpanel tracking logic

* Remove unused imports

* Make some code changes after PR review, upgrade `xverse-core` package version

* Upgrade `xverse-core` package version

* Resolve git conflicts

* Handling fees with thresholds (#601)

* Handling fees with thresholds

* Add margin under the high fees warning

* Change the high fees warning position for Ordinals & Brc-20 txs

* Show the warning if the initial fee from transaction is greater than the threshold

* Add high fee warning for one-step brc20 transfer

* update copy

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Refactor ledger-related logic (#586)

* Add STX support for Ledger accounts

* Update the copy and ledger account import logic

* Update the ledger account import logic for STX support

* Add `/add-stx-address-ledger` route for adding stx account

* Remove the old case handling when there is no `ordinalsAddress`

* Add STX address verification with ledger device

* Remove the `/send-stx-ledger` path and update `/send-stx` to handle ledger

* Handle regular STX transactions

* Remove unused `/review-ledger-stx-tx` path, add STX NFT handling

* Remove `/review-ledger-ft-tx` and `/send-ft-ledger` routes, update `/send-ft` to support ledger

* Enable STX auth requests for ledger accounts that have an STX address

* Add link to the auth popup  to add the STX Ledger account

* Update screen UI for STX NFT sending

* Update copy for STX incoming tx signing

* Update STX message signing logic

* Update STX-related logic for ledger accounts

* Update error handling for STX message signing with ledger

* Get rid of `findLedgerAccountId` ledger util, move more copy to locales

* Fix cropped button container for tx signing popup

* Update address index definition for adding stx address

* Update address index definition for address verification and stx tx confirmation

* Update address index definition for stx jwt auth

* Refactor ledger-related logic

* Refactor ledger account import

* Fix ledger account import when both BTC and STX options are selected

* Refactor ledger address verification screen

* Refactor ledger tx confirmation screen

* Refactor Add stx address screen

* Fix `unsignedTx` type

* Add `StacksRecipient` type and make some small code fixes

* Add `icon` prop for the `ActionButton` component

* Change the ledger steps in a callback

* Add types for ledger tx state objects

* Fix account index for stx account import, update ledger tx types and utils

* Change the import path for `StacksRecipient`

* Change the steps numeration for ledger account import

* Get rid of unused step changing logic for ledger account import

* Add more error handling

* Update xverse-core version for testing purposes

* Remove caret symbol in xverse-core package

* Fix CI build

* Make a couple of code fixes according to PR review comments

* Add more transaltions

* Add the `DEFAULT_TRANSITION_OPTIONS` constant

* Make separate components for Steps and StepControls for the Ledger account import flow

* Fix style imports

* Upgrade the `xverse-core` package version

* Upgrade `xverse-core` package version

* Disable PSBT tx signing for ledger accounts

* update xverse-core

* package-lock

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Release/v0.20.0 (#611)

* chore: merge from upstream develop (#26)

* release: v0.19.0 (#607)

* release: v0.19.0

* update package-lock

* bump xverse core version to fix fee issue

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Build analytics tracking for web-extension (#590)

* Build analytics tracking for web-extension

* Add `/privacy-preferences` screen

* Build analytics tracking for web-extension

* Update mixpanel tracking logic

* Remove unused wallet action name

* Add authorize data collection toggler and popup

* Update tracking logic

* Add translation keys

* Update mixpanel tracking logic

* Remove unused imports

* Make some code changes after PR review, upgrade `xverse-core` package version

* Upgrade `xverse-core` package version

* Resolve git conflicts

* Handling fees with thresholds (#601)

* Handling fees with thresholds

* Add margin under the high fees warning

* Change the high fees warning position for Ordinals & Brc-20 txs

* Show the warning if the initial fee from transaction is greater than the threshold

* Add high fee warning for one-step brc20 transfer

* update copy

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Refactor ledger-related logic (#586)

* Add STX support for Ledger accounts

* Update the copy and ledger account import logic

* Update the ledger account import logic for STX support

* Add `/add-stx-address-ledger` route for adding stx account

* Remove the old case handling when there is no `ordinalsAddress`

* Add STX address verification with ledger device

* Remove the `/send-stx-ledger` path and update `/send-stx` to handle ledger

* Handle regular STX transactions

* Remove unused `/review-ledger-stx-tx` path, add STX NFT handling

* Remove `/review-ledger-ft-tx` and `/send-ft-ledger` routes, update `/send-ft` to support ledger

* Enable STX auth requests for ledger accounts that have an STX address

* Add link to the auth popup  to add the STX Ledger account

* Update screen UI for STX NFT sending

* Update copy for STX incoming tx signing

* Update STX message signing logic

* Update STX-related logic for ledger accounts

* Update error handling for STX message signing with ledger

* Get rid of `findLedgerAccountId` ledger util, move more copy to locales

* Fix cropped button container for tx signing popup

* Update address index definition for adding stx address

* Update address index definition for address verification and stx tx confirmation

* Update address index definition for stx jwt auth

* Refactor ledger-related logic

* Refactor ledger account import

* Fix ledger account import when both BTC and STX options are selected

* Refactor ledger address verification screen

* Refactor ledger tx confirmation screen

* Refactor Add stx address screen

* Fix `unsignedTx` type

* Add `StacksRecipient` type and make some small code fixes

* Add `icon` prop for the `ActionButton` component

* Change the ledger steps in a callback

* Add types for ledger tx state objects

* Fix account index for stx account import, update ledger tx types and utils

* Change the import path for `StacksRecipient`

* Change the steps numeration for ledger account import

* Get rid of unused step changing logic for ledger account import

* Add more error handling

* Update xverse-core version for testing purposes

* Remove caret symbol in xverse-core package

* Fix CI build

* Make a couple of code fixes according to PR review comments

* Add more transaltions

* Add the `DEFAULT_TRANSITION_OPTIONS` constant

* Make separate components for Steps and StepControls for the Ledger account import flow

* Fix style imports

* Upgrade the `xverse-core` package version

* Upgrade `xverse-core` package version

* Disable PSBT tx signing for ledger accounts

* update xverse-core

* package-lock

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

---------

Co-authored-by: Yukan <yukanliao@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* chore: allow ci build version to pass env vars to build (#27)

* feat/eng 2904 implement frontend on web extension (#5)

* Tim/eng 2933 implement dashboard display of rare sats bundles (#1)

* chore: create a hook for rare sats with placeholder data

* chore: add some inscription placeholder with image

* feat/eng 2933 implement dashboard rare sats tab (#4)

* chore: create a collectiblesTabs component with react-tabs

* refactor: move nft dashboard logic into hook

* feat: move rare sats into separate tab

* fix: add tab state styling and move to common.styled

* feat: style collectibles header

* fix: restyle all grid item colors and add total items

* fix: supply total nfts and total rare sats number

and type the collectiblesTabs props

* style: comments

* feat/eng 2934 implement sats bundle UI screen (#6)

* Abdulhaseeb/eng 2930 implement settings screen updates (#7)

* feat: enable rare sats from settings

* fix: disabled UI

* fix: typos

* Abdulhaseeb/eng 2931 implement info dialogs (#8)

* feat: enable rare sats from settings

* feat: notice alert and rarities screen

* feat: new feature dialog

* fix: styles

* feat: add UI for rare sats bundle in collectible item details (#2)

* fix: ordinal thumbnails were broken (#10)

* Add no collectibles and error screens (#11)

* feat: integrate rare sats form core (#9)

* feat: add rare sats item detail screen (#3)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* feat: implement rare sats send screen (#12)

* chore: use getUtxoOrdinalBundle to know if a inscription belongs to a bundle (#14)

* Abdulhaseeb/eng 2938 implement rare sats confirm screen (#15)

* feat: confirm rare sat tx

* feat: added warning callout

* feat: implement UI for rare sats thumbnails (#16)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

* feat: add rare sats thumbnathumbnails

* chore: add missing mock data for testing inscriptions belonging to a bundle

* Tim/eng 2959 set up test mocks (#17)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen (#18)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen

* fix: ui

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: rarities screen UI (#19)

* chore: fix some todos and issues in rare sats feature (#20)

* chore: Unify assets and rarity label in rarityTile and rareSatIcon components

* chore: create bundle asset and use it in RareSatsTabGridItem and confirm send screen

* chore: add bundle asset component in send screen

* chore: make glow optional and remove it from inscribed rare sats asset

* chore: add assets to bundle gallery view

* chore: remove unsupported media callout. add margin bottom and fix cannot send rare sat individually for gallery view

* fix: styling on gallery view for dashboard and rare sats bundle grids (#22)

* fix: styling on gallery view for dashboard and rare sats bundle grids

* fix: add column layout for rare sats bundle gallery view

* fix: rare sats bundle back should always fo to gallery

* fix: header spacing rare sats bundle and load more button

* feat: add isLoading state for rare sats tab

* fix: remove is owned by active account check

the user flow resets whenever account changes, so this check is no
longer necessary

* feat: save collectibles tab index in query params

* fix: restore ledger open in new tab behaviour

* fix: show info panel regardless of empty state (#23)

* chore: fix UI issues (#24)

* chore: fix issues with dont see your rare sat banner

* chore: fix ui issues in rare sats details screen

* Update src/app/screens/nftDashboard/notice.tsx

* refactor: use library components and minor styling fixes

* fix: rare sat bundle send button width

* fix: add separator in gallery view rare sats bundle and styling fixes

* fix: minor style fix

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: branch merge errors

* chore: remove mock data (#28)

* chore: remove mock data

* chore: add extenral links to scan tool and rare sats post

* chore: move external link urls to constants file

---------

Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* release v0.20.0

* chore: bump to xverse-core 1.8.2 for bip322 signing fix

* fix: collectibles dashboard should ignore invalid params errors (#33)

* fix: put in a quick fix for more location.state serialization bugs (#34)

* chore: add support for rare sats in tx confirmation screen (#35)

* chore: add support for rare sats in tx confirmation screen

* chore: remove logs and fix typo

* chore: change unknown icon

---------

Co-authored-by: Yukan <yukanliao@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* Show BRC20 token transaction history (#523)

* Show BRC20 token transaction history

* Handle pending state

* Use updated brc20 transaction history response

* Update package.lock.json file

* fix loading state

* Update brc20 history tx title

* Update core version to latest

---------

Co-authored-by: Denys Hriaznov <36603049+dhriaznov@users.noreply.github.com>

* fix rare sats settings copy (#612)

* Release/0.21.0 (#613)

* chore: merge from upstream develop (#26)

* release: v0.19.0 (#607)

* release: v0.19.0

* update package-lock

* bump xverse core version to fix fee issue

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Build analytics tracking for web-extension (#590)

* Build analytics tracking for web-extension

* Add `/privacy-preferences` screen

* Build analytics tracking for web-extension

* Update mixpanel tracking logic

* Remove unused wallet action name

* Add authorize data collection toggler and popup

* Update tracking logic

* Add translation keys

* Update mixpanel tracking logic

* Remove unused imports

* Make some code changes after PR review, upgrade `xverse-core` package version

* Upgrade `xverse-core` package version

* Resolve git conflicts

* Handling fees with thresholds (#601)

* Handling fees with thresholds

* Add margin under the high fees warning

* Change the high fees warning position for Ordinals & Brc-20 txs

* Show the warning if the initial fee from transaction is greater than the threshold

* Add high fee warning for one-step brc20 transfer

* update copy

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Refactor ledger-related logic (#586)

* Add STX support for Ledger accounts

* Update the copy and ledger account import logic

* Update the ledger account import logic for STX support

* Add `/add-stx-address-ledger` route for adding stx account

* Remove the old case handling when there is no `ordinalsAddress`

* Add STX address verification with ledger device

* Remove the `/send-stx-ledger` path and update `/send-stx` to handle ledger

* Handle regular STX transactions

* Remove unused `/review-ledger-stx-tx` path, add STX NFT handling

* Remove `/review-ledger-ft-tx` and `/send-ft-ledger` routes, update `/send-ft` to support ledger

* Enable STX auth requests for ledger accounts that have an STX address

* Add link to the auth popup  to add the STX Ledger account

* Update screen UI for STX NFT sending

* Update copy for STX incoming tx signing

* Update STX message signing logic

* Update STX-related logic for ledger accounts

* Update error handling for STX message signing with ledger

* Get rid of `findLedgerAccountId` ledger util, move more copy to locales

* Fix cropped button container for tx signing popup

* Update address index definition for adding stx address

* Update address index definition for address verification and stx tx confirmation

* Update address index definition for stx jwt auth

* Refactor ledger-related logic

* Refactor ledger account import

* Fix ledger account import when both BTC and STX options are selected

* Refactor ledger address verification screen

* Refactor ledger tx confirmation screen

* Refactor Add stx address screen

* Fix `unsignedTx` type

* Add `StacksRecipient` type and make some small code fixes

* Add `icon` prop for the `ActionButton` component

* Change the ledger steps in a callback

* Add types for ledger tx state objects

* Fix account index for stx account import, update ledger tx types and utils

* Change the import path for `StacksRecipient`

* Change the steps numeration for ledger account import

* Get rid of unused step changing logic for ledger account import

* Add more error handling

* Update xverse-core version for testing purposes

* Remove caret symbol in xverse-core package

* Fix CI build

* Make a couple of code fixes according to PR review comments

* Add more transaltions

* Add the `DEFAULT_TRANSITION_OPTIONS` constant

* Make separate components for Steps and StepControls for the Ledger account import flow

* Fix style imports

* Upgrade the `xverse-core` package version

* Upgrade `xverse-core` package version

* Disable PSBT tx signing for ledger accounts

* update xverse-core

* package-lock

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

---------

Co-authored-by: Yukan <yukanliao@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* chore: allow ci build version to pass env vars to build (#27)

* feat/eng 2904 implement frontend on web extension (#5)

* Tim/eng 2933 implement dashboard display of rare sats bundles (#1)

* chore: create a hook for rare sats with placeholder data

* chore: add some inscription placeholder with image

* feat/eng 2933 implement dashboard rare sats tab (#4)

* chore: create a collectiblesTabs component with react-tabs

* refactor: move nft dashboard logic into hook

* feat: move rare sats into separate tab

* fix: add tab state styling and move to common.styled

* feat: style collectibles header

* fix: restyle all grid item colors and add total items

* fix: supply total nfts and total rare sats number

and type the collectiblesTabs props

* style: comments

* feat/eng 2934 implement sats bundle UI screen (#6)

* Abdulhaseeb/eng 2930 implement settings screen updates (#7)

* feat: enable rare sats from settings

* fix: disabled UI

* fix: typos

* Abdulhaseeb/eng 2931 implement info dialogs (#8)

* feat: enable rare sats from settings

* feat: notice alert and rarities screen

* feat: new feature dialog

* fix: styles

* feat: add UI for rare sats bundle in collectible item details (#2)

* fix: ordinal thumbnails were broken (#10)

* Add no collectibles and error screens (#11)

* feat: integrate rare sats form core (#9)

* feat: add rare sats item detail screen (#3)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* feat: implement rare sats send screen (#12)

* chore: use getUtxoOrdinalBundle to know if a inscription belongs to a bundle (#14)

* Abdulhaseeb/eng 2938 implement rare sats confirm screen (#15)

* feat: confirm rare sat tx

* feat: added warning callout

* feat: implement UI for rare sats thumbnails (#16)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

* feat: add rare sats thumbnathumbnails

* chore: add missing mock data for testing inscriptions belonging to a bundle

* Tim/eng 2959 set up test mocks (#17)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen (#18)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen

* fix: ui

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: rarities screen UI (#19)

* chore: fix some todos and issues in rare sats feature (#20)

* chore: Unify assets and rarity label in rarityTile and rareSatIcon components

* chore: create bundle asset and use it in RareSatsTabGridItem and confirm send screen

* chore: add bundle asset component in send screen

* chore: make glow optional and remove it from inscribed rare sats asset

* chore: add assets to bundle gallery view

* chore: remove unsupported media callout. add margin bottom and fix cannot send rare sat individually for gallery view

* fix: styling on gallery view for dashboard and rare sats bundle grids (#22)

* fix: styling on gallery view for dashboard and rare sats bundle grids

* fix: add column layout for rare sats bundle gallery view

* fix: rare sats bundle back should always fo to gallery

* fix: header spacing rare sats bundle and load more button

* feat: add isLoading state for rare sats tab

* fix: remove is owned by active account check

the user flow resets whenever account changes, so this check is no
longer necessary

* feat: save collectibles tab index in query params

* fix: restore ledger open in new tab behaviour

* fix: show info panel regardless of empty state (#23)

* chore: fix UI issues (#24)

* chore: fix issues with dont see your rare sat banner

* chore: fix ui issues in rare sats details screen

* Update src/app/screens/nftDashboard/notice.tsx

* refactor: use library components and minor styling fixes

* fix: rare sat bundle send button width

* fix: add separator in gallery view rare sats bundle and styling fixes

* fix: minor style fix

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: branch merge errors

* chore: remove mock data (#28)

* chore: remove mock data

* chore: add extenral links to scan tool and rare sats post

* chore: move external link urls to constants file

---------

Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* release v0.20.0 (#29)

* release: v0.19.0 (#607)

* release: v0.19.0

* update package-lock

* bump xverse core version to fix fee issue

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Build analytics tracking for web-extension (#590)

* Build analytics tracking for web-extension

* Add `/privacy-preferences` screen

* Build analytics tracking for web-extension

* Update mixpanel tracking logic

* Remove unused wallet action name

* Add authorize data collection toggler and popup

* Update tracking logic

* Add translation keys

* Update mixpanel tracking logic

* Remove unused imports

* Make some code changes after PR review, upgrade `xverse-core` package version

* Upgrade `xverse-core` package version

* Resolve git conflicts

* Handling fees with thresholds (#601)

* Handling fees with thresholds

* Add margin under the high fees warning

* Change the high fees warning position for Ordinals & Brc-20 txs

* Show the warning if the initial fee from transaction is greater than the threshold

* Add high fee warning for one-step brc20 transfer

* update copy

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* Refactor ledger-related logic (#586)

* Add STX support for Ledger accounts

* Update the copy and ledger account import logic

* Update the ledger account import logic for STX support

* Add `/add-stx-address-ledger` route for adding stx account

* Remove the old case handling when there is no `ordinalsAddress`

* Add STX address verification with ledger device

* Remove the `/send-stx-ledger` path and update `/send-stx` to handle ledger

* Handle regular STX transactions

* Remove unused `/review-ledger-stx-tx` path, add STX NFT handling

* Remove `/review-ledger-ft-tx` and `/send-ft-ledger` routes, update `/send-ft` to support ledger

* Enable STX auth requests for ledger accounts that have an STX address

* Add link to the auth popup  to add the STX Ledger account

* Update screen UI for STX NFT sending

* Update copy for STX incoming tx signing

* Update STX message signing logic

* Update STX-related logic for ledger accounts

* Update error handling for STX message signing with ledger

* Get rid of `findLedgerAccountId` ledger util, move more copy to locales

* Fix cropped button container for tx signing popup

* Update address index definition for adding stx address

* Update address index definition for address verification and stx tx confirmation

* Update address index definition for stx jwt auth

* Refactor ledger-related logic

* Refactor ledger account import

* Fix ledger account import when both BTC and STX options are selected

* Refactor ledger address verification screen

* Refactor ledger tx confirmation screen

* Refactor Add stx address screen

* Fix `unsignedTx` type

* Add `StacksRecipient` type and make some small code fixes

* Add `icon` prop for the `ActionButton` component

* Change the ledger steps in a callback

* Add types for ledger tx state objects

* Fix account index for stx account import, update ledger tx types and utils

* Change the import path for `StacksRecipient`

* Change the steps numeration for ledger account import

* Get rid of unused step changing logic for ledger account import

* Add more error handling

* Update xverse-core version for testing purposes

* Remove caret symbol in xverse-core package

* Fix CI build

* Make a couple of code fixes according to PR review comments

* Add more transaltions

* Add the `DEFAULT_TRANSITION_OPTIONS` constant

* Make separate components for Steps and StepControls for the Ledger account import flow

* Fix style imports

* Upgrade the `xverse-core` package version

* Upgrade `xverse-core` package version

* Disable PSBT tx signing for ledger accounts

* update xverse-core

* package-lock

---------

Co-authored-by: Yukan <yukanliao@gmail.com>

* release v0.20.0

* chore: bump to xverse-core 1.8.2 for bip322 signing fix

* fix: collectibles dashboard should ignore invalid params errors (#33)

* fix: put in a quick fix for more location.state serialization bugs (#34)

* chore: add support for rare sats in tx confirmation screen (#35)

* chore: add support for rare sats in tx confirmation screen

* chore: remove logs and fix typo

* chore: change unknown icon

---------

Co-authored-by: Tim Man <timothyc.man@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>

* chore: tidy up zips of each build run and the release uploads (#31)

* feat: collectibles ui frontend (#30)

* [ENG-2836] feat: Ordinals and BRC-20 collectibles UI

* Improve ordinals & brc-20 collectibles fetching logic and UI

* Collectible ordinal detail page (#32)

* Tim/eng 2933 implement dashboard display of rare sats bundles (#1)

* chore: create a hook for rare sats with placeholder data

* chore: add some inscription placeholder with image

* feat/eng 2933 implement dashboard rare sats tab (#4)

* chore: create a collectiblesTabs component with react-tabs

* refactor: move nft dashboard logic into hook

* feat: move rare sats into separate tab

* fix: add tab state styling and move to common.styled

* feat: style collectibles header

* fix: restyle all grid item colors and add total items

* fix: supply total nfts and total rare sats number

and type the collectiblesTabs props

* style: comments

* feat/eng 2934 implement sats bundle UI screen (#6)

* Abdulhaseeb/eng 2930 implement settings screen updates (#7)

* feat: enable rare sats from settings

* fix: disabled UI

* fix: typos

* Abdulhaseeb/eng 2931 implement info dialogs (#8)

* feat: enable rare sats from settings

* feat: notice alert and rarities screen

* feat: new feature dialog

* fix: styles

* feat: add UI for rare sats bundle in collectible item details (#2)

* fix: ordinal thumbnails were broken (#10)

* Add no collectibles and error screens (#11)

* feat: integrate rare sats form core (#9)

* feat: add rare sats item detail screen (#3)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* feat: implement rare sats send screen (#12)

* chore: use getUtxoOrdinalBundle to know if a inscription belongs to a bundle (#14)

* Abdulhaseeb/eng 2938 implement rare sats confirm screen (#15)

* feat: confirm rare sat tx

* feat: added warning callout

* feat: implement UI for rare sats thumbnails (#16)

* feat: add UI for rare sats bundle in collectible item details

* feat: implement rare sats details screen

* feat: add rare sats thumbnathumbnails

* chore: add missing mock data for testing inscriptions belonging to a bundle

* Tim/eng 2959 set up test mocks (#17)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen (#18)

* fix: react console errors

* fix: send rare sat heading and sub text

* fix: eslint errors

* chore: add mock test cases in hook

* fix: back button sometimes has no history

* fix: revert merge change

* fix: should be no commoners in mock tests

* feat: added thumbnail in confirm screen

* fix: ui

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: rarities screen UI (#19)

* chore: fix some todos and issues in rare sats feature (#20)

* chore: Unify assets and rarity label in rarityTile and rareSatIcon components

* chore: create bundle asset and use it in RareSatsTabGridItem and confirm send screen

* chore: add bundle asset component in send screen

* chore: make glow optional and remove it from inscribed rare sats asset

* chore: add assets to bundle gallery view

* chore: remove unsupported media callout. add margin bottom and fix cannot send rare sat individually for gallery view

* fix: styling on gallery view for dashboard and rare sats bundle grids (#22)

* fix: styling on gallery view for dashboard and rare sats bundle grids

* fix: add column layout for rare sats bundle gallery view

* fix: rare sats bundle back should always fo to gallery

* fix: header spacing rare sats bundle and load more button

* feat: add isLoading state for rare sats tab

* fix: remove is owned by active account check

the user flow resets whenever account changes, so this check is no
longer necessary

* feat: save collectibles tab index in query params

* fix: restore ledger open in new tab behaviour

* fix: show info panel regardless of empty state (#23)

* Add ordinal attributes in detail screen

* chore: fix UI issues (#24)

* chore: fix issues with dont see your rare sat banner

* chore: fix ui issues in rare sats details screen

* Update src/app/screens/nftDashboard/notice.tsx

* refactor: use library components and minor styling fixes

* fix: rare sat bundle send button width

* fix: add separator in gallery view rare sats bundle and styling fixes

* fix: minor style fix

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: branch merge errors

* chore: remove mock data (#28)

* chore: remove mock data

* chore: add extenral links to scan tool and rare sats post

* chore: move external link urls to constants file

* Add scrollbar to ordinal detail screen

* Adjust text alignment

* Update Navigation Bar

* Add Share button in extension ordinal detail screen

* Include useInscription hook

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* Fix `getNextPageParam` param in the `useAddressInscriptionCollections` hook

* feat: inscriptions collection page UI components (#36)

* chore: use xverse-core with api functions

* feat: add ordinals collection screen and route

* chore: add prettier organize imports plugin

* chore: remove unused eslint disable line

* fix: fix tab query params

* feat: add ordinals collection route and screen

* fix: revert scrollbar change

* Tim/eng 2813 inscriptions collection page data fetching pagination (#37)

* Make some small code tweaks

* Complete Remaining Todos for Ordinal Detail Screen (#38)

* Update ordinal detail Ui accodrding to MVP

* Get ordinal details from api

* Have placeholder incase market data does not exist

* Fix navigation and address comments

* feat: collection grid items (#39)

* Add content skeleton loader for Collectibles tab

* Fix border radius for Collectibles skeleton loader

* Fix the loader condition in Collectibles tab

* Update BRC20 token collection thumbnail in main collectible page

* Tim/eng 2833 inscriptions full screen responsive main page collection (#41)

* feat: style the send screen including responsive layout

* style: use theme radius

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

---------

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* Display collection market data (#40)

* Get collection amrket data

* Fix alignment on collection page

* chore: revert the large package-lock.json diff

* Update receive screen and bottom modal (#42)

* Update recieve screen

* Add updated QR code in recieve screen

* Update receive modal

* Fix getNextPageParam for const useAddressInscriptionCollections = () => {

* Remove unused package

* fix: use theme radius

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* fix: use theme radius

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* Address comments

* chore: remove empty unreferenced component

* Remove unused background color

* fix: layout and spacing on updated bottom modal, receive nft

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>

* fix color for custom switch and code typo (#43)

* unstaged package-lock.json

* fix: update all custom switch colors

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: inscriptions grid fixes (#44)

* chore: bump core version to 1.9.1

* Update function to recognise and parse brc20 tokens (#46)

* Update skeleton loader logic for Collectibles UI (#45)

* Update skeleton loader logic for Collectibles UI

* Add a separate `TilesSkeletonLoader` component, add skeleton loader on the Collection page

* Add ordinal detail page skeleton loader for the extension view

* Add skeleton loader for the ordinal image component

* fix: collectibles fixes from review (#47)

* Fix minor ui bugs in collectible screen (#48)

---------

Co-authored-by: Imamah-Zafar <88320460+Imamah-Zafar@users.noreply.github.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>
Co-authored-by: Duska.T <55587184+DuskaT021@users.noreply.github.com>

* release: v0.21.0

* Small fixes for the Collectibles UI loading state (#50)

* Small fixes for the Collectibles UI

* Fix loader appearance in the Collectibles tabs

* Fix skeleton loader on the main Collectibles tab gallery view

* Fix skeleton loader on the Collection page gallery view

* Add skeleton loader for the ordinal detail page

* fix: container padding on ordinals collection page

* chore: remove debug lines

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* fix: more collectible UI fixes (#52)

* chore: remove testAddress and TODOs

* fix: brc20 status in ordinal details

* fix: back button from nft details goes to nfts tab

and back button from ordinal detail says back to collection or gallery

* Minor ui fixes (#51)

* sort brc20 inscription array

* Fix styling

* Remove unused funciton

---------

Co-authored-by: Yukan <yukanliao@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
Co-authored-by: Abdul Haseeb <haseeb4239@gmail.com>
Co-authored-by: fede erbes <fedeerbes@gmail.com>
Co-authored-by: Victor Kirov <victor.kirov@gmail.com>
Co-authored-by: Imamah-Zafar <88320460+Imamah-Zafar@users.noreply.github.com>
Co-authored-by: Duska.T <55587184+DuskaT021@users.noreply.github.com>

* feat: revamp all colors (#588)

* Tim/eng 2317 consistent dashboard buttons in extension (#618)

* fix: use revamped swap svg

* fix: hide swap button on testnet

* Ledger send btc screen crash when going back and forward (#615)

* Make `Authorize data collection` property turned on by default (#614)

* Make `Authorize data collection` property turned on by default

* Change the html tag and text color constant

* [ENG-2961] Fix eslint errors for web extension (#617)

* [ENG-2961] Fix eslint errors for web extension

* [ENG-2961] Fix eslint errors for web extension

* Update src/app/hooks/queries/ordinals/useInscriptionDetails.ts

Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* Update src/app/hooks/queries/useAppConfig.ts

Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

---------

Co-authored-by: Victor Kirov <victor.kirov@gmail.com>

* [ENG-3059] fix: Remove ordinal callout from send rare sats (#619)

* [ENG-3059] fix: Remove ordinal callout from send rare sats

* Update `amount` field validation error styling

* chore: turn on tsc --noEmit precommit hook (#622)

* chore: add tsc-files dev dep and run on lint staged pre commit

also ran npm audit fix for a critical vuln and updated direct svg import
typings

* chore: use string for svg typescript declarations

* chore: run eslint on repo before passing the workflow checks

* feat: allow unpublished UTXOs as inputs to PSBTs (#621)

* feat: allow unpublished UTXOs as inputs to PSBTs

* Use correct status from response

---------

Co-authored-by: Tim Man <timothyc.man@gmail.com>

* [ENG-3039] fix: Skeleton loader for BRC-20 icons in home dashboard (#620)

it can be merged, tested on ledger as well

* Mahmoud/eng 2284 seedphrase vault (#510)

* refactor wallet flow to use seed vault

* code cleanup

* update auth flow and seedphrase usage

* lock dependencies and user xverse-core beta

* migrate onboarding to use seed vault

* use account switch method from wallet reducer hook

* use seed vault for stx swaps

* removed seedPhrase from wallet store

* rebase fixes

* small fixes

* clear home screen errors

* revert hashing algo change

* fix swap hook

* Revert "clear home screen errors"

This reverts commit 55da10e60ead4c0798c40d61701b904085d6e603.

* apply core changes

* clear encrypted seed after successfully migrating

* type fixes

* update core version

* onboarding guard refactor

* update seed vault hook

* use chromeStorage driver for session storage

* updated core-lib version

* refactor onboarding guard to use hasSeed

* update core-lib

* small fixes

* update auth guard and update core version

* updated csp

* deprecate internal message handler

* update wallet exists guard

* overwrite any existing seed on restore wallet

* update flow to explicitly clear vault for onboarding

* update image csp

* reset navigation if seed is not pre-set

* update sendRareSat screen to use seed vault

* add rich media csp policy

* added authguard to settings screen

* updated lock file

* minor fixes

* fresh npm install using v18

* lock with develop

* adde new package updates

* use fixed version of core

* update to core lts version

---------

Co-authored-by: Victor Kirov <victor.kirov@gmail.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>

* [ENG-3115] fix: UI issue in the legal screen (#624)

* feat: add vout to the end of the tx id for unknown rarities (#623)

* feat: add vout to the end of the tx id for unknown rarities

* chore: sed replace forward slash in workflow file should replace all occurrences

---------

Co-authored-by: Tim Man <tim@secretkeylabs.com>

* Fix minor UI issues (#625)

* Have thousandths separators for STX balance

* Add scrollbar in message signing screen

* Fix spacing in ordinal detail screen

* Add loader for recover ordinal screen

* fix: disabling ordinals user should not see them in the (#627)

* fix: only display tab buttons when more than one tab (#629)

* chore: turn on eslint rule and fix up some core internal imports (#630)

* chore: turn on eslint…
  • Loading branch information
13 people committed Nov 30, 2023
1 parent a469894 commit 6893ea3
Show file tree
Hide file tree
Showing 68 changed files with 1,644 additions and 2,181 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@ledgerhq/hw-transport-webusb": "^6.27.13",
"@phosphor-icons/react": "^2.0.10",
"@react-spring/web": "^9.6.1",
"@secretkeylabs/xverse-core": "3.1.1",
"@secretkeylabs/xverse-core": "4.0.0",
"@stacks/connect": "^6.10.2",
"@stacks/encryption": "4.3.5",
"@stacks/stacks-blockchain-api-types": "6.1.1",
Expand Down
88 changes: 88 additions & 0 deletions src/app/components/assetModal/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import Cross from '@assets/img/dashboard/X.svg';
import { animated, useSpring } from '@react-spring/web';
import OrdinalImage from '@screens/ordinals/ordinalImage';
import { CondensedInscription, SatRangeInscription } from '@secretkeylabs/xverse-core';
import styled from 'styled-components';

const TransparentButton = styled.button({
background: 'transparent',
display: 'flex',
alignItems: 'center',
marginLeft: 10,
});

const CrossContainer = styled.div({
display: 'flex',
marginTop: 10,
justifyContent: 'flex-end',
alignItems: 'flex-end',
});

const OrdinalOuterImageContainer = styled.div({
justifyContent: 'center',
alignItems: 'center',
borderRadius: 2,
display: 'flex',
flexDirection: 'column',
flex: 1,
});

const OrdinalImageContainer = styled.div({
width: '50%',
});

const OrdinalBackgroundContainer = styled(animated.div)({
width: '100%',
height: '100%',
top: 0,
left: 0,
bottom: 0,
right: 0,
position: 'fixed',
zIndex: 10,
background: 'rgba(18, 21, 30, 0.8)',
backdropFilter: 'blur(16px)',
padding: 16,
display: 'flex',
flexDirection: 'column',
});

interface Props {
inscription: SatRangeInscription;
onClose: () => void;
}

function AssetModal({ inscription, onClose }: Props) {
const consdensedInscription: CondensedInscription = {
...inscription,
number: inscription.inscription_number,
};
const styles = useSpring({
from: {
opacity: 0,
y: 24,
},
to: {
y: 0,
opacity: 1,
},
delay: 100,
});

return (
<OrdinalBackgroundContainer style={styles}>
<CrossContainer onClick={onClose}>
<TransparentButton>
<img src={Cross} alt="cross" />
</TransparentButton>
</CrossContainer>
<OrdinalOuterImageContainer>
<OrdinalImageContainer>
<OrdinalImage ordinal={consdensedInscription} />
</OrdinalImageContainer>
</OrdinalOuterImageContainer>
</OrdinalBackgroundContainer>
);
}

export default AssetModal;
42 changes: 0 additions & 42 deletions src/app/components/bundleAsset/bundleAsset.tsx

This file was deleted.

16 changes: 8 additions & 8 deletions src/app/components/collectibleCollage/collectibleCollage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import RareSatAsset from '@components/rareSatAsset/rareSatAsset';
import Nft from '@screens/nftDashboard/nft';
import { NonFungibleToken } from '@secretkeylabs/xverse-core';
import { BundleItem } from '@utils/rareSats';
import OrdinalImage from '@screens/ordinals/ordinalImage';
import { CondensedInscription, NonFungibleToken } from '@secretkeylabs/xverse-core';
import styled from 'styled-components';

const CollageContainer = styled.div`
Expand Down Expand Up @@ -39,10 +38,11 @@ const RemainingAmountOfAssets = styled.div((props) => ({
},
}));

function CollectibleCollage({ items }: { items: Array<BundleItem | NonFungibleToken> }) {
function CollectibleCollage({ items }: { items: Array<CondensedInscription | NonFungibleToken> }) {
const moreThanFourItems = items.length > 4;

const isBundleItem = (item: any): boolean => (item as BundleItem).rarity_ranking !== undefined;
const isStacksNft = (item: CondensedInscription | NonFungibleToken): boolean =>
'asset_identifier' in item;
return (
<CollageContainer>
{items.slice(0, 4).map((item, index) => (
Expand All @@ -53,10 +53,10 @@ function CollectibleCollage({ items }: { items: Array<BundleItem | NonFungibleTo
<p>+{items.length - 4}</p>
</RemainingAmountOfAssets>
) : // Conditionally render RareSatAsset if item is a BundleItem otherwise render Nft
isBundleItem(item) ? (
<RareSatAsset item={item as BundleItem} isCollage />
) : (
isStacksNft(item) ? (
<Nft asset={item as NonFungibleToken} isGalleryOpen={false} />
) : (
<OrdinalImage ordinal={item as CondensedInscription} />
)}
</CollageItem>
))}
Expand Down
109 changes: 109 additions & 0 deletions src/app/components/confirmBtcTransactionComponent/bundle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
import BundleIcon from '@assets/img/rareSats/satBundle.svg';
import AssetModal from '@components/assetModal';
import { CaretDown } from '@phosphor-icons/react';
import { Bundle, BundleSatRange, SatRangeInscription } from '@secretkeylabs/xverse-core';
import { StyledP } from '@ui-library/common.styled';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import styled from 'styled-components';
import Theme from 'theme';
import BundleItem from './bundleItem';

interface BundleItemContainerProps {
addMargin: boolean;
}

const BundleItemsContainer = styled.div<BundleItemContainerProps>`
margin-top: ${(props) => (props.addMargin ? props.theme.space.m : 0)};
`;

const SatsBundleContainer = styled.div`
display: flex;
flex-direction: column;
margin-bottom: ${(props) => props.theme.space.s};
border-radius: ${(props) => props.theme.space.s};
padding: ${(props) => props.theme.space.m};
background-color: ${(props) => props.theme.colors.elevation1};
`;

const SatsBundleButton = styled.button`
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
background-color: ${(props) => props.theme.colors.elevation1};
`;

const Row = styled.div`
display: flex;
flex-direction: row;
align-items: center;
`;

const BundleTitle = styled(StyledP)`
margin-left: ${(props) => props.theme.space.s};
`;

const BundleValue = styled(StyledP)`
margin-right: ${(props) => props.theme.space.xs};
`;

const Title = styled(StyledP)((props) => ({
marginBottom: props.theme.space.xs,
}));

function SatsBundle({ bundle, title }: { bundle: Bundle; title?: string }) {
const [showBundleDetail, setShowBundleDetail] = useState(false);
const [inscriptionToShow, setInscriptionToShow] = useState<SatRangeInscription | undefined>(
undefined,
);

const { t } = useTranslation('translation');

return (
<>
{inscriptionToShow && (
<AssetModal
onClose={() => setInscriptionToShow(undefined)}
inscription={inscriptionToShow}
/>
)}
<SatsBundleContainer>
{title && <Title typography="body_medium_m">{title}</Title>}
<SatsBundleButton
type="button"
onClick={() => setShowBundleDetail((prevState) => !prevState)}
>
<Row>
<img src={BundleIcon} alt="bundle" />
<BundleTitle typography="body_medium_m" color="white_200">
{t('RARE_SATS.SATS_BUNDLE')}
</BundleTitle>
</Row>
<Row>
<BundleValue typography="body_medium_m" color="white_0">{`${bundle.totalExoticSats} ${t(
'NFT_DASHBOARD_SCREEN.RARE_SATS',
)}`}</BundleValue>
<CaretDown color={Theme.colors.white_0} size={16} />
</Row>
</SatsBundleButton>

{showBundleDetail &&
bundle.satRanges.map((item: BundleSatRange, index: number) => (
<BundleItemsContainer key={`${item.block}-${item.offset}`} addMargin={index === 0}>
<BundleItem
item={item}
ordinalEyePressed={(inscription: SatRangeInscription) => {
// show ordinal modal to show asset
setInscriptionToShow(inscription);
}}
showDivider={index !== bundle.satRanges.length - 1}
/>
</BundleItemsContainer>
))}
</SatsBundleContainer>
</>
);
}

export default SatsBundle;
Loading

0 comments on commit 6893ea3

Please sign in to comment.