Commit Graph

473 Commits

Author SHA1 Message Date
tomFlowee 25ad80f924 Rename import of the widgets subdir to 'Flowee'
This feels like a more logical namespace name.
2021-11-02 19:32:13 +01:00
tomFlowee 1d5dd49870 Clarify globals in QML.
Now the global namespace (not instance) is "Bitcoin".
The application instance now is "Pay".
2021-11-02 19:29:14 +01:00
tomFlowee 8cb00c225d Improve light theme colors. 2021-11-02 19:13:14 +01:00
tomFlowee e247e0a4be Consistency; use Wallet in the GUI 2021-11-02 17:18:32 +01:00
tomFlowee 10432c3296 Fix the model sometimes skipping all entries.
This specifically happened with some configurations involving single-
address wallets.
2021-11-02 14:54:59 +01:00
tomFlowee cfcbdede36 Add wallet-upgrade (version 1 -> version 2)
We introduced for secret keys the signature-type field, which is required
to avoid signing with one key as both Schnorr and ecdsa as
that can cause leakage making recovering the private key much easier.

So, we now store this data but old wallets didn't fetch that from
the incoming transactions. So this conversion fetches the data from the
transactions (which are on the device) and stores the sigtype with the
keys.
2021-11-02 14:54:59 +01:00
tomFlowee 58ab366558 Defensive programming. 2021-11-02 14:08:50 +01:00
tomFlowee d1bc5bf856 UX; make UI leading over models here.
Each account has its own booleans for the model filter, but that makes no
sense in the UX as the checkbox changes as the user switches account.
Instead, copy the UI checkbox value to the new model we get.
2021-11-02 11:41:55 +01:00
tomFlowee 27feaef5c4 Follow upstream refactor 2021-11-02 11:09:56 +01:00
tomFlowee 88c4b96121 UX tweaks
Do not show sliders for accounts that don't have the features they
change.
Also simplify the seed textarea to just the plain QQC2 widget.
2021-11-01 18:51:10 +01:00
tomFlowee a2920fb235 Fix reserveUnusedAddress()
this now makes sure we give the firs plausible address.
2021-11-01 18:27:03 +01:00
tomFlowee c20f97c510 Support 'startHeight' for all imported wallettypes. 2021-11-01 17:58:11 +01:00
tomFlowee 6c720feb60 Default to 12 word seeds. 2021-11-01 17:57:11 +01:00
tomFlowee 421f48e61e Mark transactions just coming in as 'new'. 2021-11-01 16:52:41 +01:00
tomFlowee 908a99ab05 Fix logic issue. 2021-11-01 16:33:53 +01:00
tomFlowee 5a245c8b17 Mark "spam" transactions as locked. 2021-11-01 16:33:53 +01:00
tomFlowee 7414176157 Fix typo 2021-11-01 14:14:41 +01:00
tomFlowee e39c8233d6 Fix returning a bad value sometimes. 2021-11-01 14:14:00 +01:00
tomFlowee 3696499d9f Split HD key managent into created and bloom-asked
The bloom filter didn't include all created keys and thus we didn't send
the bloom in some cases.

