Commit Graph

1457 Commits

Author SHA1 Message Date
tomFlowee fe6e1020d2 Remove overdesign of menu model
The model had much more functionality we'd ever use in the UI, it turns
out it was over designed.
Remove the unneeded complexity and just have one simple list.
2023-07-03 12:22:14 +02:00
tomFlowee 6f8369e4ff [UX] Take preedit text into account.
For instant validation and similar, use the preedit text into account to
work around the silly design in Qt where the normal is made difficult.
2023-06-30 23:39:45 +02:00
tomFlowee 049d735a53 Add decrypt of PinToPay wallet in mobile
this also changes the API propertes that handle encryption details a
little. Making them faster and the meaning follows the logical
conclusion of the naming better.

Specifically:

when needsPinToOpen would return true, now needsPinToPay will also
always return true.
2023-06-30 23:18:31 +02:00
tomFlowee 3974dc4b56 Hide fully encrypted wallets from payment flow
When the user is trying to create a transaction we start with the
currently selected wallet. The user is able to change to another wallet
in such flows, but we stop them from seeing
the fully encrypted wallet as the workflow would just become too tedius
and confusing.
2023-06-28 19:23:47 +02:00
tomFlowee 983fb28c9f Add support for the 'countBalance' setting
Now the mobile skin can also enable the per-wallet 'count-balance' bool.
If set to false it makes the balances of the wallet no longer be visible
or indeed counted in the overview. Specifically the AccountSelectorPopup
2023-06-28 11:33:08 +02:00
tomFlowee 5878f8a6b7 Updates to the AccountSelector
* Add a total balance label at the bottom if we have more than one
wallet.
* Add lock icons for encrypted or even partially encrypted wallets
* Add label to indicate an encrypted wallet needs opening before it can
be used.
* Fix spacing in case of larger fonts.
2023-06-28 11:22:03 +02:00
tomFlowee 8db23ba624 Provide a screen to unlock encrypted wallets.
This detects that the currently selected wallet is fully encryted and if
it is, it shows a password request page on top of the current screen.
The default setup aims to have people type a PIN in numbers to unlock
the wallet, but we also provide a way to make it use a textual password
instead.
2023-06-27 20:39:11 +02:00
tomFlowee eb5f95a1a8 support the button being disabled. 2023-06-27 13:17:55 +02:00
tomFlowee 2c58979232 Make the button not the way to stop editing.
When the user starts editing the text label, the way out is to use the
(virtual) keyboards 'enter' or 'done' button.

We mark this button as disabled while editing to avoid weird situation.

This also works around the application completely hanging in Qt651 on
the phone. Hanging as in: Android suggests it to be killed.
2023-06-26 22:32:34 +02:00
tomFlowee 167c3a9b45 Move to Qt 6.5.1
This updates us from the 6.4.3 Qt release to default building on
Qt 6.5.1 in our build helper and natrally the docker file.
2023-06-26 22:32:34 +02:00
tomFlowee 7f8ad5aedd Port to new QPermissions system
This now uses the new Qt APIs for requesting camera permissions
on supported platforms (Adnroid and iOS).

There are still several ifdefs and the older code is still there,
lets leave that for some releases, because why not.
2023-06-23 15:50:19 +02:00
tomFlowee 5634f2ba2b Move modules status to the end
Make the module messages appear below the "configuration results"
section by moving the messages to the end of the CMakeLists file
2023-06-23 12:48:22 +02:00
tomFlowee a0fc2d1448 Remove unused code
The Qt.platform property has been good enough.
2023-06-23 10:42:06 +02:00
tomFlowee ce60a3695d Make comment in line with new reality
Last week I changed the SPV action to never stop, this comment was still
refering to the reality before that.
2023-06-23 10:39:32 +02:00
tomFlowee 13e63fa86b Make the QR not move upon opening the popup menu 2023-06-23 10:35:35 +02:00
tomFlowee 01ccb87686 Properly display much larger prices.
Handle fiat prices as a long
2023-06-23 10:35:35 +02:00
tomFlowee 7e375f50b5 Bugfix how we handle numbers from user input
This is a long overdue cleanup around the ideas of entering
numbers in Flowee Pay.

The core dataclass BitcoinValue now keeps track where the number
came from, either user input or some calculation. This allows
us to have the Fiat and the Coin price stay in sync without weird
problems.
The one we type uses a string, the price field that we are not typing in
is then a slave and we follow the auto-generated number as the
source.

This solves a host of known issues:

* Editing of value objects is much more consistnnt and predictable now.
* Switching to a different fiat type now properly re-calculates the
  values that are slaved. So if the primary is a BCH value then the fiat
  value gets the new exhange rate instantly applied.
* Switching to a different fiat type properly applies having a separator
  So if you go from euro to Japanese yen, we now remove the separator
  and the numbers behind it.
* Changing the app setting from BCH to mBCH now properly updates all
  amounts. Notice that the user-typed string wins, if you typed 2 and
  then change to mBCH we assume you wanted 2, not 2000.
* Paste now works more logcally.
* Cursor is no longer sometimes invisible, requiring backspace to make
  it show up.

And last we now protect against too large numbers. It is seen as an
error to type a number above 21 million BCH.

