* ui: harmonize modal button colors
* refactor: ConfirmModal from jsx to tsx
also use 'children' child node instead of 'body' property
* ui: remove border of buttons in footer of ConfirmModal
* Revert "ui: harmonize modal button colors"
This reverts commit c40b53007e.
* Revert "ui: remove border of buttons in footer of ConfirmModal"
This reverts commit 8ddd95eaf2.
* refactor: move lock/unlock wallet api calls from child component to parent
Wallet component should not make api calls; moved one level higher to Wallets component
* refactor: control Wallet component appearance from parent
* fix: prevent state update on an unmounted component on Settings page
* test: move lock/unlock wallet tests from Wallet.test to Wallets.test
* fix: disable 'create wallet' link when unlocking wallet
* refactor: move lock/unlock wallet api calls from child component to parent
* refactor: control Wallet component appearance from parent
* fix: prevent state update on an unmounted component on Settings page
* feat(jars): display jar selector on receive screen
* ui: show placeholder while balance is loading
* refactor: rename 'account' to 'selectedJarIndex'
* Update src/components/Receive.jsx
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* Update src/components/Receive.module.css
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* Update src/components/Receive.module.css
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* build: format code
* review: show jar selector in normal mode
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* dev: add simple fidelity bond screen in advanced mode
* dev: add link to fidelity form page in CurrentWalletAdvanced
* dev: fix build errors and remove 'as' tag of translation elements
* refactor: move FidelityBondAdvanced component to own file
* ui: highlight expiry date of fidelity bond address
* dev: display Fidelity Bond create form regardless if FBs already exist
* dev: avoid flickering when loading new fb address
* fix: rename Locktime to Lockdate
* dev: add translation strings to section 'global'
* wip: FidelityBondSimple
* review: distinct simple and dev mode Fidelity Bond screens
* review: fix dev FB view in dark mode
* refactor: rename FidelityBondAdvanced to FidelityBondDevOnly
* dev: add link to default view to FidelityBondDevOnly
* dev: sort utxo by value
* dev: reset user confirmation on data change
* dev: create fidelity bond with collaborative transaction WIP
* dev: wait for collaborative transaction to finish
* dev: unfreeze utxos after creating sweep tx
* review: render whitespace only when necessary in FB alert
* review: do not provide time related values to Date.UTC for FB
* Update src/components/FidelityBondDevOnly.tsx
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* review: do not duplicate 'initialLockdate' values
* dev: allow lockdates in the past in dev mode
* dev: display percentage of utxo to total value in account
* dev: style percentage bar
* dev: display percentage bar in account selector
* dev: i18n for 'time elapsed' phrase
* dev: externalize components UtxoSelector and UtxoCheckbox
* dev: externalize components AccountSelector and AccountCheckbox
* dev: externalize LockdateForm
* dev: externalize FidelityBondDetailsSetupForm
* dev: display all accounts by default in FB form
* refactor: remove unused vars and imports
* dev: fix comments and add todos
* dev: minimal i18n for FB form
* ui: remove account/utxo checkbox overlay
* dev: add checkbox-card component
* dev: show unit of funds according to settings in FB form
* dev: allow already expired lockdates in dev mode
* dev: use minimum makers to create fb
* refactor: combine FidelityBond and FidelityBondSimple
* dev: undo coin control setup on errors
* dev: perform coin control actions sequentially
* dev: use direct-send when renewing an expired fidelity bond
* review: improve code readability
* review: do not return value from function 'sweepToFidelityBond'
* dev: log timelocked address to console in dev mode
* review: remove FidelityBondDevOnly component
* review: use dropdowns in lockdate form
* Update src/components/FidelityBond.tsx
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* dev: add debug feature 'allowCreatingExpiredFidelityBond'
* review: fix var naming
* review: fix comment
* Update src/components/FidelityBond.tsx
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* Update src/components/FidelityBond.tsx
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* dev: unfreeze sequentially after fidelity bond tx was created
* review: remove ability to select multiple jars
* review: add tests for fb utils
* review: remove coin control
* review: reflect missing coin control in account checkbox
* review: remove time elapsed string from fb summary
* dev: add taker started alert to FB screen
* dev: reset lockdate form if date is invalid
* dev: reload after taker operation
* dev: add calculated total balance to useBalanceSummary hook
* dev: handle expired timelocked funds in useBalanceSummary hook
* dev: use isLocked to detect if freeze/unfreeze is enabled
* dev: fix build
* refactor: proper var names
* dev: show success msg only if fb has been created successfully
* dev: do not wait for collaborative tx to finish
* dev: direct-send if renewing FB
* dev: utilize 'isLocked' in CurrentWalletAdvanced and Jam view
* dev: link to FB view in Cheatsheet
* dev: utilize 'calculatedTotalBalanceInSats' where possible
* Update src/components/FidelityBond.tsx
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* review: adapt error handling style on FB sweep tx
sorry @dnlggr for letting this slip in _again_
* review: always show all accounts in FB form
* review: initial lockdate should be 3 month from now
* review: move YearsRange and initialLockdate to fb_utils
* review: display month names
* review: wrap rows in container
* review: remove unnecessary comment
* review: left-align confirmation toggle in FB form
* review: turn accountBalances from array to object
* Update src/i18n/locales/en/translation.json
Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
* Update src/components/FidelityBond.tsx
Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
* review: remove initializing flag
* review: show timelocked address in confirmation step
* test: add test for LockdateForm component
* test: add test for _minMonth
* test: add test for _selectableYears
* test: add test for _selectableMonths
* ui: fix table in light theme
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
* refactor: DisplayBranch from jsx to tsx
* ui: improve DisplayAccountsOverlay on mobile screens
* ui: show derivation path below branch title
* ui: abbreviate hd path in DisplayBranch component
* ui: add copy functionality to DisplayBranch
* ui: branches as accordion in DisplayAccountsOverlay
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* fix: align text in buttons on Settings screen
* fix: buttons and dropdowns should have same look and feel
* ui: add section titles 'Wallet' and 'Community' to settings page
* fix: open link to translation help page in new tab
* ui: add plus symbol to 'Create new wallet' button
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* ui: show config options on Earn screen only in advanced mode
* refactor: externalize AdvancedModeToggleButton component to own file
* refactor: ToggleSwitch from jsx to tsx
* refactor: pass api result down the promise chain on Earn page
* ui: center offertype toggle switch on Earn page
* ui: ability to add an 'off' label and subtitle to ToggleSwitch
* ui: add label to off state of offertype toggle switch on Earn page
* ui: add individual 'simple/advanced view' toggle to Earn screen
* ui: add prefix to inputs on Earn page
* fix: do not populate fee rel with zero when no input is given
* refactor: move styles for Earn page from global to module file
* Revert "ui: ability to add an 'off' label and subtitle to ToggleSwitch"
This reverts commit 04edc2914e.
* Revert "ui: add label to off state of offertype toggle switch on Earn page"
This reverts commit 3142131e47.
* Revert "ui: add individual 'simple/advanced view' toggle to Earn screen"
This reverts commit 0f850f3e28.
* Revert "refactor: externalize AdvancedModeToggleButton component to own file"
This reverts commit 6bf5445265.
* dev: move styles for Receive screen to module
* review: replace toggle with 'advanced' form dropdown in Earn screen
* review: add RadioTabs component
* review: use RadioTabs for offertype on Earn screen
* fix: title in RadioTab
* feedback: style updates
* feedback: rename control element
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
* fix: initial loading flag in Send page correctly
* refactor: infer loading state on Send page from initializing and waiting flags
* ui: always blur send page if service is running