Now we keep track of exactly which keys were sent and we re-send a bloom
filter if half of those have been used in order to not miss out on any
transactions.
2021-11-01 13:33:33 +01:00
tomFlowee 5061040d8b Fix small logic error. 2021-11-01 11:20:40 +01:00
tomFlowee 35bd66297d Find in the transactions the signature type used.
As transactions are found on the blockchain we remember the signature
type used in order to avoid one private key to be used for both types of
signatures, which can cause compromised keys.
2021-10-31 16:56:03 +01:00
tomFlowee 32d2142ab0 Show dates nicer
This adds the feature that we show a "last receive" field on a wallet,
and we also change the date format to have "yesterday" style dates
for recent ones.
2021-10-31 15:30:38 +01:00
tomFlowee 73d17beef0 Improve feedback while typing a seed.
Now we instantly highlight when a word is not recognized.
2021-10-31 13:46:47 +01:00
tomFlowee 4fa17b38d9 Move ScrollThumb.qml to its own file. 2021-10-30 23:33:48 +02:00
tomFlowee 295683f9c6 Version two of the scrollbar-thumb
this keeps the visual part in the viewport.
2021-10-30 21:38:57 +02:00
tomFlowee 22f4cc43af Make prepared sending more clear.
On send we require a 'prepare' button press. This is specific to a
portfolio and so when we switch portfolio we now make more clear that
the data is not valid by making it less visible.
2021-10-30 19:26:36 +02:00
tomFlowee d75e591f58 [UX] add thumb feature to scrollbar. 2021-10-30 18:57:40 +02:00
tomFlowee 88db123083 [UX] add scrollbars 2021-10-30 16:39:35 +02:00
tomFlowee db1da89ba3 Fix cursor shape for button-style items. 2021-10-30 16:29:48 +02:00
tomFlowee 6f2c41b26c Add close button on 'new wallet' screen. 2021-10-30 16:17:02 +02:00
tomFlowee 25e7f61c65 Add 'backup' details.
This allows the user to find her seed phrase for HD wallets.
2021-10-30 16:12:41 +02:00
tomFlowee d50b0c169c Make wallet details pane more complete. 2021-10-30 15:23:43 +02:00
tomFlowee 6057d589b1 Working on a new AccountDetails view. 2021-10-29 18:20:42 +02:00
tomFlowee d005a2cd7e Refactor; move code. 2021-10-29 12:48:12 +02:00
tomFlowee d9af22db21 [Minor refactor] move some code. 2021-10-29 12:42:31 +02:00
tomFlowee a1f77f792a UX fixes after user-testing session. 2021-10-28 17:40:10 +02:00
tomFlowee 98431b6e17 Add and install bip39-english 2021-10-28 14:51:12 +02:00
tomFlowee 967a9c0231 Fix i18n building.
Separate updating ts files and creating qm files out of them.

This solves the annoyance that any change in the QML files generates
changes in our source-tree.
Updating the translations now requires calling an explicit `make i18n`
2021-10-28 14:40:39 +02:00
tomFlowee b63ba4e9b0 Make test more stable. 2021-10-27 19:44:19 +02:00
tomFlowee ef04acd887 Make selection smarter.
Don't just select the "First" prio, but simply find the highest prio
which means we also prefer a "normal" prio wallet over a fallback one.
2021-10-27 19:11:00 +02:00
tomFlowee 3b492ef804 When creating a new wallet, maybe reuse the hidden one 2021-10-27 19:11:00 +02:00
tomFlowee 0bddfb3676 Minor fix 2021-10-27 19:11:00 +02:00
tomFlowee 651d9dbe5f Fix privacy leakage for HD wallets.
We used to send too many Change-chain keys in the bloom filter, this fixes
that.
2021-10-27 19:11:00 +02:00
tomFlowee 806f99ff0f Better warnings when Price fetch didn't work
And also re-fetch them after just 1 minute in case of such an error.
2021-10-27 19:11:00 +02:00
tomFlowee 181d554ca6 Fix paste in bitcoin-value field. 2021-10-27 19:11:00 +02:00
tomFlowee 80d7456898 Make new-wallet pane functional.
This changes the default generated wallet to be a HD wallet.
We also add a helper class to configure newly created wallets from QML.
This finishes up the new wallet panel to have all the visible features
actually do something.
2021-10-27 19:11:00 +02:00
tomFlowee 0d837007e3 UX; show clearer what "on" means.
The checkbox we use is a slider-button, to increase usability we now
make the background indicate that the slider is On, so people have extra
visual indicators to match "right equals enabled".
2021-10-27 19:11:00 +02:00
tomFlowee 214892bcc6 Add a button to show the wallet-details
This is only needed if we have exactly one wallet, otherwise the
wallet-selector can be used to reach this screen.
2021-10-27 19:11:00 +02:00
tomFlowee b8ab0a16d9 Fix details pane cutting off menu-buttons
Seems like an auto-complete gone wrong.
2021-10-25 16:22:24 +02:00
tomFlowee 38209adadd Fix visual artifact offset
This aligns the hamburger properly vertically.
2021-10-25 16:21:26 +02:00