745 Commits

Author SHA1 Message Date
edouardparis
d87da1eeaf
Merge #1419: gui(edit key modal): increase size of the closing icon
f4596ab4b0974d0b3986c0431337b8a304333278 gui(edit key modal): increase size of the closing icon (pythcoiner)

Pull request description:

  Fixes #1409
  ![image](https://github.com/user-attachments/assets/dda46bf0-6ada-4dd7-a88a-973a4b989765)

ACKs for top commit:
  jp1ac4:
    Tested ACK f4596ab4b0.

Tree-SHA512: ac0ace1ca0c6463d05daf4fb9fb770e9a6be639633dbd3bfd019c9c2de193b4141d3fbb32d0c9f71b97694339aa6b5e4a06c2e538f8c0394e60ad71ff9edde8c
2024-11-04 12:17:29 +01:00
edouardparis
456fce35a5 bump gui msrv to 1.71.1 2024-11-04 11:30:05 +01:00
pythcoiner
f4596ab4b0 gui(edit key modal): increase size of the closing icon 2024-11-01 16:14:37 +01:00
Michael Mallan
322597f474
gui(installer): re-add next button
This Next button was accidentally removed in commit
bd03cc9cfffb7c5c45dd0dd60d54db807d4e02a2.

This re-adds the button with some code refactoring.
2024-11-01 10:20:48 +00:00
edouardparis
59c73001a4 Disable edit of defined key in multisig template recovery path
The primary keys shouldn't be editable from the recovery path in the
Multisig Savings template but only from the primary path. It could bring
to weird behaviors and corner cases.
2024-10-30 16:26:39 +01:00
edouardparis
799ec102a8
Merge #1396: gui: upgrade managed bitcoind version to 28.0
1bc6248063c908219d4f1e343ca487c4f64d7843 gui: upgrade managed bitcoind version to 28.0 (Michael Mallan)

Pull request description:

  This is to resolve #1372.

  Hashes were taken from https://bitcoincore.org/bin/bitcoin-core-28.0/SHA256SUMS.

  File names we use can be found here:
  2d5991cb0c/gui/src/node/bitcoind.rs (L42-L60)

ACKs for top commit:
  edouardparis:
    utACK 1bc6248063c908219d4f1e343ca487c4f64d7843

Tree-SHA512: c6c5976c357164dc2f6e31f5af7981c41ef63197bfb1aac1f54ddb30dff423796fe23957e5a2c6014fcdabb64b91057a97b22d3c9e7ea33bcfa5ce47c912846a
2024-10-30 15:29:40 +01:00
edouardparis
36af35fae3 refac: remove select button at the choose template step 2024-10-30 14:00:03 +01:00
edouardparis
2eddbbd700 change wording in inheritance template 2024-10-30 14:00:03 +01:00
edouardparis
789c2aebfb Add new template: multisig security wallet 2024-10-30 14:00:03 +01:00
edouardparis
bd03cc9cff Add inheritance and custom templates 2024-10-29 14:52:09 +01:00
edouardparis
5889e60dc2 Add descriptor template description step 2024-10-29 11:33:48 +01:00
edouardparis
fab3303147 installer step: ChooseDescriptorTemplate 2024-10-29 11:33:48 +01:00
edouardparis
d0ec811bef installer: refac setup as a list of paths 2024-10-29 11:33:48 +01:00
edouardparis
5fabd987e8 move installer view module in a directory 2024-10-29 11:33:48 +01:00
edouardparis
0b1932c9fa keep key hot signer origin 2024-10-29 11:33:48 +01:00
edouardparis
e6f85227ca installer descriptor editor: add key module 2024-10-29 11:33:48 +01:00
edouardparis
d73894dfa0 installer: module editor 2024-10-29 11:33:48 +01:00
Michael Mallan
0a674d591a
gui: load app directly if wallet was previously synced 2024-10-28 12:57:54 +00:00
Michael Mallan
1408f66963
gui(home): indicate if blockchain is syncing 2024-10-28 12:57:52 +00:00
Michael Mallan
62788d105c
gui(cache): include sync progress 2024-10-28 12:57:50 +00:00
Michael Mallan
f3a136c30b
gui(home): refactor sync status logic
Use an enum to clearly enumerate the different cases we are
considering and avoid the need to repeat logic relating to
blockheight in the view.
2024-10-28 12:57:48 +00:00
Michael Mallan
1bc6248063
gui: upgrade managed bitcoind version to 28.0 2024-10-25 15:02:20 +01:00
Michael Mallan
ec7556ee12
gui(home): indicate existing wallet is syncing
If opening an existing wallet that uses a local backend, indicate
that it is checking for new transactions until the first poll
completes.

A remote backend is always synced after the initial scan.
2024-10-24 15:03:40 +01:00
Michael Mallan
f7314aa26e
gui(cache): include last poll timestamp 2024-10-24 15:03:36 +01:00
Michael Mallan
9dd737b98c
gui: upgrade liana dependency 2024-10-24 14:58:21 +01:00
edouardparis
e3ae1f369b Use signWithOtp method instead of the resend endpoint
close #1385
2024-10-23 12:53:43 +02:00
edouardparis
2711e34430 fix clippy error redundant clone 2024-10-23 12:43:51 +02:00
Michael Mallan
9208cd11b2
gui: don't treat wallets using bitcoind as syncing
If the user has imported a descriptor and is using bitcoind as
a local node, then they will need to perform a rescan in order
to see past transactions.

Treating the wallet as syncing in this case could mislead the
user that a rescan is being performed. Therefore, it's better
to keep the past behaviour here to avoid further confusion.
2024-10-21 11:00:03 +01:00
Michael Mallan
f34bb1b79a
gui: include node type in embedded daemon backend
This is for convenience in case we need to know the node type
being used.

Although we expect there to always be a node type, it is kept as
`Option` to be consistent with the daemon config.
2024-10-21 11:00:01 +01:00
edouardparis
67c9262a30
Merge #1370: [GUI] Indicate wallet is syncing after completing installer
6f4eb79a5a45751a1c919565ea9c88f59fbda0ab gui: refresh cache more often while height is 0 (Michael Mallan)
a51110269c96e7a9d7c4143e0bd6f8cf27a703a3 gui(home): indicate that wallet is syncing (Michael Mallan)
b452966653da1f2d857dd5901972171aa9d1250c gui(home): track blockheight from cache (Michael Mallan)
1d1e735ae975bb73af5389090e1eee68c727c7ea ui: add loading spinner that types text (Michael Mallan)
3c46a7337c57ef646626d052a0ab23a7fa0ecb17 ui: add carousel loading spinner (Michael Mallan)
e4c1ab106d74ad193aa1ba2f5746ce598c4801e5 ui: render amount with chosen colors (Michael Mallan)
013feb3909ebed0a8850a51a7d61383f327b5d4d ui: refactor amount function (Michael Mallan)

Pull request description:

  This is to resolve #1361.

  The home page considers the wallet to be syncing if its height is 0. In this case, the balance will slowly blink and a "Syncing..." text will appear just below.

  The home page will check the wallet's height upon each cache refresh, and will reload the home page once the syncing has completed so that the updated balance is displayed without the user needing to do anything.

  Both the blinking balance and "Syncing..." text use a new `Carousel` widget that cycles through different child widgets at a specified rate.

  EDIT: I've added an extra commit to address #1363 as that is also related to the wallet height and cache refresh.

ACKs for top commit:
  edouardparis:
    ACK 6f4eb79a5a45751a1c919565ea9c88f59fbda0ab

Tree-SHA512: 04214ccb1cf998ae6f7589f2c37335416a6d39b668269c4e07e30c8713e1a0e9e46257c60cea7b19ee6d6e35cbdccaf1122d25a66e6e7e905de51fce185f9180
2024-10-18 14:46:14 +02:00
edouardparis
3e33353745 change button kind for transaction save modal 2024-10-15 11:47:27 +02:00
edouardparis
0c2f0de951 Add light background to active buttons 2024-10-14 12:22:10 +02:00
edouardparis
5c9171d090 remove unused picklist theme 2024-10-14 12:02:13 +02:00
edouardparis
8546e55ffa change button for secondary button for consistency 2024-10-14 11:45:13 +02:00
edouardparis
08854c4940 change secondary button ui
The secondary button is light grey border and transparent
background that has border and text green on hover.
It brings consistency with item list selection that
has green border on hover.
2024-10-14 11:36:38 +02:00
edouardparis
277945dddf convert all primary button to secondary button 2024-10-14 11:24:43 +02:00
Michael Mallan
6f4eb79a5a
gui: refresh cache more often while height is 0
The wallet's height is taken from the cache and is used to check
if the wallet has been initially synced after creation.

For the remote backend, the cache refresh should be done with the
usual frequency while the wallet's height is 0 so that the sync
completion can be detected sooner.
2024-10-11 16:00:31 +01:00
Michael Mallan
a51110269c
gui(home): indicate that wallet is syncing 2024-10-11 16:00:29 +01:00
Michael Mallan
b452966653
gui(home): track blockheight from cache 2024-10-11 16:00:27 +01:00
Michael Mallan
1d1e735ae9
ui: add loading spinner that types text 2024-10-08 10:46:07 +01:00
Michael Mallan
3c46a7337c
ui: add carousel loading spinner 2024-10-08 10:46:05 +01:00
Michael Mallan
e4c1ab106d
ui: render amount with chosen colors 2024-10-07 15:31:14 +01:00
Michael Mallan
013feb3909
ui: refactor amount function
The `amount` function can call `amount_with_size` rather than
repeating the underlying call to `render_amount`.
2024-10-07 15:28:04 +01:00
edouardparis
37cea480b8 hw: check if app is open before sending old version error message
We check if we are able to fetch master fingerprint
to see if the bitcoin app is open. The error is then displayed
with the generic connection error message.
2024-09-25 11:24:57 +02:00
edouardparis
0219752f78 Add processing state to next page load 2024-09-23 11:58:46 +02:00
edouardparis
1a370d3806 fix history events and txs pagination
The problem:
We display the button if the size of the list is a multiple of the page
size. Otherwise, we assume that the user has reached a partial page,
indicating they've reached the bottom. However, since we chose to
include all transactions with the same block time on a single page
(because it's not possible to order them by block index in the database,
as we don't store the block index), this can cause the page size to
exceed the set limit. As a result, the list size may not be a multiple
of the page size.

The solution:
keep in the state if the last fetched page has a length inferior
of the expected page size and do not display the button 'See more'
then as we reached the bottom.
2024-09-20 14:32:35 +02:00
edouardparis
7124e09b75 Check coldcard version and request user to upgrade
Close #1343
2024-09-17 11:56:51 +02:00
Michael Mallan
0084163176
gui: add help text for electrum address 2024-09-16 15:43:59 +01:00
edouardparis
1d20064beb fix wrong redirection message in settings
close #1334
2024-09-13 16:36:57 +02:00
edouardparis
dbd1bf57b5 gui: Bump version v7.0 2024-09-12 14:26:40 +02:00