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

[ENG-3327] chore: run on ci type checking and unit tests #685

Merged
merged 16 commits into from
Nov 29, 2023

Conversation

teebszet
Copy link
Member

@teebszet teebszet commented Nov 26, 2023

🔘 PR Type

  • Bugfix
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no API changes)

📜 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:

  • Code Style is consistent with the project guidelines.
  • Code is readable and well-commented.
  • No unnecessary or debugging code has been added.
  • Security considerations have been taken into account.
  • The change has been manually tested and works as expected.
  • Breaking changes and their impacts have been considered and documented.
  • Code does not introduce new technical debt or issues.

@teebszet teebszet requested a review from victorkirov November 26, 2023 09:49
@@ -125,7 +129,7 @@ export type SignPsbtResponseMessage = Message<
ExternalSatsMethods.signPsbtResponse,
{
signPsbtRequest: string;
signPsbtResponse: SignPsbtResponse | string;
signPsbtResponse: SignTransactionResponse | string;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +260 to +262
if (!importedBtcAccounts) {
throw new Error('No accounts');
}
Copy link
Member Author

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

Comment on lines +2 to +4
import { describe, expect, test } from 'vitest';
import { Side } from './types';
import { selectedTokenReducer } from './useSwap';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

victorkirov
victorkirov previously approved these changes Nov 27, 2023
Copy link
Member

@victorkirov victorkirov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 🎉 🚀 💪
Thank youuuu!!!!! 😄

Copy link

@DuskaT021
Copy link
Contributor

@teebszet tested can be merged

@teebszet teebszet merged commit cf80125 into develop Nov 29, 2023
2 checks passed
@teebszet teebszet deleted the chore/run-on-ci-tsc-and-tests branch November 29, 2023 09:02
@teebszet teebszet changed the title chore: run on ci type checking and unit tests [ENG-3327] chore: run on ci type checking and unit tests Nov 30, 2023
teebszet pushed a commit that referenced this pull request Jan 9, 2025
* [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants