Commit graph

676 commits

Author SHA1 Message Date
Thebora Kompanioni
6ed301b8b3
chore: enable cheatsheet (#288)
* chore: enable cheatsheet

* fix: link to scheduled transactions in cheatsheet

* chore: cheatsheet order: fund, schedule, lock, earn, repeat

* chore: hide cheatsheet when clicked
2022-05-19 13:14:17 +02:00
Thebora Kompanioni
a500b02f9b
fix: prevent starting scheduler when utxo preconditions are not met (#263)
* fix: prevent starting scheduler when precondition are not met

* feat: show 'tries' and 'tries remaining' for utxos in advanced view
2022-05-19 12:33:25 +02:00
Daniel
6b78b32eb3
chore: enable schedule (#284)
* feat: enable schedule

* Add debug feature flag
2022-05-19 12:31:52 +02:00
Gigi
57073d50f1
docs: add scheduled tx to feature list 2022-05-18 16:06:52 +02:00
Thebora Kompanioni
44fbe0169c
dev: directory node setup for regtest (#259)
* dev: update regtest config for JM v0.9.6 in dev setup

* dev: use jam's 'default' cj_max fee settings in dev setup

* dev: update secondary dev container config

* dev: start directory node in dev setup

dev: start instance 1 with access local directory node

dev: connect primary and secondary instances to local directory node

dev: ability to specify jm branch in primary container

dev: remove symlink for tor in directory-node as #1271 is fixed upstream

dev: inject hs dir in directory-node instance

dev: add script to create onion addresses for regtest setup

dev: add prepare-setup.sh script to write .env.generated file

dev: cleanup directory-node setup and scripts

* cleanup: clarify hs directory handling

* cleanup: fix typos and remove unneeded commands in prepare setup script

* dev: revert changes to regtest fee settings

* dev: use example env file for all other commands than 'up'

* dev: fix directory node setup on restarts

* dev: adapt permissions of hs directory in regtest directory node

* dev: ability to follow logs of directory node via npm script

* fix: directory node scripts compatibility

* Update docker/regtest/dockerfile-deps/joinmarket/directory_node/README.md

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* Update docker/regtest/.gitignore

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* Update docker/regtest/dockerfile-deps/joinmarket/directory_node/README.md

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* review: fix newlines and typos

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-18 15:42:59 +02:00
Daniel
471cbc7e98
feat: split up scheduler destination addresses over 3 mixdepths (#283) 2022-05-18 15:27:33 +02:00
Gigi
3c886f3e05
feat(footer): show Jam version (#281)
* feat(footer): show Jam version

link will lead to GitHub releases (tags)

* Update src/components/App.jsx

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-18 11:30:44 +02:00
Gigi
479dbfcec7
feat: add tagline to splash & improve intro copy (#280)
* feat(intro): add tagline & improve copy

* feat(intro): improve copy

* fix(splash): titlecase tagline
2022-05-18 00:21:09 +02:00
dependabot[bot]
042cd896c8
build(deps): bump async from 2.6.3 to 2.6.4 (#278)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-17 22:23:20 +02:00
Thebora Kompanioni
c05b431191
feat: prevent address reuse on Jam screen (#272) 2022-05-17 18:09:26 +02:00
Thebora Kompanioni
18d9a5323e
ui: big red button for payments without improved privacy (#270)
* refactor: increase readability in Send component

* ui: big red button for payments without improved privacy

* feat(send): update button copy

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-17 12:20:00 +02:00
dependabot[bot]
97d1519915
build(deps): bump ejs from 3.1.6 to 3.1.7 (#254)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.7)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-17 12:13:58 +02:00
Gigi
02c310603b
feat: improve copy of receive/jam/earn/send screens (#277)
* feat(receive): update copy

* feat(earn): update copy

* feat(earn): add market explainer

* fix(earn): remove fidelity bonds from copy

* feat(earn): improve copy

* feat(earn): show absolute fee in label

* feat(earn): improve copy

* feat(send): improve copy

* feat(scheduler): improve copy

* fix(earn): remove duplicate copy

* feat(earn): improve copy

* feat(send): improve copy

* feat(send): improve copy

* feat(send): add subtitle to toggle

* fix(earn): proper eq checks

* feat(scheduler): update copy

* feat(scheduler): improve copy

* feat(scheduler): improve copy

* feat(scheduler): shorter progress description

* fix(earn): paragraph class

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>

* feat(earn): don't use generic "service" term

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-17 12:11:27 +02:00
Thebora Kompanioni
8d4f12978f
ui: decrease brightness of placeholder in light theme (#239) 2022-05-17 09:22:22 +02:00
Thebora Kompanioni
e6c4cc1c59
feat: Individual balance toggle (#247)
* feat: ability to toggle balance on click when 'showBalance' param is false

* test: add test for balance visibility toggle

* refactor: add enableVisibilityToggle
2022-05-16 18:33:48 +02:00
Thebora Kompanioni
5764fc5e84
fix: do not prefill addresses after form validation fails (#266) 2022-05-16 18:09:05 +02:00
Thebora Kompanioni
c63bd25248
dev: regtest config alignment (#268)
* dev: use same fee settings as jam release in regtest setup

* dev: use default value for 'taker_utxo_retries' in regtest setup

* dev: use default value for 'taker_utxo_age' in regtest setup

* fix: move comment to own line in regtest default.cfg
2022-05-16 17:20:41 +02:00
Daniel
d2dab2cc4d
fix: delay scheduler start/stop (#264)
* Delay and rename API methods

* Update delay

* Fix rename
2022-05-16 13:32:12 +02:00
Thebora Kompanioni
67f7ed88a2
refactor: remove catch all style rule for border-color in dark mode (#240) 2022-05-16 10:13:36 +02:00
Thebora Kompanioni
2526eacf3b
fix: possible reference error in catch clause (#265)
`err.response` is only populated by actual `JmApiErrors`, it might be `undefined`.
e.g. on aborts (`signal.aborted := true`)
2022-05-13 21:38:41 +02:00
Daniel
bb44afc848
feat: simple progress report for scheduled transactions (#262)
* Add progress css

* Update progress

* Clean up

* Clean up

* i18n

* Unify placeholders

* Shwo alert when single colab tx is running

* Reload schedule

* Clean up

* Deactivate testing toggle

* Fix typo

* Update src/components/Jam.jsx

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

* Update src/components/Jam.jsx

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

* Update src/components/Jam.jsx

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

* Update error check for loading schedule

* Log schedule in dev mode

* Update reload interval

* Revert "Update reload interval"

This reverts commit 6bce69a097.

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-05-13 14:27:16 +02:00
Daniel
0e3b7b8b94
feat: simple progress report for scheduled transactions (#262)
* Add progress css

* Update progress

* Clean up

* Clean up

* i18n

* Unify placeholders

* Shwo alert when single colab tx is running

* Reload schedule

* Clean up

* Deactivate testing toggle

* Fix typo

* Update src/components/Jam.jsx

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

* Update src/components/Jam.jsx

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

* Update src/components/Jam.jsx

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

* Update error check for loading schedule

* Log schedule in dev mode

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-05-13 14:15:41 +02:00
Gigi
8f527d7be8
feat: rearrange order of tabs (#258)
* feat: reorder tabs; add jam indicator

* feat(wallet): switch order of send/receive buttons

* fix: remove unused const

* Simplify state

* Fix warning

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-13 12:00:09 +02:00
Thebora Kompanioni
593981dfd3
fix: prevent starting/stopping scheduler while data is loading (#260) 2022-05-12 17:28:24 +02:00
Gigi
030f51aa50
feat(scheduler): invert external/internal toggle (#257)
* feat(schedule): invert toggle

* fix(schedule): use subtitle label for toggle

* feat(scheduler): add note on frozen funds

* feat(scheduler): add a short note on fees

* feat(scheduler): only show fee note if scheduler isn't running

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-12 14:20:38 +02:00
Daniel
0e1d0a8a69
feat: scheduled transactions prototype (#242)
* Use backend fork

* Add minimal schedule tab

* Add feature flag

* Update title

* Change branch in regtest setup

* Revert ts config

* Change weird formik behavior

* Fix warning

* Reset alerts

* Use loading flag when starting / stopping
2022-05-11 10:05:01 +02:00
neb_b
adb33e5b14
ui: prevent password unlock input from resizing on error (#243) 2022-05-10 18:53:13 +02:00
Gigi
75a50ca4c7
docs(readme): add features 2022-05-06 16:30:33 +02:00
Thebora Kompanioni
3cfa071163
refactor: Report overlay (#238) 2022-05-06 10:48:31 +02:00
Thebora Kompanioni
a7e95845bc
refactoir: formik validation in wallet component (#235)
* refactor: use Formik in Wallet component

* fix: handle lock attempt of currently unactive wallet

* fix: let Formik know that onSubmit handlers are async

* chore: remove unused utils function 'serialize'

* fix: remove redundant comment
2022-05-05 09:30:36 +02:00
Thebora Kompanioni
edd5818b82
feat: reload wallet data after send (#236)
* fix: wait for utxos to update after send operation

* fix: split 'taker started' and 'payment success' alerts

* refactor: move 'isOperationDisabled' from function to property

* fix: reload data after taker operation finished

* chore: improve readability

* fix: abort waiting for wallet sync on errors
2022-05-05 09:30:00 +02:00
Thebora Kompanioni
9b571c2621
refactor: reusable copy-to-clipboard mechanism (#232)
* refactor: move method  from Receive to utils

* refactor: externalize copy-to-clipboard functionality to own components

* refactor: use component CopyButtonWithConfirmation on Receive screen

* refactor: utils from js to ts
2022-05-03 13:59:12 +02:00
Đorđe Spasić
1fac2cda86
refactor: css modules (#230)
* Move CreateWallet css into module

* Move Seedphrase css into module

* Fix accordion button styling

* Fix dark theme regression, delete Send.css

* Update src/components/Send.module.css

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

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-05-02 09:57:01 +02:00
Thebora Kompanioni
223aa1b92f
refactor: use Formik on Earn screen (#234)
* refactor: use Formik on Earn screen

* refactor: separate error and serviceInfo alerts on Earn screen

* review: fix displaying absolute fee input validation message

* review: inline persist form value functions

* review: simplify feeRel validation condition

* review: constant for local storage keys on Earn page

* review: validate form input based on selected offertype
2022-04-29 13:44:20 +02:00
Gigi
a83638284b
docs: add npm start 2022-04-27 10:14:40 +02:00
Thebora Kompanioni
df342722c4
fix: reload session info on Earn and Wallets screen (#231)
* test: mock session api call in App component test

* fix: reload session info on Wallets screen

* fix: reload session info on Earn screen

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-04-26 16:04:04 +02:00
Thebora Kompanioni
70ffc99040
fix: reset wallet when token became invalid (#223) 2022-04-25 18:42:16 +02:00
Daniel
23cd01131c
ui: move gh link to settings and remove other footer links (#227)
* Move gh link to settings

* Add social icons to footer

* Add jm twitter to settings
2022-04-25 14:37:58 +02:00
Thebora Kompanioni
76f8c7c7d8
chore: update dependencies (#229)
* chore: update dependencies

* fix: prevent browser warning on Onboarding screen

use unit 'px' instead of 'rem' to prevent warning 'Unexpected value 8rem parsing width attribute.'
2022-04-25 14:15:07 +02:00
Thebora Kompanioni
035dd8034a
fix: prevent operations when maker/taker service is running (#218)
* fix: disable sending if maker or taker service is active

* ui: blur send form when taker or maker service is running

* fix: prevent unfreezing of fidelity bonds before locktime is over

* refactor: expose mechanism for reloading service info to components

* fix: reload service info on send page

* ui: add caret-right icon to info alert when maker is running
2022-04-20 17:27:02 +02:00
René Aaron
ef23b4b085
fix: link to dev docs on contributing page (#224) 2022-04-20 11:24:32 +02:00
Thebora Kompanioni
34bfd0b3cd
ui: small visual adaptions after placeholder PR (#222)
* chore: harmonize sprite definitions

* fix: prevent render errors on invalid token in CurrentWalletMagic screen

* ui: add border-radius to input placeholder

* fix: add relationship 'noopener' to external links on Send screen

Co-authored-by: Đorđe Spasić <34274884+Djo1e@users.noreply.github.com>
2022-04-20 10:45:12 +02:00
Thebora Kompanioni
bb007f841f
fix: remove hardcoded account array (#220) 2022-04-19 15:06:30 +02:00
Đorđe Spasić
58017674c4
ui: add content placeholders (#203)
* Add placeholders for Send section

* Add placeholders for Receive section
2022-04-18 09:39:33 +02:00
Thebora Kompanioni
6e3ebf019b
fix: use 1000 as websocket close code (#219)
Firefox throws a `DOMException` when using `1001` as close code: `A parameter or an operation is not supported by the underlying object`.
Cannot really find out why this is, but in this case it does not really matter, as the code only runs if there is no connection in the first place.
2022-04-15 12:18:47 +02:00
Thebora Kompanioni
825f725053
feat: add cheatsheet (#211)
* feat: add cheatsheet

* show cheatsheet only when wallet is active

* display cheatsheat in dev mode only for now

* add close button to cheatsheet overlay (for mobile users)

* ui: visualize upcoming features in cheatsheet

* ui: show cheatsheet once after first wallet was created

* feat: add simple feature flags

Co-authored-by: Đorđe Spasić <34274884+Djo1e@users.noreply.github.com>
Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
2022-04-14 11:50:41 +02:00
Thebora Kompanioni
68da95817c
refactor: reload wallet info (#213)
* feat: add api call to get timelock address

* refactor: reset wallet info in WalletProvider

* refactor: move wallet info loading into WalletProvider

* review: inline function in CurrentWalletAdvanced component

* review: add comment on error handling in auto-reloading wallet info
2022-04-12 14:17:59 +02:00
Thebora Kompanioni
fa131ca596
ui: small ui fixes (#201)
* ui: adapt info alert color to match figma more closely

* ui: adapt connection indicator icon to match figma more closely

* ui: better visibility of disabled input fields in dark-mode

* ui: reorder form fields on send page to match figma

* ui: default to sending as collaborative transaction

* ui: add icons to receive/withdraw buttons in CurrentWalletMagic

* review: use Send/Receive instead of Deposit/Withdraw

* fix: spacing on send screen

* fix: make collapsed accordion buttons visible in dark mode

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-04-12 10:30:53 +02:00
Thebora Kompanioni
69fcbaff42
feat: add French translation (#216) 2022-04-11 16:25:40 +02:00
Đorđe Spasić
60847bd059
refactor: add route constants (#215) 2022-04-11 12:54:04 +02:00