[ENG-4272] Runes listing/unlisting flow (#332)

* initial setup

* fix mistakes

* Create spec file

* initial setup

* fix mistakes

* Create spec file

* update UI

* update UI

* touchup

* testing UI

* Merge branch 'terence/eng-4272-listrunes-1-ext-start-the-runes-listing-flow' of https://github.com/secretkeylabs/xverse-web-extension-private into terence/eng-4272-listrunes-1-ext-start-the-runes-listing-flow

* add select all toggle

* prepare set price navigation

* touchup

* touchup

* updates

* Add locators

* Add function clickOnSpecificToken

* updates

* updates

* updates

* fixes and updates

* remove log

* Adjust BTC transaction test

* add more steps

* remove log

* add global custom rune price

* add missed translations

* touchup issues

* add percentage label

* add percentage label

* small update

* fix key

* upgrade the xverse-core version, move the listRune styles into a separate file

* add big size warning, deselect all when at least 1 is selected, interface -> type

* deprecate the theme.spacing function, use the theme.space instead for the runes listing

* fix some styles, add a selected state for the rune item

* fixed typo in the file name: setRunePricetem.tsx -> setRunePriceItem.tsx

* update some styles

* Add edit button, add custom fee modal description

* update the Listed tab markup

* trigger prettier / touchup structure

* revert accident

* fix loading spinner container

* fix hook to distinguish listed/unlisted utxos

* render the listed items as an array

* Syntax fix

* add 10000 sat validation warning

* add individual edit price logic

* add individual edit price logic

* touchup

* dont round to integer

* fixup styling

* ensure always descending by rune value

* add entry point from home

* add some logic for the rune unlisting

* add fetching logic for the listed runes tab, make some style tweaks for loading, etc

* update text

* setup psbt + touchup scalings

* add additional check

* touchup

* fix filter

* test psbt

* test psbt

* test psbt

* remove list option from dashboard

* fix bug label

* fix typo

* upgrade the xverse-core version

* Add `no listed runes` / `no unlisted runes` message and reusable wrapper

* commit high sat validation and tx status flow after psbt

* fix floor price decimals

* Add SignMessageRequestInApp screen and message signing to unlist rune bundle

* Remove unused imports from the SignMessageRequestInApp screen

* add scroll bar - fix only allow integers before calling ME, add error state

* fix up toggle logic

* Revert "fix up toggle logic"

This reverts commit b9953e8f1a29da8569afb64b11592e989afa89f2.

* add min-height for loading spinner

* remove fixed total and touchup values

* fix up scrollbar and padding

* Fix the orderId property type

* Add the loading state for the cancel rune listing button

* Polish the rune unlisting ux (redirects, back button, etc)

* fix up navigation from psbt / tx-status page

* fix loading spinner and utils

* Fix the empty state copy

* Add list cancel flow

* cancel button redirect to rune dashboard and individual price edit deselects rune price options

* touchup

* touchup steps

* useReducer

* Tweak the unlisting message signing logic for ledger accounts

* Remove the unused imports

* Make the signMessageRequest screen styles reusable

* Fix the Receive popup checkbox

* implement back navigation

* fix bug interaction

* fix bug interaction

* fix back button

* Simplify callback function (#344)

* Cancel list flow

* update text

* Update src/app/screens/listRune/index.tsx

Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>

* remove un-used

* reviews

* reviews

* renaming

* usecallback

* Add TODOs for pair programming

* fix up useEffects and reducer logic

* rename

* fix up ordering

* Simplify logic (#346)

* use await

* use callback

* Add more checks

* reviews

* reviews

* npm i

* useQuery for rune psbt hook

* touchup

* revert use query and fix bug

* add background refetch option

* Optimise code

* Add more Checks for Review Transaction Page

* touchup

* Add list flow

* fix merge issues

* use latest core

* Fix Execution for E2E Tests to run in Shards

* fix latest changes

* remove unnecessary calls

* Add cancel listing flow

* code optimisation

* add loading icon and fix unlist item to display listing price

* use a safer calculation method

* fix to display total list price

* fix formatting

* Add reload step

* fix: add vout

* touchup

* Add more reloads

* Add truncate sum check

* add feature flag and update entry point

* fix up loading state

* add guards

* remove comment

* fix bug

* Add localexecution label

---------

Co-authored-by: Terence Ng <ngtere@live.com.sg>
Co-authored-by: Christine Pinto <chrissie2788@gmail.com>
Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>
This commit is contained in:
Den
2024-06-28 11:27:20 +02:00
committed by GitHub
parent 388f639934
commit 67d957f657
66 changed files with 3165 additions and 231 deletions

View File

@@ -83,7 +83,7 @@ jobs:
env:
SEED_WORDS1: ${{ secrets.SEED_WORDS1 }}
SEED_WORDS2: ${{ secrets.SEED_WORDS2 }}
run: xvfb-run --auto-servernum --server-args="-screen 0 360x360x24" npx playwright test --grep-invert "broadtransaction" --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: xvfb-run --auto-servernum --server-args="-screen 0 360x360x24" npx playwright test --grep-invert "#localexecution" --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload Playwright report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3

View File

@@ -77,7 +77,7 @@ jobs:
env:
SEED_WORDS1: ${{ secrets.SEED_WORDS1 }}
SEED_WORDS2: ${{ secrets.SEED_WORDS2 }}
run: xvfb-run --auto-servernum --server-args="-screen 0 360x360x24" npx playwright test --grep-invert "broadtransaction" --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
run: xvfb-run --auto-servernum --server-args="-screen 0 360x360x24" npx playwright test --grep-invert "#localexecution" --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload Playwright report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3