Tom Kirkpatrick
cfd9f7a15f
feat(ui): add Menu components
6 years ago
Tom Kirkpatrick
524627de9d
feat(ui): add Form components
6 years ago
Tom Kirkpatrick
ae19294c15
fix(styles): clean up global error style
Implement new Notification component in GlobalError.
6 years ago
Tom Kirkpatrick
81f8b2d9a4
feat(ui): add Page/MainContent/Sidebar components
6 years ago
Tom Kirkpatrick
e595acb0e0
fix(styles): clean up and standardize icons
Implement Icon components throughout the app.
6 years ago
Tom Kirkpatrick
06b1d27e64
fix(styles): clean up and standardize buttons
Implement Button component throughout the app.
Fix #830
6 years ago
Tom Kirkpatrick
fd7987929b
feat(ui): add Modal component
6 years ago
Tom Kirkpatrick
2a7780bce4
feat(ui): add Background component
6 years ago
Tom Kirkpatrick
ea646fd82f
feat(ui): add Bar component
6 years ago
Tom Kirkpatrick
dd3adec3f2
feat(ui): add Notification component
6 years ago
Tom Kirkpatrick
4e4ef61947
feat(ui): add Button component
6 years ago
Tom Kirkpatrick
eddd3cb55f
feat(ui): add Typography components
6 years ago
Tom Kirkpatrick
ab68b9a376
feat(ui): add Spinner component
6 years ago
Tom Kirkpatrick
7a393d32bc
feat(ui): add Icon component
6 years ago
Tom Kirkpatrick
3100d2995a
feat(ui): add storybook
Create a storybook in order to aid component development by providing an
easy way to preview components.
6 years ago
Tom Kirkpatrick
7bb76dbb94
chore(deps): update babel to v7
Update babel to v7 and make necessary adjustments to get things to
function properly.
6 years ago
Tom Kirkpatrick
369be780a9
ci(jest): increase timeouts
Tests sometimes run very slowly on Appveyor and can timeout before they
finish. Increase jest and spectron timeouts from their defaults.
6 years ago
Tom Kirkpatrick
11ab3999b7
ci(jest): set maxWorkers to 2
Jest process doesn’t quit after last test completes. This can cause our
tests to fail sometimes, particularly on on Appveyor.
As an attempt to get past this previously we had set `--forceExit` in
our jest cli options, but this doesn't always work either.
Further research suggests that setting ``--maxWorkers=2` could resolve
the issue.
See
- https://github.com/facebook/jest/issues/1456#issuecomment-424356243
- https://github.com/facebook/jest/blob/master/docs/Troubleshooting.md
Fix #774 , Fix #773
6 years ago
Tom Kirkpatrick
52cefd7cdf
feat(lnd): use free port for lnd
Select free ports for lnd from a pool of options. By default we will
use the standard lnd ports (10009 and 9735) but if those are not
available then we will search for free ports in a nearby range.
This allows us to have multiple instances of the wallet running and
avoids possible conflicts with other instances of lnd that the user
may be running.
6 years ago
Tom Kirkpatrick
1081db81c4
test(e2e): combine e2e test setup/teardown steps
There is currently a bug with Spectron which is causing random test
failures due to `app.quit` not working as it should.
Combine the e2e tests so that they use a single setup/teardown step
which will reduce the frequency of random test failures.
6 years ago
Tom Kirkpatrick
9859ac2eec
style(loading): fade out loading bolt
Show the loading bolt for a little longer and fade it out when it
unmounts.
6 years ago
Tom Kirkpatrick
977937956e
chore(fs): remove unused util code
Our USD helper functions are no longer used since we have migrated to
intl for currency formatting. Remove the unused code.
6 years ago
Tom Kirkpatrick
0947079d05
test(unit): fix failing test case
6 years ago
Jack Mallers
f7964c8686
fix(theme): make compatible with multi-language
6 years ago
Tom Kirkpatrick
5c93cee6d2
test(timeout): use jest.setTimeout to set timeout
6 years ago
Tom Kirkpatrick
70bfa6cb73
feat(i18n): use local currency display rules
Use `intl.formattedNumber` to display currency values to ensure that
currencies are displayed using the formatting rules that match the
user's locale.
6 years ago
Tom Kirkpatrick
27e46ccde8
feat(i18n): detect best-fit user currency
Use the locale information in order to select a best fit default
currency for the user.
6 years ago
Tom Kirkpatrick
aedd1ee233
feat(i18n): initial multi-language support
6 years ago
Tom Kirkpatrick
54ed782ff5
refactor(general): remove contactModal components
6 years ago
Tom Kirkpatrick
7a5f360e6d
test(e2e): ensure tests are self contained
Ensure that each of our e2e tests carries out its own full setup and
teardown processes so that they can be run in isolation.
6 years ago
Tom Kirkpatrick
f464356bf7
fix(validation): improve hostname/ip validation
Do not assume that an address that starts with a number is an IP
address and expand validation to cover all FQDNs and IP addresses.
Fix #766
6 years ago
Tom Kirkpatrick
3326db1e55
fix(lnd): send SIGINT to lnd to terminate
6 years ago
Tom Kirkpatrick
eb71b6c579
fix(ui): autofocus and clear pay and request forms
When the payment and request forms open ensure that the forms are empty
and the most relevant form field is selected by default.
Fix #389
6 years ago
Tom Kirkpatrick
e9b4605523
refactor(grpc): convert WalletUnlocker to class
Convert the walletUnlocker object to a class with an interface that is
consistent with the Lightning class.
6 years ago
Tom Kirkpatrick
e8dd544bca
test(unit): test Controller.startLightningWallet
Add unit tests to verify that ZapController.startLightningWallet()
behaves as expected.
6 years ago
Jack Mallers
545285f0c3
feat(invoice): add priv routing hints for light clients
6 years ago
Jack Mallers
8548b744ec
feat(payment): add 60 second payment timeout
In this commit we introduce a 60 second timeout for LN payments. This addresses the issue of infinitely hanging LN payments and improves the UX. The UI now has a 60 second countdown where Zap will clear the payment if it is not successfully routed
6 years ago
Tom Kirkpatrick
bcb938b588
test(reducers): add activity reducer tests
6 years ago
Tom Kirkpatrick
133e34dea2
test(neutrino): basic neutrino process spawn test
6 years ago
Tom Kirkpatrick
a16fdec23b
fix(lnd): ensure graceful shutdown
Lnd doesn't currently do a graceful shutdown when a `SIGTERM` is issued.
To ensure a graceful shutdown, call `stopDaemon` on the gRPC interface
prior to terminating lnd. If a graceful shutdown is unsuccessful then
force kill the daemon.
6 years ago
Jack Mallers
59a64714d1
feat(settings): close on blur click
fix(multi-lang): switch ticker to settings store
fix(tests): pass all tests
fix(fiat): switch from usd to fiat
fix(settings): fix console errors
fix(settings): make styles consistent
fix(tests): remove unneeded mocks
fix(payform): call satoshisToFiat now
fix(network): rebase + fix network fiat amt
7 years ago
Tom Kirkpatrick
853c69468f
feat(lnd): update lnd to v0.4.2-beta-913-g26f68da5
6 years ago
Evan Kaloudis
da1a53ecc8
feat(errors): create a util for making error messages more user-friendly
6 years ago
Data Courier
818dd25012
feat(ui): integrate AmountInput into wallet UI
Use the new AmountInput component throughout the wallet.
Fix #682
7 years ago
Data Courier
d51e39f407
feat(components): add new AmountInput component
Add a new AmountInput component to render an input field for entering
bitcoin denominated amounts. Has special handling for bitcoin / sats /
bits to ensure that only valid amounts can be entered and that the
formatting looks visually correct.
7 years ago
Jack Mallers
9b837ba316
fix(channels): neutrino clients manual channels flagged private
Make sure that if a user of ours is using neutrino that we flag their
channels as private when they manually open them. Reason for this is
because light consumer clients are not expected to have high uptime.
However we cannot hardcode channels as private every time because we
do support more power users driving their remote nodes or BTCPay
Server with Zap. So we only flag channels as private if the
activeConnection is local.
6 years ago
Tom Kirkpatrick
b3044b26a7
test(reducers): add transaction reducer tests
6 years ago
Tom Kirkpatrick
e786958b55
test(electron): simplify electron mocks
6 years ago
Tom Kirkpatrick
602d03411a
test(unit): add some basic tests for Lightning class
6 years ago
Tom Kirkpatrick
1b4de6cb0c
feat(lnd): show error message if lnd exits
If lnd unexpectedly exits, show the user the last error message
reported by lnd in order to help diagnose issues.
See #674
6 years ago