Commit graph

197 commits

Author SHA1 Message Date
Daniel
cc168eb49f
feat: i18n (#153)
* Add basic i18n with i18next

* Add transifex config

* Add translation strings for wallets screen

* Delete transifex config for now

* Remove suspension

* Add exemplary german translation

* Add language switcher

* Add link to telegram group for translations

* Update tests

* Fix hook deps

* Add tx config

* Move i18n code to subfolder

* Update i18n usage in tests

* Remove unused call

* Pull de translation from transifex

* Add npm scripts for pushing and pulling

* Put back deps

* Put deps into dev

* Add tx gh config

* Add readme

* test: add empty new lang

* Remove test langs

* Remove cli integration

* Update src/i18n/README.md

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

* Update src/i18n/README.md

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

* Update src/i18n/README.md

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

* Update public/sprite.svg

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

* Change link

* Run npm install

* Update readme

* Update readme again

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-03-09 16:47:17 +01:00
Daniel
26ffe8cdeb
fix: update suggested number of collaborators (#150)
* fix: update suggested number of colaborators

* Remove fallback

* Redo calculation

* Update initial calc
2022-03-07 15:29:50 +01:00
Thebora Kompanioni
3180103da6
fix: warn on missing config vars (#152)
* prevent update 'isReportLoaded' when Earn component is not mounted

* fix: better error message for missing fee_rel/fee_abs config values

* review: Update src/components/Send.jsx

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

* review: Update src/components/Send.jsx

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

* review: try enhance error message on all 409 errors

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-03-07 11:46:20 +01:00
secondl1ght
8415108ddb
docs: fix readme links (#154) 2022-03-04 19:52:34 +01:00
Daniel
ad90d1b754
Run npm install (#151) 2022-03-04 12:12:06 +01:00
Thebora Kompanioni
87299b3268
fix: use own qrcode component to display addresses (#146) 2022-03-03 15:47:27 +01:00
Thebora Kompanioni
41648c4728
chore: check for dependencies in dev setup scripts (#147)
* chore: check for dependencies in dev setup scripts

* chore: fix some shellcheck warnings in setup scripts

* chore: fix SC2155 shellcheck warnings
2022-03-03 14:16:21 +01:00
Thebora Kompanioni
57a563e97c
fix: fix tests after rename of app to Jam (#148) 2022-03-03 13:56:00 +01:00
Daniel
1343271c64
refactor: rename to Jam (#131)
* refactor: dry up app layout (#126)

* Rename and update readme

* Fix typos

* Run npm install

* Use html for header

* Update package name

* Add back alt texts

* Update title

* Add note about buggy raspiblitz

* Remove raspiblitz gotchas

* Update src/components/App.jsx

Co-authored-by: Max Hillebrand <30683012+MaxHillebrand@users.noreply.github.com>

* Update src/components/Onboarding.jsx

Co-authored-by: Max Hillebrand <30683012+MaxHillebrand@users.noreply.github.com>

* Run prettier

* Update CONTRIBUTING.md

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

* Update README.md

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

* Fix wording

* Update title

Co-authored-by: Max Hillebrand <30683012+MaxHillebrand@users.noreply.github.com>
Co-authored-by: d11n <mail@dennisreimann.de>
2022-03-03 12:07:45 +01:00
Thebora Kompanioni
90fa57374b
test: add basic test suite (#130)
* test: add basic test for App component

* test: add basic test for Wallets component

* Debug log only in dev env (spare test environment)

* ci: enable tests in GitHub build workflow

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2022-03-03 11:04:31 +01:00
Daniel
07621266ae
docs: update integrations in readme (#144) 2022-03-02 15:57:14 +01:00
d11n
c022c205bb
feat: allow for deployment in subdirectory (#129)
* feat: allow for deployment in subdirectory

* Fix sprite path

* Basepath fix

* Update proxy and websocket paths

* Add nginx for testing deployment in subdirectory

* Update docker/regtest/docker-compose.yml

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

* nginx: Move file and add websocket connection

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-03-02 12:37:29 +01:00
Daniel
4fa0d182a6
docs: update raspiblitz install instructions (#143) 2022-03-02 11:49:37 +01:00
secondl1ght
1852eca5c9
feat: remove privacy levels on receive screen in magic mode (#141) 2022-03-02 11:25:05 +01:00
Thebora Kompanioni
7fb425fd48
fix: add bottom spacing to onboarding screen (#128)
* fix: add bottom spacing to onboarding screen

* Update src/components/App.jsx

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

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-02-28 18:27:21 +01:00
Thebora Kompanioni
03e58c9059
feat: readd websocket connection (#122)
* feat: readd websocket connection

* add WebsocketProvider

* feat: update taker/maker state based on websocket data

* update connection indicator based on websocket state

* reconnect with linear backoff on websocket errors

the backend is not happy with a second instance in another browser tab
that send invalid tokens (e.g. because the previously used wallet was
locked in another tab). This introduces a linear increase to a max
of 10 seconds. Seems to ease the problem in the active tab.

* send keepalive message periodically

some webservers will close connections on inactivity rather
soon by default (e.g. nginx is 60s). this commit contains
sending a keepalive message periodically every 30 seconds.

Co-authored-by: d11n <mail@dennisreimann.de>
2022-02-28 13:23:44 +01:00
Thebora Kompanioni
bb186fdf54
Revert "feat: allow for deployment in subdirectory (#124)" (#127)
This reverts commit 4a3b16847e.
2022-02-28 13:21:57 +01:00
d11n
4a3b16847e
feat: allow for deployment in subdirectory (#124)
* feat: allow for deployment in subdirectory

* Fix sprite path
2022-02-28 10:37:31 +01:00
Daniel
539175e096
refactor: dry up app layout (#126) 2022-02-25 12:12:28 +01:00
Daniel
198a741a4e
fix: set state on mounted component only (#125) 2022-02-23 18:15:29 +01:00
d11n
d4c7a49d5d
fix: react classname markup (#123) 2022-02-23 13:00:50 +01:00
Daniel
f11b1fea66
docs: add contribution guide and refactor docs (#119)
* Add contributing guide

* Restructure docs

* Update CONTRIBUTING.md

Co-authored-by: Max Hillebrand <30683012+MaxHillebrand@users.noreply.github.com>

* Update CONTRIBUTING.md

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

* Add syntax to code fences

Co-authored-by: Max Hillebrand <30683012+MaxHillebrand@users.noreply.github.com>
Co-authored-by: d11n <mail@dennisreimann.de>
2022-02-23 11:12:10 +01:00
Thebora Kompanioni
d2c36bfc65
fix: suggest number of collaborators based on configured minimum (#116)
* fix: respect minimum_maker conf value on Send page

* cleanup: remove extracting error message from text/html

* fix: adapt initial val for collaborators based on min val

* Update src/libs/JmWalletApi.js

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

* review: suggest reasonable default number of collaborators

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-02-22 13:20:34 +01:00
Thebora Kompanioni
354cc97d6a
dev: use joinmarket-webui-dev-standalone in regtest setup (#99)
* feat: use joinmarket-webui standalone container in regtest setup

* dev: use build flag --docker-install in regtest env

* dev: build first jm instance from master; remove image based on btcpayserver

* dev: fix creating wallets in docker setup 'latest'

* update: use newest dev image from public registry

* review: remove checksum of dev-standalone image

* review: add '--pull' arg to docs for rebuilding regtest setup
2022-02-21 14:39:59 +01:00
Daniel
410f4d6635
chore(release): prepare v0.0.3 (#113)
* chore(release): prepare v0.0.3

* Update changelog

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-02-18 19:23:59 +01:00
Daniel
b104cbf78f
devtools: document and further automate release process (#112)
* feat: version bump and changelog automation

* Automatically commit and open pr

* Add release docs

* Mention gh

* Remove reviewers
2022-02-18 11:05:46 +01:00
Thebora Kompanioni
2c2d228754
feat: freeze/unfreeze utxos and fix style on dark theme (#110)
* feat: add freeze rpc call

* fix: display utxos in style of active theme

* cleanup: do not pass unused params to DisplayUTXOs

* feat: add unconfirmed badge to utxo if applicable

* feat: ability to freeze/unfreeze utxos in advanced mode

* ui: improve utxo rendering on mobile

* ui: improve account rendering in advance mode on mobile
2022-02-18 10:11:09 +01:00
Thebora Kompanioni
68e7a7fab8
feat: update wallets page (#108)
* refactor: get current wallet from context on wallets page

* refactor: pass className to Wallet component

* refactor: remove row/col from Wallet layout

* ui: use PageTitle on Wallets page

* ui: increase Create Wallet button size if no wallet exists

* refactor: remove duplicate class names from wallet

* review: center 'Your wallets' heading

* fix: fix wallet list form on mobile
2022-02-17 18:32:58 +01:00
Daniel
4159fac230
fix: improve onboarding mobile layout (#109)
* fix: improve onboarding mobile layout

* fix: dom warning
2022-02-17 17:34:14 +01:00
Daniel
56b4d1e64f
feat: add quick hide balance (#106) 2022-02-17 15:57:25 +01:00
Daniel
e83ebb9389
docs: add automated changelog generation (#103)
* Add changelog

* Update to only generate changelog

* Fix version
2022-02-17 11:13:00 +01:00
Thebora Kompanioni
cea035da5c
fix: enable fetching manifest with credentials (#104) 2022-02-17 10:19:30 +01:00
Thebora Kompanioni
5b7fc982e5
feat: ability for reverse proxy to enforce own auth scheme (#102)
Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-02-16 14:14:07 +01:00
Daniel
ac762c5204
fix: fix and dry up font featues (#98) 2022-02-15 12:57:07 +01:00
Daniel
ab13f77285
Fix footer (#97) 2022-02-15 11:53:21 +01:00
Daniel
20aa39bce2
fix: add integration pr links to readme (#95) 2022-02-15 11:45:43 +01:00
Thebora Kompanioni
9d0baf1173
fix: condition check during wallet confirmation (#93) 2022-02-15 11:06:13 +01:00
dependabot[bot]
257f617813
build(deps): bump follow-redirects from 1.14.7 to 1.14.8 (#94)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 11:04:22 +01:00
Daniel
f359c8951b
Add disclaimer (#92) 2022-02-14 18:52:24 +01:00
Thebora Kompanioni
8c14fcbd29
fix warnings during build (#91)
* fix: prevent warning react/react-in-jsx-scope

* fix: prevent warning react/jsx-no-target-blank
2022-02-14 18:33:04 +01:00
Thebora Kompanioni
7d62a3820a
feat: update earn page (#82)
* always display yielgen report with max width

* lowercase 'sats' to be consistent with 'send' page

* display success alert when service is running

* fix: display info text if taker is running

* feat: add table footer to report and reduce lines

* review: keep feeRel state as factor

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-02-14 17:52:59 +01:00
Thebora Kompanioni
4070d7026c
fix: display info text on send page if service is running (#86) 2022-02-14 17:45:13 +01:00
Thebora Kompanioni
6f0f515e87
fix: navigate to root on unmapped path (#89) 2022-02-14 14:20:23 +01:00
Daniel
756d8e8a93
feat: update receive page (#85)
* Basic refactor

* Hide balances

* Update src/components/Send.jsx

* Fix dark theme

* Remove old prop

* Use api helper

* Fix feedback

* Update src/components/Send.jsx

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

* Update wording

* Add custom validation

* Update number class

* Make default collaborators random

* Reset values after send

* Fix pasting

* Update receive page

* Add copy error alert

* Fix for dark theme

* Add ios copy disclamer

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
2022-02-12 19:10:58 +01:00
secondl1ght
3b882f4da8
feat: rename accounts to privacy levels (#79)
* Change accounts to privacy levels

* Add conditional for advanced users

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-02-11 17:00:33 +01:00
Thebora Kompanioni
ffa1afa31a
fix: extract error message of text/html response (#84) 2022-02-11 14:24:37 +01:00
Daniel
0d71915180
feat: update send page (#76)
* Basic refactor

* Hide balances

* Update src/components/Send.jsx

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

* Fix dark theme

* Remove old prop

* Use api helper

* Fix feedback

* Update src/components/Send.jsx

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

* Update wording

* Add custom validation

* Update number class

* Make default collaborators random

* Reset values after send

* Fix pasting

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
2022-02-11 11:30:13 +01:00
Thebora Kompanioni
b37de7083e
feat: display basic yield generator report (#73)
* feat: display basic yield generator report

* feat: add toggle for yield generator report

* review: use button instead of toggle to show/hide report

* review: better message on yield generator report error
2022-02-11 10:09:30 +01:00
Daniel
174726b74f
feat: hide sensitive info on wallet create (#77)
* feat: hide sensitive info on wallet create

* 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-10 10:35:53 +01:00
secondl1ght
f900344549
feat: update wallets page (#64)
* Update wallets page to shown active indicator and move buttons inline

* Smaller header, updated button styles, dividers instead of cards, center

* Update wording for button

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

* Update header

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

* Updates based on feedback

* Fix buttons and small things for light theme

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-02-10 10:35:36 +01:00