Commit 9e7a79e
Add error handling for Search Asset results (#2389)
* Feature/move history fetch to bg (#2273)
* upgrade to yarn 2 and use resolutions to block vulnerable package versions (#2239)
* upgrade to yarn 2 and use resolutions to block vulnerable package versions
* rm deprecated .yarnrc
* rm yarnpath
* try committing yarn binary to repo
* try corepack enable for gha
* update run tests cmd
* rm yarnpath
* rm npm i yarn
* update all pipelines
* rm superfluous history types
* ensure invoke host function tx shows contract parameters (#2243)
* ensure invoke host function tx shows contract parameters
* add test for fallback if contract spec retrieval fails
* Bugfix/rm auth param names (#2244)
* ensure invoke host function tx shows contract parameters
* add test for fallback if contract spec retrieval fails
* do not show contract parameters for authorizations
* add tests for create contract v1 and invoke contract
* add issuer for changeTrust op (#2246)
* add issuer for changeTrust op
* programmatically disable overflow:hidden when copying a value
* Revert "add issuer for changeTrust op (#2246)" (#2247)
This reverts commit 19c8a68.
* Bugfix/add issuer for changetrust (#2249)
* ensure invoke host function tx shows contract parameters
* add test for fallback if contract spec retrieval fails
* do not show contract parameters for authorizations
* add tests for create contract v1 and invoke contract
* add issuer for changeTrust op
* programmatically disable overflow:hidden when copying a value
* cache account balances and poll for updates
* fix CI tests
* rm `force:true` which was causing action to happen too fast
* do a fresh balance fetch on account/network change
* first pass at async history
* pr comments
* allow for history caching
* add more sentry tracking for Account and Wallets views (#2268)
* add more sentry tracking for Account and Wallets views
* adding more sentry reporting
* gracefully degrade on errors from Blockaid (#2269)
* gracefully degrade on errors from Blockaid
* should not be necessary to skip dapp scanning on custom network
* rm extra dep
* add a test for persisting configurations in the send flow (#2271)
* add a test for persisting configurations in the send flow
* rm logs and update muxed acct; lower xlm payment
* rm slow loading simulation
* handle missing scan-tx result; add disabled state for Confirm Anyway (#2272)
* handle missing scan-tx result; add disabled state for Confirm Anyway
* assertions to show correct confirm button on Blockaid error
* add cache for balances to ensure we do a fresh lookup when needed (#2275)
* add cache for balances to ensure we do a fresh lookup when needed
* add try...catch to token-prices polling
* rm log
* only dispatch saveBalancesForAccount when fresh data has been fetched
* adjust test to wait for UI change
* replace yarn setup with just yarn
* rm unnecessary return
* clear token details on redux clear action
* make history row construction async and check for redux state for updates
* add tests for assetdetails
* increase timeout for flakey test
* pr comments
* refresh account history every time account balances refresh
* check for updated appdata before showing password modal (#2300)
* check for updated appdata before showing password modal
* update error msg
* rm unused redirect logic
* stringify errors rather than using `cause` (#2302)
* Feature/move icons to own hook (#2308)
* move get icons out of critical path; rely on background's cache
* add tests and comments
* add comment
* add comment
* only dispatch if we have cached icons
* PR comments
* skip blockaid scan on first fetch of account-balances (#2310)
* skip blockaid scan on first fetch of account-balances
* rm stub change
* rm more stubs
* rm log
* add comments and update boolean naming
* Dropdown menu option to copy wallet address (#2316)
* add button to copy address from dropdown
* Added translations
* revert translation file changes
* revert translation file changes
* Added translations
* revert changes to translation files
* move copy address button to first dropdown position
* scroll on long strings; pretty print json (#2320)
* scroll on long strings; pretty print json
* rm log
* add correct snapshot for json message
* rm log
* finish comment
* add error case for JSON
* don't use carat for lib
* update yarn.lock
* move scrollbar to btm of container; reduce json font size
* update snapshot
* re-searching so should abort any in flight API requests (#2323)
* re-searching so should abort any in flight API requests
* add comment
* fix test name
* make test more reliable
* add check for correct search results
* fix jest locator
* [FEATURE] new send/swap navigation flow (#2353)
* adds SelectionTile and AddressTile, updates nav flows to match updates. Adds query parameter for default values in send flow
* Added translations
* adds address tile and uses it in swap flow, tweaks selection tile styles
* adds unit tests for new tile components
* Added translations
* updates swap navigation flow to match updates, updates tests flows to match
* updates back icon for send and swap steps, fixes bad test references
* tweaks locator in address tile tests
* adds store state to asset tile tests, removes asset icon mock
* updates SelectionTile prop name, adds isSuspicious prop for AssetTile
* adds placeholder value in TokenList for missing token USD value
* uses real IdenticonImg in address tile unit tests
* adds query param validation for send and swap flow
* Update extension/src/popup/views/SendPayment/index.tsx
Co-authored-by: Cássio Marcos Goulart <3228151+CassioMG@users.noreply.github.com>
* adds missing import
* adds class for tile icon
---------
Co-authored-by: Cássio Marcos Goulart <3228151+CassioMG@users.noreply.github.com>
* [FEATURE] adds send and swap buttons to asset detail view (#2351)
* adds send and swap buttons to asset detail view
* uses secondary button styles
* removes run snapshots job (#2355)
* release/5.35.4 (#2354)
* upgrade to ledger-hq/hw-transport-webhid (#2350)
* upgrade to ledger-hq/hw-transport-webhid
* add tests
* add ledger support for new trustline flow (#2352)
* upgrade to ledger-hq/hw-transport-webhid
* add ledger support for new trustline flow
* only re-fetch balances if we were successful
* test for fetching balances on success
* add reset spys
* adjust spacing at top of hw wallet modal
* Now that `Done` button properly shows, click it in tests (#2356)
* skip flakey test
* skip flakey test
* renames local vars to follow convention
* adds tests for LP share and tweaks LP title
* adds links with query params for asset detail CTAs
---------
Co-authored-by: Piyal Basu <pbasu235@gmail.com>
* only fetch asset list data if needed (#2369)
* only fetch asset list data if needed
* correctly show icon loading state
* [BUG] SAC token management improvements (#2374)
* adds SAC detection when changing trust in the add and remove token flows
* updates arg signature for isAssetSac
* Feature/cache token prices (#2373)
* cache token prices and batch loading wallets
* use similar methodology for token price and account balance caching
* fix loading state trigger
* fix tests
* use helper for cache clearing
* set isFetchingTokenPrices to false in catch handler
* rollback error change
* load backend settings async on Account view (#2381)
* load backend settings async on Account view
* rm console.logs
* Feature/use ledger key for home domains (#2363)
* use ledger-key/accounts endpoint for home domains
* fix tests
* create generic ledger key account helper; add tests
* rm unneeded data-test prop
* rm unused import
* [CHORE] git process updates (#2361)
* moves the add translations hook to the pre commit stage, removes standalone translations commit
* adds script to update app version, removes version update from submit production action, adds update version step to test run action for release branches
* removes version input, now uses package version
* fetch asset domains in one calls
* fix tests
* cache home domains while iterating over account history rows
* fitler non-G keys
* rm .only
* fix test param
* PR comments
---------
Co-authored-by: aristides <aristides.staffieri@stellar.org>
* update version numbers for release
* Eadd error handling for soroswap tokenlist.json fail state
* extract schema into constant
* simplify fulfilled checks
* remove timeout and fix errors returned
* rm unnecessary calls to make flows even faster (#2391)
* makes send swap buttons stay in the container in full screen mode (#2392)
* makes send swap buttons stay in the container in full screen mode
* add a pause to make sure flakey e2e test has time to save changes
* use cached token list lookup on add asset screen
* use cached assets lookup
* simplify caching logic for lookup assets
* simplify caching logic for lookup assets
* update getTokenFromTokenList
* update token list fetch parallel
* update token list fetch parallel
* remove manual definition of verified tokens
* revert to parallel fetch on getAssets
* revert to parallel fetch on getAssets
* revert to parallel fetch on getAssets
* update tests for error handling
* update tests for error handling
* remove deprecated package
* add tests for cached list and comments on functions
* fix tests
---------
Co-authored-by: Piyal Basu <pbasu235@gmail.com>
Co-authored-by: aristides <aristides.staffieri@stellar.org>
Co-authored-by: Cássio Marcos Goulart <3228151+CassioMG@users.noreply.github.com>1 parent 22463e6 commit 9e7a79e
17 files changed
Lines changed: 583 additions & 91 deletions
File tree
- extension
- src/popup
- components/manageAssets
- AddAsset
- SearchAsset/hooks
- helpers
- __tests__
- views
- SignTransaction/hooks
- __tests__
- Wallets
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
0 commit comments