Commit graph

122 commits

Author SHA1 Message Date
Daniel
ed8aa4b22b
feat: fancy toggle switch (#63)
* fature: privacy shields ui

* fix: show address status in advanced wallet view

* feat: advanced wallet setting

* fix: smaller ui adjustments

* Remove todo

* Fix flickering

* Restyle create wallet flow

* Don'
t open wallet until confirmed

* Dry up styles

* Fix css

* Fix linter warning

* Add fancy toggle switch

* Update src/components/CreateWallet.jsx

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>

* Update src/components/CreateWallet.jsx

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
2022-02-08 15:19:26 +01:00
Daniel
8ed27ae745
feat: update create wallet flow (#62)
* fature: privacy shields ui

* fix: show address status in advanced wallet view

* feat: advanced wallet setting

* fix: smaller ui adjustments

* Remove todo

* Fix flickering

* Restyle create wallet flow

* Don'
t open wallet until confirmed

* Dry up styles

* Fix css

* Fix linter warning

* Update src/components/CreateWallet.jsx

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>

* Update src/components/CreateWallet.jsx

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>

* Update src/components/CreateWallet.jsx

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-02-08 12:45:54 +01:00
Daniel
7546ca74d4
feat: add privacy levels (#51)
* fature: privacy shields ui

* fix: show address status in advanced wallet view

* feat: advanced wallet setting

* fix: smaller ui adjustments

* Remove todo

* Fix flickering

* Remove hardcoded accounts and fix typo
2022-02-07 15:12:16 +01:00
secondl1ght
6470ab4316
feat: add connection indicator to footer (#55)
* Add connection indicator to footer

* Update src/components/App.jsx

* Update src/components/App.jsx

* Update src/components/App.jsx

* Update src/components/App.jsx

Co-authored-by: Daniel <eggerdnl@gmail.com>
2022-02-07 10:27:59 +01:00
Daniel
8bb8b7b98f
fix: hidden balance icon alignment and size (#52) 2022-02-05 01:07:58 +01:00
Thebora Kompanioni
693fdf123f
fix: brighten loading indicator in dark theme (#53) 2022-02-05 01:05:50 +01:00
Thebora Kompanioni
216dc2b033
fix: display amount of addresses correctly (#49) 2022-02-04 11:11:01 +01:00
Daniel
1a04910f61
fix: navbar padding (#48) 2022-02-04 11:09:59 +01:00
Thebora Kompanioni
43ba1ab1e0
cleanup: remove broken websocket connection (#45) 2022-02-03 11:36:18 +01:00
Daniel
97ae86b7a1
fix: change navbar collapse to offcanvas (#44)
* fix: change collapse to offcanvas

* Display offcanvas below header

* Hide offcanvas on non-mobile

* Fix undefined className in Sprite

* Display nav item title on mobile

* Adapt no unlocked wallet nav

* Improve nav toggle button

* Remove dead code

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2022-02-03 00:27:37 +01:00
Thebora Kompanioni
0db76d99dd
feat: do not autocomplete password when creating wallet (#38) 2022-02-01 23:29:53 +01:00
d11n
5f1d6e97f8
feat: adapt favicon color based on system theme (#39) 2022-02-01 23:28:01 +01:00
Daniel
699e951fda
feat: style navbar (#29)
* Add gear icon in navbar

* feat: add basic settings screen and context

* fix: remove unneeded props chains

* Update navbar

* Add wallet preview UI

* Add border to highlight active tab

* Update icons

* Update balance font

* Fix collapsing behaviour

* Add WalletContext

* Update balance in header

* Fix spacing

* Fix dark theme

* Replace inline SVGs with sprites

* Clean up

* Fix warnings

* Clean up layout

* Make height dynamic

* Remove headings

* Add progress inidcators

* Fix balance height

* Reset wallet info when reloading

* Improve activity indicator display

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2022-02-01 23:22:32 +01:00
d11n
2a105d22ce
docs: Docker README improvements (#40)
* Typos

* Use no-cache option on rebuild
2022-02-01 23:13:42 +01:00
Daniel
d84377071a
feat: developer docs (#37)
* Move existing docs to new file

* Add info about formatting

* Fix typo

* Add back lint script

* Automate husky setup
2022-02-01 15:59:51 +01:00
Daniel
765c9d7315
fix: update sat symbol (#36)
* fix: update sat symbol

* Update public/sprite.svg

Co-authored-by: d11n <mail@dennisreimann.de>

Co-authored-by: d11n <mail@dennisreimann.de>
2022-02-01 14:14:50 +01:00
Thebora Kompanioni
712b289ddc
fix: initialize local storage with default values (#33)
* fix: initialize local storage with all default values

* cleanup: init settings key from global JM var
2022-02-01 12:05:16 +01:00
d11n
d7268aa70c
feat: add theming support (#10)
* Convert logo into sprite

* Add theme basics

* Extract Sprite component

* Add some more overrides

* Update src/components/App.jsx

Co-authored-by: Daniel <eggerdnl@gmail.com>

* Move switch to settings view

Co-authored-by: Daniel <eggerdnl@gmail.com>
2022-01-28 20:14:09 +01:00
Daniel
867fff330b
feat: add settings screen (#26) 2022-01-28 14:58:33 +01:00
d11n
eb59bd7b76
Add build workflow (#25)
* Add build workflow

Perform the lint, test and build tasks on master and pull requests targeting master.

* Format CSS file

* Exclude non-existing tests for now
2022-01-27 15:51:00 +01:00
dependabot[bot]
58d6ba0198
Bump nanoid from 3.1.30 to 3.2.0 (#23)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-27 10:54:20 +01:00
Daniel
08232d7d36
feat: setup code formatting (#21)
* Install prettier

* Install husky

* Add npm lint and format scripts

* Format files

* Remove unused import

* Setup prettier config

* Update line width

* Update package.json

Co-authored-by: d11n <mail@dennisreimann.de>

* Reformat

Co-authored-by: d11n <mail@dennisreimann.de>
2022-01-27 10:20:31 +01:00
Daniel
4351d1380e
feat: add sat symbol & update balance UI (#11)
* feat: update balance ui

* fix: change currency symbol placement

* User sat symbol

* Add digit grouping

* Clean up some things

* Fix copy: Balance -> balance

* SATS -> sats

* Show ₿ as prefix and sats as suffix

* fix: add padding to sat symbol

Co-authored-by: Gigi <dergigi@pm.me>
2022-01-26 15:54:25 +01:00
Thebora Kompanioni
37d882f9fb
fix: show loading indicator until all data is fetched (#3)
* fix: show loading indicator till all data is fetched

as two requests are made in CurrentWallet component, a single boolean
as loading flag might not represent the current loading state correctly.
This commit adds a 'loading counter' that increases/decreases when
starting/finishing data requests.

* Handle loading counter using state

* fix: use Promise.all to sync loads

Co-authored-by: d11n <mail@dennisreimann.de>
Co-authored-by: Daniel <dnlggr@pm.me>
2022-01-26 15:52:18 +01:00
Dennis Reimann
abc0816eb6
Formatting improvements 2022-01-23 14:45:34 +01:00
Thebora Kompanioni
5d886d7a3f
Enable coinjoin on regtest env (#6)
* fix: prevent 'config value not set' on cj in regtest env

'max_cj_fee' config values must be present when invoking a
coinjoin via the api. the default config for the regtest env
did not include these values before, hence they could not
be overridden in docker-compose setup file.

* dev: switch irc server from miniirc to ergochat

* dev: start second joinmarket container

In order to successfully perform a CoinJoin, there must be at least one
maker. This commit adds a second JoinMarket container with
jmwalletd accessible on port 29183.

* dev: add helper script to mine a block

* dev: add container switch to regtest-control script

* dev: invoke mine-block in regtest-control script

* dev: add flag '--unmatured' to regtest-control script

Sometimes it is desired that block rewards do not reach maturity
immediately. This is convenient if you want to supply several wallets
with coins, but do not want to generate many blocks all the time.

* dev: add helper script to start maker service

This script helps in providing both JoinMarket containers a wallet with
spendable coins and starting the Maker Service in the secondary
container. Its main goal is to make CoinJoin transactions possible in the
regtest environment.

* dev: move common functions to script common.sh

* fix: use correct irc host in docker setup

* dev: use ergochat image from ghcr.io

* dev: dont lock secondary wallet in setup script

normally the wallet should be locked, but it seems this leads to the
maker service responding very slowly which causes failing coinjoins.
as the secondary instance is never interacted with directly, we can
refrain from unlocking the wallet for now.

* docs: add debug log command to docker readme

* cleanup: rename script 'regtest-control' to 'fund-wallet'

* dev: upgrade joinmarket from v0.9.3 to use current master branch

* review: add more descriptive comments and cleanup files
2022-01-22 17:09:14 +01:00
Dennis Reimann
3e762890b4
Remove deprecated transaction fee contribution 2022-01-21 19:13:07 +01:00
Dennis Reimann
87081e6283
Improve wording: Display wallet 2022-01-21 19:10:17 +01:00
Daniel
ccc8a8e542
Update readme (#8)
* Add header image

* Add readme layout

* Add readme content

* Remove whitespace
2022-01-21 18:11:28 +01:00
Dennis Reimann
44a9e5cfbf
Unify password wording 2022-01-21 16:00:52 +01:00
Dennis Reimann
58d5ec732d
Upgrade dependencies 2022-01-21 15:59:49 +01:00
Daniel
b63557a680
Add switch to show / hide balances (#7) 2022-01-20 19:44:50 +01:00
Thebora Kompanioni
88e2ed66b7
fix: prevent dom validation warning (#5) 2022-01-06 20:00:59 +01:00
d11n
d2e81c9b6a
Create codeql-analysis.yml 2022-01-04 14:29:28 +01:00
Dennis Reimann
fc725e565e
0.0.2 2022-01-04 13:35:50 +01:00
Dennis Reimann
60693a6a75
Upgrade dependencies 2022-01-04 12:52:20 +01:00
Thebora Kompanioni
17d5afaa57
fix: remove displayed artifact on missing fidelity bonds (#2)
* Add toggle to display amounts in sats

* fix: remove artifact on missing fidelity bonds

the length of fidelity bonds array has been rendered when array
was empty ("0" was displayed).

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2022-01-04 12:41:20 +01:00
Dennis Reimann
c838a7b9da
UI updates 2022-01-04 12:36:44 +01:00
Dennis Reimann
1b2b53cfd7
Configure yield generator settings 2022-01-03 17:20:26 +01:00
Dennis Reimann
d7260ff3f9
Add toggle to display amounts in sats 2022-01-03 17:20:08 +01:00
d11n
e64434c285
Merge pull request #1 from theborakompanioni/devel/tbk
small ui improvements and bugfixes
2022-01-01 18:22:56 +01:00
theborakompanioni
20f003c889 ui: use same width for value/account form elements 2022-01-01 17:46:41 +01:00
theborakompanioni
c5d11e3457 ui: select account via select box on receive page 2022-01-01 17:45:38 +01:00
theborakompanioni
07d0f09bda ui: select account via select box on payment page 2022-01-01 17:41:24 +01:00
theborakompanioni
21453d8470 fix: validate amount on payment page
a value of zero will actually send the entire amount.
this is probably not what the user expects.
solving this by requiring the value to be greater than zero.
2022-01-01 16:54:39 +01:00
theborakompanioni
a6bf8a5c36 fix: correcly display qr code on receive page
when navigating to the reiceve page with a specific account,
the qr code has not been loaded. this fix will ensure the account
type is an integer and hence the qrcode is loaded as expected.
2022-01-01 16:34:31 +01:00
Dennis Reimann
1384e5151e
Display fidelity bonds 2021-12-30 18:11:42 +01:00
Dennis Reimann
5c3761520a
Improve sub components 2021-12-30 18:11:22 +01:00
Dennis Reimann
4a45dbe7ea
Nav on connection error 2021-12-29 17:55:31 +01:00
Dennis Reimann
2779f26456
Payment flow improvements 2021-12-22 18:21:03 +01:00