Commit graph

290 commits

Author SHA1 Message Date
Thebora Kompanioni
141fb0c2b3
docs: update dev setup readme (#306) 2022-06-06 11:21:39 +02:00
Thebora Kompanioni
3b0a772f41
ui: blur Send form if service is running (#301)
* fix: initial loading flag in Send page correctly

* refactor: infer loading state on Send page from initializing and waiting flags

* ui: always blur send page if service is running
2022-06-02 15:10:45 +02:00
Thebora Kompanioni
db4f5ab18a
fix: loading state on Send page (#300)
* fix: initial loading flag in Send page correctly

* refactor: infer loading state on Send page from initializing and waiting flags
2022-06-02 15:00:27 +02:00
Thebora Kompanioni
90932ddabf
Fetch config values only once per wallet session (#299)
* dev: add ServiceConfigContext

* fix: load config values if absent

* dev: only load config vals when needed

* dev: reset service config ref if wallet changed

* dev: export useLoadConfigValue method of config context

* refactor: extract fetch method from ServiceConfigContext
2022-06-02 14:18:41 +02:00
Thebora Kompanioni
bf627e7ce1
fix: prevent unnecessary session requests (#298) 2022-06-02 13:57:12 +02:00
Thebora Kompanioni
9377b33a11
fix: prevent unnecessary wallet info requests (#297) 2022-06-02 13:28:20 +02:00
Thebora Kompanioni
6e67257213
ui: add hint about creating wallet duration (#295) 2022-06-02 13:19:16 +02:00
Thebora Kompanioni
fd954d1c8d
docs: describe 'common flow' in regtest readme (#291) 2022-06-02 13:17:59 +02:00
Thebora Kompanioni
5f9c88f0db
chore: dependencies update (#292)
* chore: update dependencies

 @types/jest       ^27.4.1  →   ^27.5.1
 @types/node      ^17.0.26  →  ^17.0.35
 husky              ^7.0.4  →    ^8.0.1
 i18next          ^21.6.16  →   ^21.8.4
 lint-staged       ^12.4.0  →   ^12.4.2
 react-bootstrap    ^2.3.0  →    ^2.4.0
 react-i18next    ^11.16.7  →  ^11.16.9
 typescript         ^4.6.3  →    ^4.7.2

* test: patch window.matchMedia in test setup

* chore: remove unused dependency nth-check
2022-06-02 13:16:01 +02:00
Thebora Kompanioni
072c63d011
ui: cheatsheet optimization (#293)
* refactor: more cheatsheet styles to own module

* ui: add tick as last item in cheatsheet

* feat: re-add link to Send screen on cheatsheet
2022-06-01 23:20:31 +02:00
Thebora Kompanioni
3806613a9d
ui: less vertical padding of main container on mobile screens (#303) 2022-06-01 15:23:40 +02:00
secondl1ght
b0c8c4f83c
fix: show balance in unit based on settings on Send screen (#276)
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-25 12:19:02 +02:00
Thebora Kompanioni
28574dd0fb
dev: add useBalanceSummary hook
* dev: add useBalanceSummary hook

* test: add minimal tests for useBalanceSummary hook
2022-05-25 11:53:48 +02:00
Gigi
44d7afebf5
chore(release): prepare v0.0.6 (#289)
* chore(release): prepare v0.0.6

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-05-19 15:05:08 +02:00
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