Commit Graph

1388 Commits

Author SHA1 Message Date
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
tomFlowee c25adfffa0 After an API review.
This simplyfies things and ensures the translations are loaded before
any possible tr() calls.
2023-06-13 15:59:37 +02:00
tomFlowee 42d3c2e96b Make the build-transactions module function
This moves the last of the assets to the module and provides the base
requirements to actually make the featue function from a module.
2023-06-13 15:59:37 +02:00
tomFlowee a73e004998 Move QML and introduce i18n concept for modules 2023-06-13 15:59:37 +02:00
tomFlowee 1220a3839c Start a setup for modules.
This sets up a basic system for creating modules on top of the flowee
pay static lib in a way that is ensured to be isolated (modules can't
accidentally use each other's classes)

The setup is made such that the buildsystem does the hard work on
plugging in a new module, making it so that all you need to do is create
a new dir and a "{something}ModuleInfo.h" file and it will get compiled
in.
The point there is to make it not have any merge conflicts and just make
it dead easy to get started.
2023-06-13 15:59:37 +02:00
tomFlowee 717eafcb1e remove commented out code 2023-06-11 18:20:23 +02:00
tomFlowee f904e5d413 Make the scanner overlay eat mouse events.
This stops clicks from acting on the underlying UI.
2023-06-11 18:10:39 +02:00
tomFlowee 973fc94950 when paste is used turn instaPay off
clipboards based addresses are a lot less secure, physically, than
scanning a QR.
So the user really should validate the payment and thus we turn off
instaPay in those cases.
2023-06-11 18:10:06 +02:00
tomFlowee 94f52e0c7f Add feature; paste address.
Allow users that start by 'pay' to fulfill the payment also using
clipboard instead by providing a 'paste' button on the scanning screen.
2023-06-11 17:58:27 +02:00
tomFlowee ecc5d03975 UX improvements to prioritize normal usage.
When looking at the real usage of flowee pay, we aim for this
to be used 90% (or more) of the time as a better wallet. Wallet
in the physical sense.

This implies that the vast majority of usage is going to be about
paying or receiving.
A small number of times you'll use it to look up the history of
payments.

As such, its Ok to downgrade the account history and make the main
usage more prominent and easy to find.
2023-06-10 22:41:53 +02:00
tomFlowee efa39e0337 Improve QRcode images based on feedback from A@ron 2023-06-10 22:16:08 +02:00
tomFlowee 1d2fa6728f new version 2023-06-08 23:20:53 +02:00
tomFlowee 2043f4cf5a Import translations from crowdIn 2023-06-08 22:27:48 +02:00
tomFlowee c84af22bc0 Add feedback on incorrect QR.
The scanner doesn't validate the QR, but the Payment object does. So,
verify the result after setting the url on the Payment object and raise
a dialog when the address did not work.
2023-06-05 18:12:29 +02:00
tomFlowee 32f5e5cc95 UX (spacing) fixes
This positions the Dialog more logically and avoids taking space for an
empty label.
2023-06-05 18:10:50 +02:00
tomFlowee 961041cc11 fix token check
Outputs can be null, this is when the outputs are not send to an
address we own.
2023-06-05 16:45:20 +02:00
tomFlowee 49daf7b87e Also show cashtoken indicator on mobile 2023-06-05 10:47:50 +02:00
tomFlowee 37a4e38e5d Handle token UTXOs specially.
Mostly they can not be spent as money, which is basically
what this code does.
2023-06-05 09:58:54 +02:00
tomFlowee 4883de304b Export the cashToken bool to the UI
Make clear that we have a cashtoken output in the UI.
2023-06-05 09:58:06 +02:00
tomFlowee b6165a7308 Remove not needed semicolon 2023-06-04 23:05:52 +02:00