Fixes #19
2023-06-23 10:35:35 +02:00
tomFlowee b5b9bac043 Rename some variables to make linter happy
Avoid using the same variable name as one already defined in a wider
scope, this improves readability of code.
2023-06-21 15:19:51 +02:00
tomFlowee b78ecfb86f Avoid crashing on missing data 2023-06-20 20:27:21 +02:00
tomFlowee 7398dd21ac Update to the latest android 2023-06-20 20:27:21 +02:00
tomFlowee cf59f2f06a Make CHF as a currency work for input
As the name is so much wider the widget didn't work well, this
makes the name not overlap.

Additionally, added a space beteween the currency name and
the numbers.
2023-06-20 20:27:21 +02:00
tomFlowee 901b3b5a89 Add flickable around the import page.
Reports show that the button at the bottom may fall out the screen for
some people's settings.
2023-06-20 20:27:21 +02:00
tomFlowee 8f18df35b0 Add comment 2023-06-19 13:34:01 +02:00
tomFlowee fd70f18c06 Port saving code to std lib
The various places we save files used different libraries to do that
work. This commit lets all use the same std lib methods consistently.
2023-06-18 17:43:26 +02:00
tomFlowee 573f316f51 Revert the inverting of the QR
Seems that some phones are not happy with this and simply fail to scan
the QR after this.

Functionality wins over pretty-ness.
2023.06.1
2023-06-18 17:43:26 +02:00
tomFlowee a6bf542108 Revive the QR-only image after it got updated
Not all usages of the old 'QR' image were about scanning, so the
added photo frame ended up causing a UX regression for those
that were used to indicate showing a QR.

Instead we now have 2 icons (at 4kb ascii text each, thats literally
not a big deal) to acoid this confusion.
2023-06-17 16:20:32 +02:00
tomFlowee c4e64a1114 remove unused class 2023-06-15 20:28:23 +02:00
tomFlowee 779c245f5b Import translations from crowdin 2023-06-15 20:02:35 +02:00
tomFlowee a9b2d3a975 new release version 6.1 2023-06-15 19:23:48 +02:00
tomFlowee a1e56528f9 new feature: turn on torch on QR scan
We now show a button to turn on the from the QR scanning page.
2023-06-15 19:21:03 +02:00
tomFlowee e033c49f0c Move ZXing dep from all using apps to just the lib. 2023-06-15 17:59:54 +02:00
tomFlowee 174c5f127f Deal a little better with crappy camera firmware. 2023-06-15 17:48:47 +02:00
tomFlowee 1377c01531 Slight alignment fixlet. 2023-06-15 15:59:07 +02:00
tomFlowee bdad39848b Make MultilineTextField usable for code setting text
This stops the widget being confused with regards to the placeholder
text when the main text is set by code instead of by user input.
2023-06-15 15:58:51 +02:00
tomFlowee d94f1faae2 Work on QR scanning
This removes the dependency on the QrEncode lib and uses
the fact that our scanning lib also is capable of making QRs.

We now allow the QR to get its color inverted for dark mode
users, making it less bright to show a QR.

This introduces a new QR-creation mode which allows spaces and
other chars to be in there directly without being URL-encoded.

This improves the QR showing of the user's seed-phrase (in the
backup screen).
This adds the ability to scan a seed phrase with your camera by
adding a button to the wallet import page.
This also adds support for the QR format that the bitcoin com
wallet uses in its QR for seed phrases.
2023-06-15 14:58:44 +02:00
tomFlowee 7be3f7bd26 Remove stray rotate property. 2023-06-14 23:10:13 +02:00
tomFlowee 44379f2650 Defensive programming.
Don't assume the module exist on loading its config.
2023-06-14 23:10:13 +02:00
tomFlowee d30381eb7d Copy the payment-request-comment to wallet-tx
When the user typed a request message, make sure that the message is
attached to the transaction that comes in which pays the request.
2023-06-14 22:53:51 +02:00
tomFlowee 9dcd608e69 Style the Flowee button.
The buttons on Android are somehow atrocious, lets style it ourselves
for consistency and actually being able to see the disabled button.
2023-06-14 22:53:51 +02:00
tomFlowee 98e193f4ca Copy the userComment here for user-editing
When the payment protocol provides a comment,
lets copy it for the user to see and maybe edit.
2023-06-14 22:53:51 +02:00
tomFlowee da864543c0 UX; pressing 'continue' on receive goes home now 2023-06-14 22:53:51 +02:00
tomFlowee 92b3b260c3 Disable clearing if there is nothing to clear. 2023-06-14 16:20:42 +02:00
tomFlowee 5c1952c267 Update translation units 2023-06-13 21:30:38 +02:00
tomFlowee 2f51d08bde Improve payment-from-clipboard
If no full address is found in the clipboard, use the chain prefix to
validate the address and use that instead.
2023-06-13 20:50:29 +02:00
tomFlowee 030380dd44 KISS 2023-06-13 19:00:08 +02:00
tomFlowee 89ff36c311 Make the ExploreModules QML prettier
This includes a self-drawn SVG of a ribbon, configurable text on top and
just a simple checkbox to recognize that at this time there is only one
category-type. KISS.
2023-06-13 18:15:52 +02:00
tomFlowee 8d4b4ea7ca Persist user choice of which module is enabled
Code the load/save methods for storing module enabled-ness
2023-06-13 18:15:48 +02:00
tomFlowee 5a8d22c05e Docs. 2023-06-13 18:15:19 +02:00
tomFlowee 8cef14fd80 Remove dead code 2023-06-13 15:59:37 +02:00
tomFlowee 58614e17a6 Add a module explorer page in mobile view.
This allows discovering of the modules and enabling / disabling them.
2023-06-13 15:59:37 +02:00