Commit graph

17 commits

Author SHA1 Message Date
Thebora Kompanioni
cac503fb35
refactor: move lock/unlock requests from Wallet to Wallets (#351)
* refactor: move lock/unlock wallet api calls from child component to parent

* refactor: control Wallet component appearance from parent

* fix: prevent state update on an unmounted component on Settings page
2022-06-28 13:14:50 +02:00
Thebora Kompanioni
c9007f5428
fix: checked state of ToggleSwitch can be controlled by caller (#332)
* fix: checked state of ToggleSwitch can be controlled by caller

* review: sane property names for ToggleSwitch component
2022-06-23 12:04:13 +02:00
Daniel
9d0021287f
feat: improve wallet control in settings (#325)
* feat: add lock and new wallet controls
2022-06-15 13:33:01 +02:00
Daniel
8f62a42302
fix: mobile layout issues (#311)
* fix: footer alignment

* fix: page titles

* fix: top padding on mobile

* fix: cheatsheet height

* linter: remove unused import
2022-06-09 15:52:03 +02:00
Thebora Kompanioni
e2d030e2b0
ui: Settings screen according to figma (#296)
* fix: align text in buttons on Settings screen

* fix: buttons and dropdowns should have same look and feel

* ui: add section titles 'Wallet' and 'Community' to settings page

* fix: open link to translation help page in new tab

* ui: add plus symbol to 'Create new wallet' button

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-06-07 17:39:35 +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
0addb967e2
ui: move seed phrase on settings page to modal (#206)
* ui: move seed phrase on settings page to modal

* custom btn-close style only inside modal-header

* better name for i18n key of seed modal info text

* review: remove unnecessary 'preventDefault' on settings page

* review: remove angle brackets from modal header

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

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-04-06 15:18:44 +02:00
Thebora Kompanioni
228c92ee55
Improve lock/unlock mechanism (#175)
* feat: add ServiceInfoContext

* use ServiceInfo in Navbar component

* move updating ServiceInfo with websocket data from App to ServiceInfoProvider

* use sessionConnectionError in App component

* use taker/maker info from ServiceInfo in App component

* move resetting wallet/walletInfo from App to ServiceInfoProvider

* fix: display wallet active state according to server session state

* always sort wallet array list by name starting with active wallet

* hide wallet list when reloading wallet data

* feat: add activity indicators to wallet list screen

* externalize JoiningIndicator component

* ui: hide unlock option for inactive wallets if maker/taker service is running

* refactor: use WalletContext and ServiceInfoContext consistently

* chore: use statusText as fallbackReason in Api.Helper
2022-03-21 17:31:31 +01:00
Daniel
63018ac96b
feat: translate screens (#174)
* Translate onboarding

* Translate navbar, app, footer

* Translate wallet card

* Translate wallet creation form

* Translate wallet confirmation

* Rename wallets.wallet key

* Translate current wallet

* Translate settings

* Translate send

* Translate receive

* Translate earn

* Fix linter warnings

* Fix tests

* Update src/components/Earn.jsx

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

* Update src/i18n/locales/en/translation.json

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

* Update src/components/CurrentWalletAdvanced.jsx

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

* Update src/components/Earn.jsx

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

* Update src/i18n/locales/en/translation.json

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

* Update src/i18n/locales/en/translation.json

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

* Remove dead code

* Parametrize num collaborators

* Added fallback for branch type

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-03-15 14:01:04 +01:00
secondl1ght
7fb76ff5d5
feat: add display seed phrase option to settings (#160)
* Initial draft

* Add display seed phrase in settings

* Fix bug

* Remove not needed code

* Update src/components/Settings.jsx

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

* Add error message to UI when API fails, only call API once, update state

* Fix conflict

* Update src/components/Seedphrase.jsx

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

* Update src/libs/JmWalletApi.js

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

* Update src/libs/JmWalletApi.js

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

* Update src/components/Settings.jsx

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

* Update src/components/Settings.jsx

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

* Variable name updates

* Run prettier

* Remove break

* Update public/sprite.svg

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-03-10 10:37:38 +01:00
Thebora Kompanioni
b38f7e840e
fix: use resolvedLanguage in language picker (#168)
* fix: use resolvedLanguage in language picker

* test for default language in Settings component
2022-03-09 19:56:08 +01:00
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
539175e096
refactor: dry up app layout (#126) 2022-02-25 12:12:28 +01:00
secondl1ght
cd2f0bf98b
feat: improve wording in settings (#71)
* Update settings wording to be more clear

* Use shorter conditional

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-09 11:18:11 +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
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