Commit Graph

55 Commits

Author SHA1 Message Date
Christine Pinto
3d3439bc54 Update Unisat Cancel flow 2024-08-06 15:22:28 +02:00
Christine Pinto
6aca5ba8a2 Add helper function 2024-08-06 14:50:47 +02:00
Christine Pinto
6347566b14 Merge branch 'develop' into e2etest/swaps 2024-08-06 11:21:28 +02:00
Den
5f00aab4b2 [ENG-4347] SEND BRC-20 Transaction Review Screen - New Design (#439) 2024-08-05 18:27:04 +02:00
Christine Pinto
308d116ef0 adjust localexecution 2024-08-02 10:49:20 +02:00
Christine Pinto
a7794b462c Spelling 2024-08-01 18:07:28 +02:00
Christine Pinto
014bdbb668 Adjust to new getAddress function 2024-08-01 17:54:40 +02:00
Christine Pinto
05792851ca Merge branch 'develop' into e2etest/swaps 2024-08-01 17:52:39 +02:00
Christine Pinto
ec9dfe4030 Change copyAddress to be more stable (#442)
Switch from retrieving addresses via the copy button and the clipboard to retrieving addresses via the QR code page
2024-08-01 17:48:52 +02:00
Christine Pinto
e3a3108afc Add Swapping flow and rename files 2024-08-01 17:46:31 +02:00
Christine Pinto
6cb18fee03 Add confirm exchange swap 2024-07-31 17:39:42 +02:00
Christine Pinto
b6bbf52956 spelling 2024-07-29 14:12:19 +02:00
Christine Pinto
995f7c97d5 Add ME flow 2024-07-26 15:21:21 +02:00
Christine Pinto
a5f717a0a2 code optimization 2024-07-25 19:56:28 +02:00
Christine Pinto
b9e1f4e22b add editFeeRate and code optimization 2024-07-25 18:49:01 +02:00
Christine Pinto
e31942b552 Fix code after UI fixes merged in 2024-07-25 16:25:18 +02:00
Christine Pinto
62dd8e9a60 Spelling 2024-07-25 16:00:51 +02:00
Christine Pinto
4e4e113b8c adjust E2E and data-testids 2024-07-24 19:58:21 +02:00
Christine Pinto
318c6e927c Add new spec for exchange 2024-07-24 18:36:32 +02:00
Christine Pinto
e327691876 Add workaround for loading issue 2024-07-24 14:04:18 +02:00
Christine Pinto
e262df642d Adjusted Transaction Review check 2024-07-23 20:59:03 +02:00
Christine Pinto
12b17c3acf adjust E2E 2024-07-23 20:20:37 +02:00
Christine Pinto
3c058a6ca6 E2E 2024-07-23 11:38:52 +02:00
Christine Pinto
91c0ec0699 Merge branch 'develop' into e2etest/swaps 2024-07-22 09:07:48 +02:00
Christine Pinto
f892ff5c4e Fix Swap Tests for new screens 2024-07-22 09:06:17 +02:00
Den
0ea0482841 [ENG-4343] New send btc/ordinals/runes tx review screen (#366)
* [ENG-4343] SEND BTC Transaction review screen - New Design

* touchup

* add address

* add address

* Update the Tx review screen titles

* Make some copy/ui tweaks

* Make some copy/ui tweaks

* Update the tx inputs/outputs icons

* Move the signBatchPsbtRequest styles to a separate file

* Make some text style tweaks for tx inputs/outputs

* Update the batch psbt tx review screen ui

* Add some hovers and localization

* Add some localization

* Update the UI for the external btc send txs

* Make some ui tweaks

* duplicate new component, revert previous changes

* remove duplicated components

* remove duplicated components

* Update the action buttons container for batch psbt signing

* Update the action buttons container for batch psbt signing

* Fix padding

* Remove the unused css

* Add a warning when there are external inputs

* touchup external input logic

* updated directory, import logic

* fixes - put btc transaction on top and add dividers for runes

* add new design

* remove todo

* fix reviews

* new send/receive ordinals & runes screens (#392)

* fix cancel behavior

* make recipientSelector.tsx a common component

* remove comment

* initial commit

* remove debugs

* remove debugs

* touchup

* revert

* add address

* update e2e

* restore lock file

* restore lock file

* touchup

* combine to always display bundle

* fix

* remove

* touchup

* touchup

* revert original logic

* ensure bundle always displays on non external input flow

* remove todo

* remove unnecessary logic in no-external input flow

* revert some changes

* finalize send ordinals

* add bundle for send runes for no external input flow

* touchup receive section

* use latest core

* rename standard

* Add type imports

* commit changes (#404)

* fix QA issues for release  (#408)

* fix QA issues

* add runes protocol logo to bundle

* E2etest/transaction screen (#406)

*Add data-testIds
* Fix STX Transaction E2E test
* Update Send Flows
* Add Send Runes flow
---------

Co-authored-by: Terence Ng <ngtere@live.com.sg>

---------

Co-authored-by: Terence Ng <ngtere@live.com.sg>
Co-authored-by: Eduard Bardají Puig <ebardaji@gmail.com>
Co-authored-by: Christine Pinto <chrissie2788@gmail.com>
2024-07-20 13:32:16 +08:00
Christine Pinto
a2405791c7 Add Data-testids 2024-07-19 12:23:27 +02:00
Eduard Bardají Puig
1e90756eb1 Add permissions store and update a few methods 2024-07-03 19:31:51 +01:00
Abdul Haseeb
2b61a89ee6 feat: send max STX, confirm STX (#220)
* Add btc send screen skeleton

* Implement MAX

* extract amount selector to component

* Add max dust filtered callout

* Fix minor styling

* Add fee display

* Implement fee selection

* Add insufficient funds on fee selector

* add insufficient funds message on custom fee selector

* Add insufficient funds gate

* fix some todos

* Add min and max fee rate

* fix container styling

* fix styling

* Fix fee summary on confirm page

* fix some component interactions

* fix a few minor bugs

* fix rbf typing

* Close window if ledger

* Update src/app/ui-library/input.tsx

Co-authored-by: Jordan K. <65149726+jordankzf@users.noreply.github.com>

* Update src/app/ui-library/input.tsx

Co-authored-by: Jordan K. <65149726+jordankzf@users.noreply.github.com>

* Add address editable field

* chore: package-lock exact version

* refactor: use classnames for variants in ui-library button

and default to currentColor in spinner

* refactor: use css classnames in ui input

and add the disabled styles

* fix: edit and pencil icon row

* fix: recipient input next should be disabled when error

and fix up btc amount selector button states

* fix: confirm/cancel translation keys

* Update core

* Remove unneeded toNumbers

* Move error text to feedback

* add new for BigNumber

* Make sats/vByte consistent

* Fix fee select styling

* Fix input styling

* switch to new spinner

* Factor out InputScreen from RecipientSelector

* Update InputScreen to accept ReactNode

* Step 1: Select Recipient

* [WIP] Step 2: Select Amount

* stxAmountSelector bug fixes

* [WIP] Step 3

* Forward AND reverse BNS lookup

* Indented feedback

* send async

* Step3Confirm adapter

* wip send max

* chore: bump core version

* fix: rotate faders icon

* Revert "Fix fee select styling"

This reverts commit a750d7bf72.

* fix: minor spacing, styling, and colour fixes

* fix: react key warning fix

* fees

* bump core

* Fix api

* fees

* apply fee

* remove feeoverride

* Don't log insufficient funds message

* Fix insufficient amount on load

* Enable rbf on txns

* Remove comments

* avoid calling setState twice

* Rename btcRecipientSelector

* Address Vic feedback

* address PR comments

* fix: change variant name according to zeroheight

* fix: use the correct variant for memo

* feat: apply stx fee cap logic

* fix: setting recipient address

* fix: use correct hooks

* fix: stx fee on send screen

* some more fixes

* feat: confirm stx fees (#256)

* feat: confirm STX UI

* chore: select fee rate in confirm stx

* fix: fee component

* feat: nonce settings in STX confirm

* fix: micro stacks conversion

* feat: confirm stx transactions fee

* chore: localization

* fix: fee in confirm stx

* refactor: remove feeOverride param

---------

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

* fix: UI issues

* remove logs

* fix: disable send max once set

* fix: styles

* fix: cancel flow

* Fix the microStxToStx func helper import

* Remove unused code, add css transition

* Reuse the CrossButton component

* Redesign edit nonce popup, move styles to a separate file, use ui-library components

* Make some code and css fixes

* Check if insufficient funds when editing stx tx fee

* Make some code tweaks

* Make some code tweaks

* Make some code tweaks

* Make some code tweaks

* Fix selected fee state, add autofocus for the send stx flow

* fix the MAX button toggling, add autofocus for send btc flow, tweak some css

* Add autofocus for send rune flow

* Make some code tweaks

* Move the styles and component from CreateInscription to the separate files

* Add stx tx memo validation, fix horizontal scroll

* Fix the network fee fiat value display

* Fix the console error when it deserialized tx before is has been set

* Fix the ledger flow for stx sending

* Fix the merging errors

* Fix stx fee logic - ENG-4529 (#354)

* Fix stx fee calc

* Remove unused state

* Set the fees for stx txns before signing them

* Use available balance for stx txs

* Tweak the Edit button UI

* Add a try-catch

* Fix fee rate calcs

---------

Co-authored-by: Denys Hriaznov <hriaznov.dev@gmail.com>

* Fix typo recepientAddress -> recipientAddress

* Add a todo comment

* STX E2E tests skipped as screens changed

* Fix STX tx validation

* Add a handleGoBack func

---------

Co-authored-by: Victor Kirov <victor.kirov@gmail.com>
Co-authored-by: Jordan K. <65149726+jordankzf@users.noreply.github.com>
Co-authored-by: Tim Man <tim@secretkeylabs.com>
Co-authored-by: jordankzf <jordan@secretkeylabs.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
Co-authored-by: Denys Hriaznov <hriaznov.dev@gmail.com>
Co-authored-by: Christine Pinto <chrissie2788@gmail.com>
2024-07-01 10:37:46 +02:00
Den
67d957f657 [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>
2024-06-28 17:27:20 +08:00
Victor Kirov
c0d7477bd4 Refactor redux store in how we store and access accounts - ENG-4427 ENG-4524 ENG-4517 (#309) 2024-06-19 20:27:05 +08:00
Christine Pinto
234b5fbc81 [ENG-4262] Add collectibles basic E2E tests (#326)
- Add locators
- Optimise Code Functions
- Adjust execution commands to exclude tests
- Separation collection and single item
2024-06-13 09:47:26 +02:00
Christine Pinto
2b4c5e70bf [Fix] Swap button check (#328)
* Fix legal page error (closing old tab)
2024-06-07 14:31:37 +02:00
Christine Pinto
5b90aeccf4 [FIX] Currency change Test (#323) 2024-06-06 09:31:08 +02:00
Victor Kirov
3cd37d4e5f Apply some playwright enhancements (and solves ENG-3992) (#312)
* Some e2e test improvements

* Add startup timeout

* Address PR comment

---------

Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
2024-06-05 12:04:56 +02:00
Christine Pinto
e8c67775a9 switch Wallet for fund check (#318) 2024-06-04 12:27:56 +02:00
Christine Pinto
5543023f48 Add clickOnSpecificToken function 2024-05-31 21:59:00 +08:00
Terence Ng
06d507cc81 EXT - switching accounts should not maintain same index (#272)
* reset index when change network

* update test
2024-05-27 16:19:34 +02:00
Christine Pinto
f9e01c8bcd [ENG-4358] Fix failing E2E test token management (#283) 2024-05-21 18:01:03 +02:00
Christine Pinto
88a96cf374 Fix tokenmanagement E2E test (#282) 2024-05-21 13:38:44 +02:00
Christine Pinto
3a7be17496 [ENG-4254] Add base Transaction flow (#264)
* Add restore wallet as a separate function
* Reduce retention-days for playwright reports
* Add getSeedWords to get the seedphrase via Env Variable
* Add two env variables for transaction flow
* Add TODOs for next iteration on transaction flow
* Add Env Variable to our example env file
* Add locators data-testida for transaction floe
---------

Co-authored-by: Denys Hriaznov <hriaznov.dev@gmail.com>
Co-authored-by: Den <36603049+dhriaznov@users.noreply.github.com>
2024-05-20 15:17:10 +02:00
Christine Pinto
8d23563254 [ENG-4217] Add setting flows (#233)
* [ENG-4214] Add visual check swap page

- Change uitest to E2Etest
- Add new locators on the swap page
- Switch Token and check insufficient fund error

* [ENG-4217] Add update password flow and settings tab check

* [ENG-4216] Backup wallet flow

- Increased amount of shards for e2e tests for PRs to 6

* [ENG-4215] Add change currency

* - fixed typo in readme

* Changed ShowButton to RevealButton
2024-04-30 11:34:40 +02:00
Christine Pinto
5817401ba8 [ENG-4214] Add checks for swap page (#230)
- Change uitest to E2Etest
- Add new locators on the swap page
- Switch Token and check insufficient fund error
- Add script for running the 2e2 tests in UI Mode
2024-04-29 13:36:35 +02:00
Christine Pinto
66e3877cd9 [ENG-4213]Add visual check for stacking tab (#224)
- Rename file for explore tab visual check
- Adjust build workflow that the smoke test doesn't run on the e2etest branches
2024-04-25 16:25:01 +02:00
Christine Pinto
dfce6f6e05 [ENG-4212] Add visual check for explore Tab (#222)
- Add locators for explore tab
- Adjust build workflow to be executed with e2etest branches
-  Update playwright
- Change ubuntu-latest to ubuntu-20.04 in the workflow files
2024-04-24 16:26:52 +02:00
Christine Pinto
df64a70957 [ENG-4078] Manage tokens (#221)
* [ENG-4133] Add "switch to testnet and back to mainnet" flow and functions

[ENG-4132]Add data-testid to network address input fields

* [ENG-4081] Add locators

* Add account check

* [ENG-4080] Account management

* [ENG-4079] Add token locators

* add check token page

* Rename startpage to wallet

* Add enable and disable token flow

* Add balance check and BRC-20 FLOW

Enable and disable all tokens SIP-10 AND BRC-20
Add one more shard for UI test execution for RC build

* Add { exact: true } to get exact match (case-sensitive and whole-string) for tokenName (example ORDI)

* Add workflow trigger for UI tests suite being exeuted for uitest branches for PRs
2024-04-24 14:22:22 +08:00
Christine Pinto
b17314d959 [ENG-4080] Account management (#207) 2024-04-23 18:27:24 +08:00
Den
fff34fc00c Merge branch 'develop' into denys/eng-4028-restore-wallet-reload-page-instead-of-showing-error-message 2024-04-22 10:27:58 +02:00
Christine Pinto
195e164865 [ENG-4133] Add "switch to testnet and back to mainnet" flow(#206)
[ENG-4132]Add data-testid to network address input fields
2024-04-19 08:56:21 +02:00
Christine Pinto
2e6c2d8533 Adjust locator for inputSeedPhraseWordDisabled
Delete workaround (double click) for the refresh page issue
2024-04-18 12:08:25 +02:00