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

Feat: amount input currency #1083

Merged
merged 32 commits into from
Sep 27, 2023
Merged

Feat: amount input currency #1083

merged 32 commits into from
Sep 27, 2023

Conversation

egor0798
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

Current coverage report

Summary

Lines Statements Branches Functions
Covered: 87%
86.29% (422/489) 37.87% (25/66) 76.71% (56/73)

Tests which was executed

Tests Skipped Failures Errors Time
261 0 💤 0 ❌ 0 🔥 3m 29s ⏱️
Coverage by files (87%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files86.2937.8776.7187.47 
app/providers/routes87.5100100100 
   paths.ts100100100100 
   routesConfig.tsx83.33100100100 
entities/asset/ui/AssetIcon100100100100 
   AssetIcon.tsx100100100100 
entities/price83.33100100100 
   index.ts83.33100100100 
entities/price/lib66.66255064.28 
   constants.ts100100100100 
   types.ts100100100100 
   useCurrencyRate.ts300037.56–12
entities/price/model100100100100 
   currency-model.ts100100100100 
   price-provider-model.ts100100100100 
features/currency50100100100 
   index.ts50100100100 
features/currency/CurrencyForm50100100100 
   index.ts50100100100 
features/currency/CurrencyForm/model96.2910090.995.65 
   currency-form.ts96.2910090.995.6514
features/currency/CurrencyForm/ui36.36100040 
   CurrencyForm.tsx36.3610004019–77
pages/Settings100100100100 
   index.ts100100100100 
pages/Settings/Currency71.42100066.66 
   Currency.tsx71.42100066.667–9
pages/Settings/Overview/components/GeneralActions100100100100 
   GeneralActions.tsx100100100100 
shared/api/local-storage100100100100 
   index.ts100100100100 
shared/api/local-storage/service81.8166.6610077.77 
   localStorageService.ts81.8166.6610077.7714–16
shared/api/price-provider100100100100 
   index.ts100100100100 
shared/api/price-provider/common100100100100 
   constants.ts100100100100 
   utils.ts100100100100 
shared/api/price-provider/service100100100100 
   coingeckoService.ts100100100100 
   fiatService.ts100100100100 
shared/core100100100100 
   index.ts100100100100 
shared/core/model100100100100 
   kernel-model.ts100100100100 
shared/ui90.3210010090.32 
   index.ts90.3210010090.3263, 69, 77–78, 87, 89, 101, 105, 111
shared/ui/Icon/data100100100100 
   arrow.tsx100100100100 
   functionals.tsx100100100100 
shared/ui/Inputs/AmountInput36.660039.28 
   AmountInput.tsx36.660039.2838–64
shared/ui/Modals/BaseModal83.3310033.3381.81 
   BaseModal.tsx83.3310033.3381.8136–63
widgets100100100100 
   index.ts100100100100 
widgets/CurrencyModal50100100100 
   index.ts50100100100 
widgets/CurrencyModal/ui50100054.54 
   CurrencyModal.tsx50100054.5412–18

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

Jest Unit tests results

Generic badge

Duration: 221.039 seconds
Start: 2023-09-26 10:17:31.512 UTC
Finish: 2023-09-26 10:21:12.551 UTC
Duration: 221.039 seconds
Outcome: Passed | Total Tests: 358 | Passed: 358 | Failed: 0
Total Test Suites: 145
Total Tests: 358
Failed Test Suites: 0
Failed Tests: 0
Passed Test Suites: 145
Passed Tests: 358

@egor0798 egor0798 marked this pull request as ready for review September 22, 2023 15:06
@Asmadek Asmadek changed the base branch from feat/fiat_values to feat/currency-settings September 26, 2023 07:06
fix: correct input for priceless asset
Base automatically changed from feat/currency-settings to feat/fiat_values September 26, 2023 09:16
@egor0798 egor0798 merged commit a8d5f3b into feat/fiat_values Sep 27, 2023
4 checks passed
egor0798 added a commit that referenced this pull request Sep 29, 2023
* Feat: Price provider model (#1084)

* Feat: Currency settings (#1076)

* Feat: fiat balance assets and staking (#1087)

* Feat: amount input currency (#1083)

* feat: currency select modal

* chore: added icon for currency

* feat: added currency mode to amount input

* feat: price provider model

* feat: load assets prices

* chore: code style, export events

* feat: integrated currency modal to currenc settings

* chore: updated crouped select semantics

* chore: fixed General Action test

* chore: fixed grouped select active state

* feat: tests for models, review fixes

* chore: fixed pr comments

* chore: added currency form model

* fix: fixed modal reload after submit

* feat: [wip] amount input currency integration

* chore: removed button disabled condition

* feat: amount input with currency integration

* fix: tests

* feat: form model, test

* chore: removed GroupedSelect

* fix: ui
fix: correct input for priceless asset

* fix: revert commented code

---------

Co-authored-by: Egor B <[email protected]>
Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: asmadek <[email protected]>

* feat: added fiat amount for transfer and multisig operations

* feat: added fiat values to staking operations

---------

Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: Aleksandr Makhnev <[email protected]>
Co-authored-by: Egor B <[email protected]>
stepanLav added a commit that referenced this pull request Oct 3, 2023
* Feat: Price provider model (#1084)

* Feat: Currency settings (#1076)

* Feat: fiat balance assets and staking (#1087)

* Feat: amount input currency (#1083)

* feat: currency select modal

* chore: added icon for currency

* feat: added currency mode to amount input

* feat: price provider model

* feat: load assets prices

* chore: code style, export events

* feat: integrated currency modal to currenc settings

* chore: updated crouped select semantics

* chore: fixed General Action test

* chore: fixed grouped select active state

* feat: tests for models, review fixes

* chore: fixed pr comments

* chore: added currency form model

* fix: fixed modal reload after submit

* feat: [wip] amount input currency integration

* chore: removed button disabled condition

* feat: amount input with currency integration

* fix: tests

* feat: form model, test

* chore: removed GroupedSelect

* fix: ui
fix: correct input for priceless asset

* fix: revert commented code

---------

Co-authored-by: Egor B <[email protected]>
Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: asmadek <[email protected]>

* Feat: wallet fiat balance balance (#1099)

* Feat: Operations parameters fiat amount (#1098)

* Feat: Price provider model (#1084)

* Feat: Currency settings (#1076)

* Feat: fiat balance assets and staking (#1087)

* Feat: amount input currency (#1083)

* feat: currency select modal

* chore: added icon for currency

* feat: added currency mode to amount input

* feat: price provider model

* feat: load assets prices

* chore: code style, export events

* feat: integrated currency modal to currenc settings

* chore: updated crouped select semantics

* chore: fixed General Action test

* chore: fixed grouped select active state

* feat: tests for models, review fixes

* chore: fixed pr comments

* chore: added currency form model

* fix: fixed modal reload after submit

* feat: [wip] amount input currency integration

* chore: removed button disabled condition

* feat: amount input with currency integration

* fix: tests

* feat: form model, test

* chore: removed GroupedSelect

* fix: ui
fix: correct input for priceless asset

* fix: revert commented code

---------

Co-authored-by: Egor B <[email protected]>
Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: asmadek <[email protected]>

* feat: added fiat amount for transfer and multisig operations

* feat: added fiat values to staking operations

---------

Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: Aleksandr Makhnev <[email protected]>
Co-authored-by: Egor B <[email protected]>

* Feat: Fiat update rules (#1096)

* feat: fiat update rules

* chore: added test

* Update src/renderer/entities/price/model/__tests__/price-provider-model.test.ts

Co-authored-by: Yaroslav Grachev <[email protected]>

* chore: updated price proveder test

* chore: improved priceProvider test

---------

Co-authored-by: Egor B <[email protected]>
Co-authored-by: Yaroslav Grachev <[email protected]>

* Feat/adding dev build (#1103)

* Feat: Transaction service refactoring (#1053)

* feat: added new transaction service, extrinsic builder and changed transfer florw

* feat: removed extra components, changed get fee func

* fix: wrap tx for submit step only if account is multisig

* feat: implemented new service usage for staking transactions

* fix: fix build tx error

* chore: fixed tests, removed extrinsic service from public api

* fix: signatory error fix

* chore: renamed wrappers

* chore: renamed operation footer prop and make it optional

* Update src/renderer/entities/transaction/lib/extrinsicService.ts

Co-authored-by: Yaroslav Grachev <[email protected]>

* Update src/renderer/entities/multisig/lib/multisigTx/common/utils.ts

Co-authored-by: Yaroslav Grachev <[email protected]>

* chore: fixed pr comments

* chore: fixed linter error

* chore: removed extra props from transfer form

* chore: fix lockfile

* chore: fixed confirmation test

* fix: fixed xcm transfer fee error

* fix: fixed amount error

* chore: fixed invalid character error

---------

Co-authored-by: Egor B <[email protected]>
Co-authored-by: Yaroslav Grachev <[email protected]>

* feat: add stage build

* fix: remove config separation

* fix: change triggers

* fix: github triggers

* fix: change approach to url management

* fix: change trigger and github command

* fix: add separate webpack for internal build

* fix: eslinter

* fix: typo in yamls

* Update src/main/factories/create.ts

Co-authored-by: Aleksandr Makhnev <[email protected]>

---------

Co-authored-by: egor0798 <[email protected]>
Co-authored-by: Egor B <[email protected]>
Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: Aleksandr Makhnev <[email protected]>

* Fix: Currency form value reset on close (#1107)

* fix: added form reset on close

* feat: added disabled condition for save button

* chore: fixed pr comments

---------

Co-authored-by: Egor B <[email protected]>

* fix: changed default fiat flag value to true (#1106)

Co-authored-by: Egor B <[email protected]>

* fix: wallet balance assets undefined fix (#1108)

Co-authored-by: Egor B <[email protected]>

* Fix: zero balance errors fix (#1109)

* fix: network zero balances possible fix

* fix: wallet 0 balance fix, asset display 0 fix

* fix: wallet zero balance fix

* fix: network zero balance fix

---------

Co-authored-by: Egor B <[email protected]>

* fix: removed second shimmer from assets if fiat flag is false (#1110)

Co-authored-by: Egor B <[email protected]>

---------

Co-authored-by: Yaroslav Grachev <[email protected]>
Co-authored-by: egor0798 <[email protected]>
Co-authored-by: Aleksandr Makhnev <[email protected]>
Co-authored-by: Egor B <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants