Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v0.23.2 #684

Merged
merged 1,259 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1259 commits
Select commit Hold shift + click to select a range
4305af5
fix: padding on swap confirm buttons
teebszet Jul 7, 2023
47069e6
fix: no exponents in fees block of swap confirmation
teebszet Jul 7, 2023
dab6139
feat: add sponsor swap transaction UI and add a hook with placeholder
teebszet Jul 12, 2023
92fb649
feat: bump xverse-core dep version and use sponsor2 url
teebszet Jul 17, 2023
3654327
fix: bump xverse-core version and handle sponsor transaction error
teebszet Jul 18, 2023
4f2164c
feat(Dashboard): update new action button style and add swap button
zhigang1992 Apr 3, 2023
8a543fb
feat(Swap): add swap screen placeholder
zhigang1992 Apr 3, 2023
356d570
feat(swap): add swap basic UI
zhigang1992 Apr 15, 2023
ee85e18
feat(swap): add more UI components
zhigang1992 Apr 15, 2023
4a03239
feat(swap): add slippage
zhigang1992 Apr 15, 2023
b88783d
feat(swap): make BitCoin and Stacks option in the coin select modal
zhigang1992 Apr 15, 2023
05c7e03
feat(swap): add token selection logic
zhigang1992 Apr 15, 2023
b348c9a
feat: add swap data connection
zhigang1992 Apr 15, 2023
c03fa6f
feat(swap): add runSwap
zhigang1992 Apr 15, 2023
019257d
chore(swap): bump alex-sdk version
zhigang1992 Apr 15, 2023
cebe7c4
fix(swap): slippage setting
zhigang1992 Apr 15, 2023
3f95ad2
feat: swap confirm layout
zhigang1992 Apr 20, 2023
9633b58
feat: add data bindings
zhigang1992 Apr 20, 2023
9b35cdf
fix: function name and copy address
zhigang1992 Apr 21, 2023
6daf136
feat: add advanced settings to the confirmation page
zhigang1992 Apr 21, 2023
aa51ca7
feat: bump alex-sdk to latest and fix the issue where from is the sam…
zhigang1992 Apr 26, 2023
2478491
feat: add math.floor before converting to bigInt
zhigang1992 Apr 26, 2023
71dc911
fix: skip action when input is invalid
zhigang1992 Apr 26, 2023
d2a5709
chore: update package.lock
zhigang1992 May 5, 2023
8486957
feat(swap): update to support amm v1_1 pools
zhigang1992 May 7, 2023
52ce2a0
chore: fix lint warnings
teebszet Jun 23, 2023
9bf9cea
fix: update swap svg stroke and add missing translation
teebszet Jun 23, 2023
89b20e0
fix: add key to fix react warnings
teebszet Jun 27, 2023
d4c4af1
chore: fix lint warnings
teebszet Jun 27, 2023
c162caa
fix: add error 700 border to swap token card
teebszet Jun 27, 2023
2e39841
fix: update swap error message and restrict input to number
teebszet Jun 27, 2023
ed1a45f
chore: prettier
teebszet Jun 27, 2023
f75a095
style: add a not-allowed cursor to disabled buttons
teebszet Jun 27, 2023
5aeacbb
fix: update translations
teebszet Jun 27, 2023
75cbd96
fix: use background elevation_1
teebszet Jun 27, 2023
92e9d73
style: update swap details spacing
teebszet Jun 27, 2023
2fc4c45
style: use unicode arrow right for swap route details
teebszet Jun 27, 2023
5960907
feat: implement toggle tokens button in swaps
teebszet Jun 27, 2023
fc29f8d
feat: add reset slippage button to swaps
teebszet Jun 27, 2023
b913fad
fix: refactor select currency logic to use reducer and unit test
teebszet Jun 28, 2023
cc003ed
chore: commit package-lock
teebszet Jun 28, 2023
240d766
fix: disable button when insufficient balance
teebszet Jun 28, 2023
114991a
fix: add token name to min received
teebszet Jun 28, 2023
810f104
fix: advanced settings modal on swaps
teebszet Jun 28, 2023
e8d828e
fix: use 4dp rounding on exchange rate
teebszet Jun 28, 2023
39279ef
fix: toggle button should also toggle amounts
teebszet Jun 29, 2023
2827b93
fix: function font style should be body_medium_m
teebszet Jun 29, 2023
bb86cf5
feat: make swap confirmation buttons sticky bottom
teebszet Jun 29, 2023
fc12063
fix: standardise button hover, active, disabled css
teebszet Jun 29, 2023
c96f158
feat: add error state to slippage input
teebszet Jun 29, 2023
3846ea5
fix: use intended params for swap advance settings on apply handler
teebszet Jun 29, 2023
4d8231b
fix: padding on swap confirm buttons
teebszet Jul 7, 2023
5533a7a
fix: no exponents in fees block of swap confirmation
teebszet Jul 7, 2023
c85ee22
Merge branch 'feat/swap' into tim/eng-2377-integrate-alex-swaps-with-…
teebszet Jul 18, 2023
6f9476e
style: prettier
teebszet Jul 18, 2023
cb9f2ad
Merge pull request #515 from secretkeylabs/tim/eng-2377-integrate-ale…
teebszet Jul 18, 2023
4bfd7da
chore: update package-lock with npm i
teebszet Jul 18, 2023
7ea9033
chore: fix package-lock.json for correct xverse-core dep
teebszet Jul 18, 2023
3691991
chore: replace workflow dep with github api calls
teebszet Jul 18, 2023
322ec47
Merge branch 'develop' into tim/eng-2321-fix-release-workflow-for-web…
teebszet Jul 18, 2023
f3b2d28
chore: remove erroneous `
teebszet Jul 18, 2023
ac8e551
Fix Edit fees popup error
dhriaznov Jul 18, 2023
db9a0f0
Fix Edit fees popup error
dhriaznov Jul 18, 2023
61d3e52
Add receiving address verification for ledger accounts
dhriaznov Jul 18, 2023
5a35ff5
Fix warning display condition on the ledger verification screen
dhriaznov Jul 18, 2023
15b7dbe
Merge pull request #506 from secretkeylabs/tim/eng-2321-fix-release-w…
teebszet Jul 19, 2023
2854451
Dont close popup on checkbox click
Imamah-Zafar Jul 19, 2023
a10c3bc
Merge branch 'develop' of https://github.com/secretkeylabs/xverse-web…
Imamah-Zafar Jul 19, 2023
5f47e79
fix: fix for JSON serialisation of location.state
teebszet Jul 19, 2023
9f43bf3
chore: use the test instance URL
teebszet Jul 19, 2023
ebf4e3d
chore: upgrade to alex-sdk 0.1.14
teebszet Jul 19, 2023
9e08170
Merge branch 'develop' into feat/swap
teebszet Jul 19, 2023
51ee4d2
Show wrong ledger device error
dhriaznov Jul 19, 2023
763ce08
Add custom ledger account name validation
dhriaznov Jul 19, 2023
d328999
fix: turn react deps warning back on and fix stale callback
teebszet Jul 20, 2023
3451f15
fix: move sponsor url to constants and add sponsor to swap unsigned tx
teebszet Jul 20, 2023
c957f25
fix: display the transaction explorer link on successful sponsored tx
teebszet Jul 20, 2023
40d82fc
fix: set swap transaction fee to 0 if being sponsored
teebszet Jul 20, 2023
b7be4f5
The transaction history not showing a pending send transaction that w…
dhriaznov Jul 20, 2023
45e7066
Merge pull request #368 from secretkeylabs/ledger-btc-mvp
yknl Jul 20, 2023
8c6d4c7
release v0.14.0
yknl Jul 20, 2023
b6d75f8
Merge branch 'develop' into denys/eng-2373-validate-when-user-is-sett…
dhriaznov Jul 21, 2023
f1328c6
Merge branch 'develop' into denys/eng-2408-show-wrong-ledger-device-e…
dhriaznov Jul 21, 2023
ab0564c
Merge branch 'develop' into denys/eng-2355-the-transaction-history-no…
dhriaznov Jul 21, 2023
70c1d4e
Merge branch 'develop' into feat/swap
teebszet Jul 24, 2023
090126f
chore: update xverse-core to published release 1.4.0
teebszet Jul 24, 2023
a6c04b4
chore: update swaps xverse sponsor 2 host
teebszet Jul 24, 2023
b82a704
fix: remove btc from swaps coin modal. change was removed during merge
teebszet Jul 24, 2023
f683efb
Merge pull request #359 from secretkeylabs/feat/swap
teebszet Jul 24, 2023
466de47
fix: remove static text describing swap route
teebszet Jul 24, 2023
3f3e08c
Merge pull request #526 from secretkeylabs/tim/eng-2481-swap-remove-e…
teebszet Jul 24, 2023
6bb3433
Merge pull request #520 from secretkeylabs/denys/eng-2373-validate-wh…
dhriaznov Jul 24, 2023
b231c58
Merge pull request #519 from secretkeylabs/denys/eng-2408-show-wrong-…
dhriaznov Jul 24, 2023
ba6a527
Merge branch 'develop' into denys/eng-2355-the-transaction-history-no…
dhriaznov Jul 24, 2023
ac5c0e1
Merge branch 'develop' into release/v0.14.0
yknl Jul 24, 2023
cdd173d
Merge pull request #522 from secretkeylabs/release/v0.14.0
yknl Jul 24, 2023
b2ab169
Add Before Getting Started screen for Ledger onboarding
dhriaznov Jul 24, 2023
de707df
update copy
yknl Jul 24, 2023
25b1f0d
add links and update copy
yknl Jul 24, 2023
42b564f
Merge pull request #527 from secretkeylabs/denys/eng-2483-add-before-…
yknl Jul 24, 2023
b47c105
chore: add husky and pre commit prettier to staged files
teebszet Jul 25, 2023
8aeb9d0
chore: run prettier --write ./src
teebszet Jul 25, 2023
1adf670
fix: show inscription service fee fiat amount
teebszet Jul 25, 2023
ca74fa9
Fix ledger account name UI issue
dhriaznov Jul 25, 2023
0b06536
Merge branch 'develop' into denys/eng-2355-the-transaction-history-no…
dhriaznov Jul 25, 2023
04055b1
Show loader instead of previous transaction history data
dhriaznov Jul 25, 2023
2a4de15
comment out swaps button
yknl Jul 25, 2023
f1986aa
Merge pull request #530 from secretkeylabs/denys/eng-2486-ledger-acco…
yknl Jul 25, 2023
e5a6368
Merge pull request #521 from secretkeylabs/denys/eng-2355-the-transac…
dhriaznov Jul 26, 2023
5cae87c
Merge pull request #528 from secretkeylabs/release/v0.14.0
yknl Jul 26, 2023
7ab73c1
Add localization for onboarding flow Ledger Live warning screen
dhriaznov Jul 26, 2023
6b58908
Merge branch 'develop' into tim/eng-2485-run-prettier-write-on-web-ex…
teebszet Jul 27, 2023
332f030
chore: automatically do husky install on npm install
teebszet Jul 27, 2023
2125452
chore: prefer .husky for hooks
teebszet Jul 27, 2023
173d15a
chore: run prettier again
teebszet Jul 27, 2023
8dbca13
Merge branch 'develop' into tim/eng-2332-show-fiat-amount-for-inscrip…
teebszet Jul 27, 2023
8bd6e3a
Merge pull request #529 from secretkeylabs/tim/eng-2485-run-prettier-…
teebszet Jul 27, 2023
ab3e64b
fix: fix unsigned tx serialisation in advance settings for swaps
teebszet Jul 27, 2023
335fc58
fix: use getNewNonce to ensure swaps transactions have correct nonce
teebszet Jul 27, 2023
8d83240
docs: comment
teebszet Jul 27, 2023
0d4fd13
Merge branch 'develop' into tim/eng-2504-getting-badnonce-and-conflic…
teebszet Jul 27, 2023
f5a9069
Merge branch 'develop' into denys/eng-2484-add-localization-for-onboa…
yknl Jul 27, 2023
2615d17
Merge pull request #532 from secretkeylabs/denys/eng-2484-add-localiz…
yknl Jul 27, 2023
3ffcc02
Merge pull request #531 from secretkeylabs/tim/eng-2332-show-fiat-amo…
yknl Jul 27, 2023
efd6ec7
bump xverse-core to v1.4.2
yknl Jul 27, 2023
37ede0d
Merge branch 'develop' into tim/eng-2504-getting-badnonce-and-conflic…
teebszet Jul 28, 2023
126fc26
fix: only show swaps button if not on a ledger account
teebszet Jul 28, 2023
b762a32
fix: post condition info should display to/from depending on the swap
teebszet Jul 28, 2023
224adc6
Fix regression issues v0.14.0-rc.1
dhriaznov Jul 28, 2023
03cf6e0
Merge pull request #535 from secretkeylabs/chore/update-core-v1.4.2
yknl Jul 28, 2023
4167766
Merge branch 'develop' of https://github.com/secretkeylabs/xverse-web…
Imamah-Zafar Jul 31, 2023
baa87d3
fix: ensure we are sending the correct ordinal
victorkirov Jul 31, 2023
6017c95
fix: ensure we are sending the correct ordinal
victorkirov Jul 31, 2023
dd63f66
0.14.1
teebszet Jul 31, 2023
e2a8037
fix: remove unnecessary nested BalanceAmountText
teebszet Jul 31, 2023
ab4e5cd
fix: use semantic html instead of all h1
teebszet Jul 31, 2023
791c8bd
fix: add a filter list to not display coins for swaps
teebszet Jul 31, 2023
9c9a0bb
Fix screen crash when changing account on /send-brc20 screen
dhriaznov Jul 31, 2023
b3d6d17
Merge branch 'develop' into denys/eng-2473-regression-issues-v0140-rc1
dhriaznov Jul 31, 2023
f6144bc
Merge pull request #536 from secretkeylabs/tim/eng-2508-disable-swaps…
yknl Aug 1, 2023
854aad0
Merge pull request #537 from secretkeylabs/tim/eng-2509-swap-confirma…
yknl Aug 1, 2023
a71cbb8
Merge pull request #541 from secretkeylabs/tim/eng-2510-not-all-token…
yknl Aug 1, 2023
0df2b1d
Merge pull request #539 from secretkeylabs/victor/eng-2520-ensure-we-…
teebszet Aug 1, 2023
3379fd1
Merge pull request #540 from secretkeylabs/hotfix/send-correct-ordinal
teebszet Aug 1, 2023
3f57062
fix: button should always be disabled when processing
teebszet Aug 1, 2023
5ae531e
Update /send-brc20 screen logic
dhriaznov Aug 1, 2023
6271f68
Merge branch 'denys/eng-2473-regression-issues-v0140-rc1' of github.c…
dhriaznov Aug 1, 2023
cd78afc
Merge branch 'develop' into tim/eng-2504-getting-badnonce-and-conflic…
teebszet Aug 1, 2023
d36c030
Merge branch 'develop' of github.com:secretkeylabs/xverse-web-extensi…
dhriaznov Aug 1, 2023
e31964b
Merge pull request #538 from secretkeylabs/denys/eng-2473-regression-…
dhriaznov Aug 1, 2023
440bb95
use toString to convert value to BigNumber
Imamah-Zafar Aug 1, 2023
fa4d6a4
Merge branch 'develop' of https://github.com/secretkeylabs/xverse-web…
Imamah-Zafar Aug 1, 2023
540da83
Merge pull request #543 from secretkeylabs/imamahzafar/bignumber-cove…
yknl Aug 1, 2023
77555bf
Merge pull request #542 from secretkeylabs/tim/eng-2525-swap-continue…
yknl Aug 1, 2023
3f05540
Merge pull request #533 from secretkeylabs/tim/eng-2504-getting-badno…
yknl Aug 1, 2023
8b5034d
chore: bump xverse-core to 1.5.0
teebszet Aug 2, 2023
9ceed5a
fix: not all tickers are all uppercase e.g. xBTC
teebszet Aug 2, 2023
147c8af
fix: decouple alex swap from/to token list and visible token list
teebszet Aug 2, 2023
8097b0a
Fix the case when address verification screen flashes when using wron…
dhriaznov Aug 2, 2023
0e8779e
Merge pull request #547 from secretkeylabs/tim/eng-2510-hardcode-list…
yknl Aug 3, 2023
d188faf
Merge pull request #518 from secretkeylabs/imamahzafar/eng-2386-click…
yknl Aug 3, 2023
cafa003
Merge branch 'develop' into chore/update-core-v1.5.0
teebszet Aug 3, 2023
a3c8ec7
Merge pull request #548 from secretkeylabs/denys/eng-2507-address-ver…
dhriaznov Aug 3, 2023
3149fd2
Merge pull request #545 from secretkeylabs/chore/update-core-v1.5.0
m-aboelenein Aug 3, 2023
7b9cba0
Add an override switch for sponsoring transaction in swap screen
Imamah-Zafar Aug 3, 2023
5acdc7a
Update function param name
Imamah-Zafar Aug 3, 2023
6b2d819
Merge pull request #550 from secretkeylabs/imamahzafar/eng-2527-add-a…
Imamah-Zafar Aug 4, 2023
94ead4d
chore: bump core version to 1.6.0 (#560)
teebszet Aug 10, 2023
07f89be
Allow send ordinal to self and display warning instead of error (#525)
teebszet Aug 10, 2023
46d3956
Release v0.15.0 (#544)
yknl Aug 11, 2023
1409422
chore: bump xverse-core to 1.6.1 (#561)
teebszet Aug 11, 2023
a7b6112
fix: Don't use ordinals as inputs when recovering ordinals (#558)
victorkirov Aug 11, 2023
7bb37c7
Use updated type from sats-connect (#546)
Imamah-Zafar Aug 15, 2023
ea876ad
feat: remove binance onramp from buy screen (#567)
teebszet Aug 15, 2023
9af2b9e
Release 0.16.0 (#565)
teebszet Aug 18, 2023
5733d80
fix: bump xverse-core to 1.6.2 (#574)
teebszet Aug 22, 2023
100a346
Fix incorrect swap transaction fee ticker (#562)
Imamah-Zafar Aug 22, 2023
502f064
Add ability to remove connected Ledger account (#524)
dhriaznov Aug 22, 2023
e051e30
Support BTC message signing with ledger accounts (#549)
dhriaznov Aug 22, 2023
08f26a7
release: v0.17.0 (#576)
teebszet Aug 23, 2023
ebd797a
Filter out dead pending transactions (#568)
Imamah-Zafar Aug 25, 2023
78ea0cf
fix: account select navigation (#578)
victorkirov Aug 28, 2023
769e74b
Display pending fungible token transactions in token dashboard (#572)
Imamah-Zafar Aug 29, 2023
8ea8088
Show pending ordinal transactions (#563)
Imamah-Zafar Aug 30, 2023
069859a
feat: add Xverse namespaced providers (#581)
victorkirov Aug 31, 2023
4ad4b88
Enable PSBT signing for ledger BTC accounts (#570)
dhriaznov Aug 31, 2023
42ebaae
fix: allow display of brc-20 if application/json type (#587)
victorkirov Sep 5, 2023
a9c193a
fix: full screen and popup styling (#577)
victorkirov Sep 7, 2023
f72bf4f
feat: add inscription confirmation for sats connect (#571)
victorkirov Sep 7, 2023
7232104
Add STX support for Ledger accounts (#564)
dhriaznov Sep 7, 2023
df4874d
fix: brc-20 balance number check (#592)
victorkirov Sep 7, 2023
c96f7c4
fix: don't show fees until we have UTXOs on inscription screen (#594)
victorkirov Sep 7, 2023
02ceded
fix: improve full screen popup styling (#593)
victorkirov Sep 7, 2023
226a060
Release/v0.18.0 (#591)
teebszet Sep 11, 2023
0ddd412
Fix Tx history screen reload & send form navigation issues (#584)
Imamah-Zafar Sep 11, 2023
d40e6a7
Support script outputs in psbts (#534)
Imamah-Zafar Sep 12, 2023
96bd92b
Mismatch when verifying the addresses from the ledger device (#580)
dhriaznov Sep 12, 2023
4cce684
Handle min fee rate returned by the API (#583)
dhriaznov Sep 12, 2023
c330e77
fix: don't show loader on balance refetch on home screen ENG-2757 (#589)
victorkirov Sep 13, 2023
32b3bf2
Release/v0.18.2 (#600)
yknl Sep 14, 2023
311d9d8
feat: 1 step brc 20 transfers (#585)
teebszet Sep 14, 2023
179163d
update license (#606)
yknl Sep 18, 2023
11ce9c7
Add scrollbar on all scrollable screens (#582)
Imamah-Zafar Sep 19, 2023
45889bd
fix: loader on home page issues (#603)
victorkirov Sep 19, 2023
0a2a2c5
Fix scrollbar in landing page (#609)
Imamah-Zafar Sep 19, 2023
6aa548a
feat: notice for an non taproot address when sending brc 20 tokens (#…
teebszet Sep 19, 2023
7701eed
release: v0.19.0 (#607)
teebszet Sep 25, 2023
f612405
Build analytics tracking for web-extension (#590)
dhriaznov Sep 26, 2023
37078cf
Handling fees with thresholds (#601)
dhriaznov Sep 29, 2023
a1a4f7f
Refactor ledger-related logic (#586)
dhriaznov Sep 29, 2023
7d3df13
Release/v0.20.0 (#611)
teebszet Oct 7, 2023
8b7c503
Show BRC20 token transaction history (#523)
Imamah-Zafar Oct 10, 2023
f3219e4
fix rare sats settings copy (#612)
yknl Oct 10, 2023
5743c8d
Release/0.21.0 (#613)
teebszet Oct 11, 2023
6037599
feat: revamp all colors (#588)
teebszet Oct 13, 2023
2c657b0
Tim/eng 2317 consistent dashboard buttons in extension (#618)
teebszet Oct 18, 2023
ac2f936
Ledger send btc screen crash when going back and forward (#615)
dhriaznov Oct 18, 2023
3542cee
Make `Authorize data collection` property turned on by default (#614)
dhriaznov Oct 19, 2023
a7264d9
[ENG-2961] Fix eslint errors for web extension (#617)
dhriaznov Oct 24, 2023
9064e69
[ENG-3059] fix: Remove ordinal callout from send rare sats (#619)
dhriaznov Oct 25, 2023
324bb72
chore: turn on tsc --noEmit precommit hook (#622)
teebszet Oct 25, 2023
b25b379
feat: allow unpublished UTXOs as inputs to PSBTs (#621)
victorkirov Oct 25, 2023
78d01bf
[ENG-3039] fix: Skeleton loader for BRC-20 icons in home dashboard (#…
dhriaznov Oct 25, 2023
13938ea
Mahmoud/eng 2284 seedphrase vault (#510)
m-aboelenein Oct 26, 2023
9ecbd24
[ENG-3115] fix: UI issue in the legal screen (#624)
dhriaznov Oct 26, 2023
d47a8dc
feat: add vout to the end of the tx id for unknown rarities (#623)
fedeerbes Oct 26, 2023
baa892e
Fix minor UI issues (#625)
Imamah-Zafar Oct 26, 2023
eb6366b
fix: disabling ordinals user should not see them in the (#627)
teebszet Oct 26, 2023
eb380ac
fix: only display tab buttons when more than one tab (#629)
teebszet Oct 27, 2023
02725b4
chore: turn on eslint rule and fix up some core internal imports (#630)
teebszet Oct 27, 2023
d0613f2
release: v0.22.0 (#626)
teebszet Oct 31, 2023
9439099
fix: unable to change the network to testnet on the latest (#636)
teebszet Nov 1, 2023
152ea19
chore: investigate npm dependabot warnings on extension (#635)
teebszet Nov 1, 2023
d84ca7d
Hotfix/fix (#646)
victorkirov Nov 9, 2023
7b5b190
Fix main dev drift (#647)
victorkirov Nov 9, 2023
4d1d1e4
fix: when clicking on the inscription image in the details view (#659)
teebszet Nov 14, 2023
01d1608
fix: settings layover (#657)
abdulhaseeb4239 Nov 15, 2023
719d00b
navigate back to the screen that triggers login (#651)
m-aboelenein Nov 15, 2023
306be06
fix: remove bignumber from the redux store (#610)
victorkirov Nov 20, 2023
6cdd2f3
feat: Enable Ledger PSBT signing (#660)
victorkirov Nov 21, 2023
aa66674
chore: bump sats-connect to 1.1.2 (#667)
teebszet Nov 21, 2023
cd9971e
Replace hardcoded USD with dynamic NumericFormat prefix (#670)
jordankzf Nov 21, 2023
f6c4ece
fix: cache keys for react queries where stale time was added (#669)
teebszet Nov 21, 2023
c545608
feat: STX NFTs Tab (#634)
Imamah-Zafar Nov 21, 2023
e20e4b0
Release/v0.23.0 (#674)
teebszet Nov 23, 2023
d39b9be
disable automatic migration (#675)
m-aboelenein Nov 24, 2023
5bd1732
release: v0.23.1
teebszet Nov 24, 2023
8463d9c
Merge branch 'main' into release/v0.23.1
teebszet Nov 24, 2023
f1b1324
Add missing BigNumber import (#682)
victorkirov Nov 25, 2023
21a45ee
release v0.23.2
yknl Nov 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 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
@@ -1,7 +1,7 @@
{
"name": "xverse-web-extension",
"description": "A Bitcoin wallet for Web3",
"version": "0.23.0",
"version": "0.23.2",
"private": true,
"engines": {
"node": "^18.18.2"
Expand Down
1 change: 1 addition & 0 deletions src/app/screens/btcSendScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import useSendBtcRequest from '@hooks/useSendBtcRequest';
import useWalletSelector from '@hooks/useWalletSelector';
import { ErrorCodes, getBtcFiatEquivalent } from '@secretkeylabs/xverse-core';
import { BITCOIN_DUST_AMOUNT_SATS } from '@utils/constants';
import BigNumber from 'bignumber.js';
import { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
Expand Down
30 changes: 13 additions & 17 deletions src/app/screens/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Eye from '@assets/img/createPassword/Eye.svg';
import EyeSlash from '@assets/img/createPassword/EyeSlash.svg';
import logo from '@assets/img/xverse_logo.svg';
import ActionButton from '@components/button';
import useCacheMigration from '@hooks/useCacheMigration';
import useWalletReducer from '@hooks/useWalletReducer';
import { animated,useSpring } from '@react-spring/web';
import MigrationConfirmation from '@screens/migrationConfirmation';
Expand Down Expand Up @@ -130,20 +129,20 @@ function Login(): JSX.Element {
},
delay: 100,
});
const { migrateCachedStorage } = useCacheMigration();

const handleSkipMigration = async () => {
await unlockWallet(password);
setIsVerifying(false);
const skipTime = new Date().getTime();
const migrationReminder = addMinutes(skipTime, 10).getTime();
localStorage.setItem('migrationReminder', migrationReminder.toString());
navigate(-1);
};

const handleMigrateCache = async () => {
await migrateCachedStorage(password);
setIsVerifying(false);
try {
await unlockWallet(password);
setIsVerifying(false);
const skipTime = new Date().getTime();
const migrationReminder = addMinutes(skipTime, 10).getTime();
localStorage.setItem('migrationReminder', migrationReminder.toString());
navigate(-1);
} catch (err) {
setIsVerifying(false);
setShowMigration(false);
setError(t('VERIFY_PASSWORD_ERROR'));
}
};

const handleTogglePasswordView = () => {
Expand Down Expand Up @@ -230,10 +229,7 @@ function Login(): JSX.Element {
</ContentContainer>
</ScreenContainer>
) : (
<MigrationConfirmation
migrateCallback={handleMigrateCache}
skipCallback={handleSkipMigration}
/>
<MigrationConfirmation migrateCallback={handleMigrateCache} />
)}
</>
);
Expand Down
66 changes: 10 additions & 56 deletions src/app/screens/migrationConfirmation/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import WarningStatus from '@assets/img/warningIcon.svg';
import ActionButton from '@components/button';
import { useState } from 'react';
import styled from 'styled-components';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
import ActionButton from '@components/button';
import WarningStatus from '@assets/img/warningIcon.svg';
import CheckCircle from '@assets/img/createWalletSuccess/CheckCircle.svg';
import styled from 'styled-components';

const Container = styled.div`
display: flex;
Expand Down Expand Up @@ -42,11 +40,6 @@ const OnboardingContent = styled.div((props) => ({
textAlign: 'center',
}));

