-
Notifications
You must be signed in to change notification settings - Fork 27
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
[ENG-3327] chore: run on ci type checking and unit tests #685
Conversation
@@ -125,7 +129,7 @@ export type SignPsbtResponseMessage = Message< | |||
ExternalSatsMethods.signPsbtResponse, | |||
{ | |||
signPsbtRequest: string; | |||
signPsbtResponse: SignPsbtResponse | string; | |||
signPsbtResponse: SignTransactionResponse | string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!importedBtcAccounts) { | ||
throw new Error('No accounts'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would previously throw a "Cannot destructure Property of Undefined" error
import { describe, expect, test } from 'vitest'; | ||
import { Side } from './types'; | ||
import { selectedTokenReducer } from './useSwap'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 🎉 🚀 💪
Thank youuuu!!!!! 😄
|
@teebszet tested can be merged |
* [ENG-5252] Switching currency to BTC * Add btc balance view for token tile, account row, balance card * Show balance in fiat for the btc token tile * Add hovers, change interface -> type, remove unused imports * Skip switching to btc mode on BTC details screen * Skip show balance in btc on tokens pages without fiat value * Update the fiat block on Dashboard to not look like like it is interactive * Add `Total Balance BTC` copy, add `Show balance` button * Hide ellipses for the hidden balances when tx has no value * Add store migration for the `showBalanceInBtc` property * Add `BtcAmountText` component * Remove the export word * Simplify the balance view rendering logic * Remove undefined type option for the showBalanceInBtc redux property * [ENG-5436][ENG-5437][ENG-5438][ENG-5439] Add wallet backup reminder (#770) * [ENG-5436][ENG-5437][ENG-5438][ENG-5439] Add wallet backup reminder * Add `has_backed_up_wallet` property to the `AnalyticsEvents.CreateNewWallet` event * Make the backup reminder clickable and redirect to show seedphrase * Use the SetWalletBackupStatus interface
🔘 PR Type
📜 Background
https://linear.app/xverseapp/issue/ENG-3327/fix-all-tsc-errors-on-web-extension
depends on secretkeylabs/xverse-core#296
🔄 Changes
fix: fix all simple type errors
chore: replaced all direct imports of xverse-core internals, to stop declaring type errors on those
chore: commented on and ignored remaining type errors on existing code, which looks complex to change the code behaviour
chore: turn on tsc --noEmit in CI checks
chore: turn off transpileOnly in webpack build config
chore: update ts-loader, webpack, and use fork-ts-checker-webpack-plugin to speed up type checking (from ~30s -> ~10s initial run)
fix: bumped xverse-core to 3.1.1 with fixes
https://github.com/secretkeylabs/xverse-core/releases/tag/v3.1.1
🖼 Screenshot / 📹 Video
Include screenshots or a video demonstrating the changes. This is especially helpful for UI changes.
✅ Review checklist
Please ensure the following are true before merging: