Commit Graph

1822 Commits

Author SHA1 Message Date
tomFlowee 65eb981d83 Revise import wallet pages
The vast vast majority of wallets imported will not have a password. So
we de-prioritize that and make the user aware of the password field
should they check the contents without one.

This moves the 'wallet name' again to the top for all types as the most
observed mistake is that people type a wallet-name in the password field
and then are confused why there is nothing there. (and additionally
annoyed that the name of the wallet is auto-generated).

Other fixes includes spacing and alignment.
Keyboard focus on desktop.
2024-10-28 13:41:24 +01:00
tomFlowee 191c22b549 Return zero fees if we don't have info 2024-10-28 11:26:19 +01:00
tomFlowee 6dc315cc77 Fix race condition, add autostartSkipped signal
This fixes the issue that the "sweep from browser" would consume the
property before the QR scanner had time to decide it should skip
scanning due to that property existing.
2024-10-28 10:24:58 +01:00
tomFlowee cabaece733 New version 2024-10-27 21:54:48 +01:00
tomFlowee 7e60f1fdea Refactor Intent: disconnect from app lifetime
The idea of using Flowee Pay to open a payment screen, or a sweep
screen, was so far married to the executable lifetime due to it being
passed as a command line argument.
This does not reflect reality, on neither desktop nor on mobile as
multi-tasking is possible and we should allow that.

As a result the new object "Intent" has been introduced with the
usecase specific properties. Setting those properties at any time
during the lifetime of the app now pushes the correct page to the
stack on mobile. Desktop is in need of more love in this department.
2024-10-27 21:54:48 +01:00
tomFlowee 6b9473e304 Fix indent. 2024-10-27 21:54:48 +01:00
tomFlowee 1203da046d cleanup includes 2024-10-27 21:54:48 +01:00
tomFlowee 19a19df5d3 No longer make sweep module enabled by default
With webpage based scanning and the landing page button, the access is
there. No need to have a button always on the 'send' tab.
2024-10-27 21:54:48 +01:00
tomFlowee 8e79d9ef9b Make startup screen show the 'cash stamp' button always.
Even if the related module is not enabled.
2024-10-27 21:54:48 +01:00
tomFlowee 0fc17ea5f8 Add bch-wif scheme support for mobile
This allows a user to click on a link in a browser with the bch-wif
scheme and we'll handle that with a sweep page on startup.

To avoid this being just-another-special case we introduce a new
module (read: plugin) concept that is a Start-screen type.
The idea is that we can have a generic handling of this type in
various parts of the app without it being specifically about the
wif handling.

Notice that it doesn't matter if the user has the module enabled,
which just operates the display of the menu option to start it manually.
2024-10-27 21:54:48 +01:00
tomFlowee afa23dba9b Also move control of 'enabled' to the module dev.
The virtua method allows full freedom for module devs to interpret the
user enabling or disabling the module and any of it child sections.
2024-10-27 21:54:48 +01:00
tomFlowee a8a2cf8329 Upgrade module config saving
This moves the saving of the enabled-ness of a module to be for the
entire module instead of for each section.
To allow a module to be 'configurable' (for disabling section among
others) we add a virtual method to the ModuleInfo object to allow a
module to save anything it wants.
2024-10-27 21:54:48 +01:00
tomFlowee c86d6745d9 Make build failures stop the script.
No point in printing a cheerful message after a build failure.
2024-10-24 20:36:26 +02:00
tomFlowee a3af22ea84 Add Android support for bitcoincash scheme
If you open a bitcoincash based url in a webbrowers, you now
will see flowee pay being offered as a way to handle it.
After clicking it you will instantly land in the payment page with
the address filled in.
2024-10-24 20:36:26 +02:00
tomFlowee 2ce52044b1 [UX] Add filter-overlay with filtred-count 2024-10-23 19:00:18 +02:00
tomFlowee 745e78e0c6 UX: add a nice background behind the section 2024-10-23 13:19:11 +02:00
tomFlowee ad8287da1e Add filterpopup.qml
also sort the list alphabetically
2024-10-23 12:57:53 +02:00
tomFlowee e6011e5b01 Invert filter meaning for nicer UX 2024-10-23 12:50:31 +02:00
tomFlowee c9a80d5058 Skip saving on delete
Since we use the wallet to find details of the saving, this is dangerous
in case the wallet gets deleted before the model on shutdown.
2024-10-23 12:28:39 +02:00
tomFlowee 5e9b2770aa Add red-flash on incorrect password 2024-10-23 11:45:57 +02:00
tomFlowee 8f220f98b7 Save the filter preferences to disk. 2024-10-23 00:05:02 +02:00
tomFlowee 0d6bfb35db Add icon for the filter action 2024-10-23 00:05:02 +02:00
tomFlowee ca63943def Refactor, move button to open. 2024-10-23 00:05:02 +02:00
tomFlowee 1e923a6c09 Remove old note 2024-10-23 00:05:02 +02:00
tomFlowee 871e5b1abd Make the filter-popup UX nice.
This also makes us hide the cf check on a wallet that doesn't have any.
This also adds a checkbox to filter on transactions without comment
2024-10-23 00:05:02 +02:00
tomFlowee ffb85bb403 Add ability to filter history
On the mobile client this allows the user to check per wallet which kind
of transactions to show or hide.
We allow selection of send/receive/both.
We allow the hiding of cash-fusion transactions.
2024-10-23 00:05:02 +02:00
tomFlowee 148cbadcd5 UX: make 'paste' button always be there
To amke it more clear that the QR scanning screen also always allows
clipboard input, make the paste button always be there and just make
it have a constrasting background when the clipboard content is
acceptable.

We also add a 'shake' feedback when the paste doesn't work, and naturall
the paste button is available for clicking even if it doesn't look
'enabled' which will then just result in a shake and 'failed' feedback.
2024-10-23 00:05:02 +02:00
tomFlowee d8e082fed1 Simplify: don't import local dir 2024-10-19 23:36:09 +02:00
tomFlowee 9f69241bbb API level rename of 'send' to 'action'
As we get more modules it turns out that the 'send' tab as originally
envisioned isn't really representative of how we're evolving.
Various items end up being about doing 'stuff' in general. Including
creating a transaction to receive. Only in a very loose way can we
say those are 'send' items.

So, without actually any user-visible changes, this renames the
enum in the module manager and module-section to make it about the
more accurate "action menu".
2024-10-19 23:09:20 +02:00
tomFlowee f0c250e71b Fix unneeded COW 2024-10-19 23:04:13 +02:00
tomFlowee 1b5e2e4bf5 UX: only show 'sent to' for outgoing transactions. 2024-10-19 22:59:55 +02:00
tomFlowee 2e14659371 Move to the first tab on finishing import. 2024-10-18 15:54:23 +02:00
tomFlowee 3ead4b6100 Update default wallet on 'replace'.
When importing a new wallet while the initial wallet still is not user-
owned, this new wallet effectively replaces the old one.
This means that we still are a single-account setup, even though there
are two wallets. In that usecase we should point to the new one.
2024-10-18 15:54:23 +02:00
tomFlowee c2e838d1ef Remove GUI debug logging. 2024-10-18 15:54:23 +02:00
tomFlowee d7f11b40d4 Add watchdog here too.
As electroncash.de showed, we need a timeout watchdog for cases like the
server being badly setup. (connect on ipv6 never receives any answer).
2024-10-18 15:54:23 +02:00
tomFlowee 3b0398dd24 Make small amounts of punisment count.
The fetching of a good peer now prioritizes the peers that have the
least punishment.
2024-10-18 15:54:23 +02:00
tomFlowee e4d5b16538 Be more agressive in dealing with bad EC peers 2024-10-18 15:54:23 +02:00
tomFlowee 6bf8bd1090 Make discovery work with more services.
Use a buffer to store the json in, allowing us to process the result
even if it is much larger than expected.

Seems there are a lot of onion servers, which 'bloats' the result to the
point that it didn't go in one callback.
2024-10-18 15:54:23 +02:00
tomFlowee 39ef51c9b9 Increase minimum boost version
This follows the upstream flowee-libs doing the same.
2024-10-14 21:30:56 +02:00
tomFlowee a981008852 Fix logic 2024.10.1 2024-10-14 20:50:20 +02:00
tomFlowee 75da4c82f8 Increase version 2024-10-14 20:09:43 +02:00
tomFlowee 1aa3a14611 Improve downloading of list of transactions
The Sweep feature needs the 'previous' transactions to build the new
transaction.
This shows a progress-report per-transaction as they are downloaded.

Additionally this splits the incoming electron-X reply into lines before
processing.
2024-10-14 20:09:43 +02:00
tomFlowee 48566f1fa6 Fix documentation of property 2024-10-14 20:09:43 +02:00
tomFlowee 5a729b4da2 Ensure that the feedback instantly opens
This way we don't depend on the backend, but the actual user interaction
is the one that starts the process.
2024-10-14 20:09:43 +02:00
tomFlowee ce827ed776 Import translations 2024-10-14 20:09:43 +02:00
tomFlowee 1b4ee23f46 Make sweep screen better translatable 2024-10-14 13:28:25 +02:00
tomFlowee 1d7306d322 improve translator help text 2024-10-14 13:28:25 +02:00
tomFlowee 40e94b8255 Consistency in wording
Now both the 'new account' tabs have the same style of grammar
2024-10-14 13:28:25 +02:00
tomFlowee 1ab012e5d7 Fix grammar. 2024-10-14 13:28:25 +02:00
tomFlowee ba5d6630ab Add 'paste' right mouse action. 2024-10-14 13:28:25 +02:00