const SkipButtonContainer = styled.div((props) => ({
marginRight: props.theme.spacing(2),
width: '100%',
}));

const Icon = styled.img((props) => ({
width: 88,
height: 88,
Expand All @@ -57,67 +50,28 @@ const Icon = styled.img((props) => ({

interface Props {
migrateCallback: () => Promise<void>;
skipCallback: () => Promise<void>;
}

function MigrationConfirmation(props: Props): JSX.Element {
const { migrateCallback, skipCallback } = props;
const [hasFinishedMigrating, setHasFinishedMigrating] = useState(false);
const navigate = useNavigate();
const { migrateCallback } = props;
const [isLoading, setIsLoading] = useState(false);
const [isSkipping, setIsSkipping] = useState(false);
const { t } = useTranslation('translation', { keyPrefix: 'CACHE_MIGRATION_SCREEN' });

const handleConfirm = async () => {
setIsLoading(true);
await migrateCallback();
setHasFinishedMigrating(true);
setIsLoading(false);
};

const onCloseTab = () => {
navigate('/');
};

const handleSkip = async () => {
setIsSkipping(true);
await skipCallback();
setIsSkipping(false);
};

return (
<Container>
<OnBoardingContentContainer>
<Icon src={!hasFinishedMigrating ? WarningStatus : CheckCircle} />
{!hasFinishedMigrating ? (
<>
<OnboardingTitle>{t('TITLE')}</OnboardingTitle>
<OnboardingContent>{t('WARNING')}</OnboardingContent>
</>
) : (
<OnboardingTitle>{t('SUCCESS_TITLE')}</OnboardingTitle>
)}
{!hasFinishedMigrating ? (
<ButtonsContainer>
<SkipButtonContainer>
<ActionButton
text={t('SKIP_BUTTON')}
onPress={handleSkip}
warning
processing={isSkipping}
/>
</SkipButtonContainer>
<ActionButton
onPress={handleConfirm}
text={t('CONFIRM_BUTTON')}
processing={isLoading}
/>
</ButtonsContainer>
) : (
<ButtonsContainer>
<ActionButton text={t('CLOSE_TAB')} onPress={onCloseTab} />
</ButtonsContainer>
)}
<Icon src={WarningStatus} />
<OnboardingTitle>{t('TITLE')}</OnboardingTitle>
<OnboardingContent>{t('WARNING')}</OnboardingContent>
<ButtonsContainer>
<ActionButton text={t('CLOSE_TAB')} onPress={handleConfirm} processing={isLoading} />
</ButtonsContainer>
</OnBoardingContentContainer>
</Container>
);
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1025,11 +1025,11 @@
},
"CACHE_MIGRATION_SCREEN": {
"TITLE": "Your wallet data store needs to be updated in order to remain secure.",
"WARNING": "Please make sure you have your seed phrase backed up securely before moving forward.",
"WARNING": "Please make sure you have your seed phrase backed up securely and restore your wallet after resetting it from settings",
"SUCCESS_TITLE": "Update Complete",
"SKIP_BUTTON": "Do it later",
"CONFIRM_BUTTON": "Confirm",
"CLOSE_TAB": "Continue"
"CLOSE_TAB": "I understand"
},
"SWAP_SCREEN": {
"SWAP": "Swap",
Expand Down
Loading