Commit graph

254 commits

Author SHA1 Message Date
Thebora Kompanioni
29eca37535
feat: payment confirm modal (#446)
* feat: payment confirm modal

* dev: show success text in confirm modal if privacy is enabled

* dev: improved sweep text in confirm modal

* dev: display source jar in confirm modal

* review: improve sweep info in confirm modal
2022-08-04 16:26:11 +02:00
Thebora Kompanioni
2d9d13ea90
feat: enable orderbook for all users (#445) 2022-08-04 15:13:43 +02:00
Thebora Kompanioni
952e24b2e9
feat: ability to sort and filter orderbook (#434)
* wip: parse orderbook

* dev: add 'orderbook' feature flag

* dev: remove orderbook request from App.jsx

* wip: add OrderbookOverlay

* fix: render order fee as balance only on abs offer

* fix: don not use orderId as key - it is not unique

* dev: show order type as badge

* fix: add reason to error message

* feat: sortable orderbook table

* feat: ability to filter orderbook by search value

* review: wrap orderbook overlay body in container

* chore: harmonize offcanvas-fullscreen style

* chore: harmonize body styles for fullscreen overlays

* chore: harmonize header styles for fullscreen overlays

* chore: harmonize overlay close buttons and headers in orderbook and earn report

* chore: background-color of orderbook container

* fix: make containers containing tables fluid on xs and sm screens

* chore: harmonize earn report overlay

* fix: same overlay container for all fullscreen offcanvas components

* dev: add title bar to orderbook overlay

* feat: add refresh functionality to orderbook

* fix: hide search criteria phrase if search value is empty

* Apply suggestions from code review

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

* Update src/components/Orderbook.module.css

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

* chore: optimize orderbook filter function

* review: disable search input on data reload

* review: improve filtered orderbook summary

* fix: update wording

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-08-04 15:13:13 +02:00
Daniel
1113e21147
fix: cheatsheet icon (#447) 2022-08-04 12:42:18 +02:00
Daniel
7d750ee043
refactor: remove advanced wallet mode (#443)
* refactor: remove advanced wallet mode

* fix: tests

* fix: remove remaining traced of advanced mode
2022-08-03 10:49:10 +02:00
Thebora Kompanioni
f27a27a93d
fix: color of light-button in dark mode (#442) 2022-08-02 15:41:27 +02:00
Daniel
61a39566f6
feat: utxo list (#430)
* feat: add tabbed control to jar overlay

* feat: add utxo table

* refactor: clean up overlay container

* refactor: clean up table

* feat: add alert

* refactr: re-add utxo modal

* refactor: add back old account details view

* refactor: delete old files

* fix: tests

* feat: add confirmations and refresh button

* fix: class name

* fix: paddings

* fix: acccordion shadow

* fix: bs colors

* fix: remove utxo conversion where not needed

* feat: i18n

* fix: button active color

* Update src/components/jar_details/JarDetailsOverlay.tsx

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

* fix: use lockgime from property instead of status

* fix: disable freezing and unfreezing when service is running

* fix: do not allow locked utxos to be unfrozen

* fix: make sure tab and content are in sync

* feat: add sorting by confirmations

* feat: add reset position to sort toggle

* fix: switch cancel button placement

* fix: right-align value column

* Update src/components/jar_details/UtxoList.tsx

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

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-08-02 15:24:10 +02:00
Thebora Kompanioni
2406c04a7a
feat: Orderbook (#422) 2022-08-02 14:55:32 +02:00
Thebora Kompanioni
3d3706f5b2
fix: invalid DOM property 'class' on Earn page (#431) 2022-08-02 12:31:32 +02:00
Thebora Kompanioni
96a401ccad
fix: text and border colors after bootstrap update (#432)
* fix: accordion text and border color in dark mode

* fix: button text color on dark theme

* fix: address-copy button padding
2022-08-02 12:30:59 +02:00
Daniel
c4a76fa967
fix: docs icon in settings (#439) 2022-08-02 12:01:08 +02:00
Thebora Kompanioni
6a8830f28d
feat: prevent address reuse on Jam page (#433) 2022-08-01 17:04:36 +02:00
Gigi
01515d7f14
feat(settings): add links to docs (#437)
* feat(sprites): add file sprite

* feat(settings): add link to jamdocs.org

* feat: add link to jamdocs.org in onboarding

* Revert "feat(sprites): add file sprite"

This reverts commit 09ddf2e9e7.
2022-08-01 16:38:09 +02:00
Gigi
ca3cc20e15
feat(settings): add link to Matrix and Jam's twitter (#436)
* feat(settings): add link to Jam twitter

* feat(settings): add link to Matrix

* fix(settings): repo rename

* feat: add matrix logo to sprite.svg

* fix(components): repo rename
2022-08-01 16:37:38 +02:00
Gigi
05c908d6f6
feat(cheatsheet): link to jamdocs.org (#429) 2022-07-26 16:30:22 +02:00
Thebora Kompanioni
087eb0782e
deps: update dependencies (#425)
* deps: remove unused lib moving-letters

* deps: update react-bootstrap from v2.4.0 to v2.5.0-beta.1

* deps: update react-router-bootstrap from v0.26.1 to v0.26.2

* deps: update bootstrap from v5.1.3 to v5.2.0

* dev: update node from v16.11.0 to v16.16.0 in GitHub build action

* dev: harmonize options button styles on Receive and Earn page
2022-07-26 16:29:49 +02:00
Gigi
b442d58b61
feat(cheatsheet): link to jamdocs.org (#427) 2022-07-26 15:45:55 +02:00
Gigi
893dfd0397
feat(cheatsheet): re-word to remove 'yield' (#426)
Fixes #326
2022-07-26 15:13:10 +02:00
Thebora Kompanioni
95def42255
refactor: move BalanceSummary to WalletContext (#419) 2022-07-26 12:29:08 +02:00
Thebora Kompanioni
47aab80467
refactor: move filtering for Fidelity Bonds to WalletContext (#418) 2022-07-26 09:16:37 +02:00
Thebora Kompanioni
662faf2c55
fix: do not display freeze info when all utxos have been selected (#420) 2022-07-22 11:58:33 +02:00
Thebora Kompanioni
24c0107036
fix: spacing in jar overlay header and onKeyDown (#421)
* fix: spacing in jar overlay header

* fix: onKeyDown handling in jar overlay
2022-07-22 11:55:47 +02:00
Daniel
ad50747818
feat: add description for second fidelity bond (#414) 2022-07-21 14:42:48 +02:00
Daniel
484afbc8ea
fix: jar spacing (#417) 2022-07-21 11:12:17 +02:00
Daniel
b2faeb7476
feat: show address reuse warning (#411)
* feat: show address reuse warning

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

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

* fix: typo

* fix: add null check

* feat: do not allow sending to reused address

Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
2022-07-21 11:03:46 +02:00
Daniel
dc36271aa6
feat: improve earn report (#409) 2022-07-19 13:56:48 +02:00
Thebora Kompanioni
a51cdbe53e
fix: color of selected collaborators-selector-input (#410) 2022-07-19 13:48:44 +02:00
Daniel
c361837fd5
feat: time-lock-icon (#402) 2022-07-14 12:03:19 +02:00
Gigi
53a694e44d
style: improve fidelity bond wording (#401)
* feat(earn): update FB wording

* feat(earn): more descriptive labels and buttons

* feat(earn): deposit duration -> bond duration

* fix: jar label

* feat(earn): improve jar and timelock wording

* feat(earn): report -> earnings report

* feat(earn): update FB wording

* feat(earn): call wizard "configure"

* feat(earn): more enthusiastic success!

* feat(earn): show different headline if 1+ FB exist

* feat(advanced): Account 0 -> Jar #0

* style(earn): utxo -> UTXO

* style: consistent jar capitalization

Specific jar: Jar #0 (uppercase)
Non-specific: one jar, many jars

* feat(wallet): write jar description

* fix: move remaining strings to translation file

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-07-14 12:02:31 +02:00
Daniel
389a9c4c2a
i18n: extract fidelity bond translation key (#393)
* dev: add type AddressStatus to WalletContext

* dev: add hook 'AddressSummary'

* fix: display status in utxo selector

* refactor: move 'addressSummary' to type WalletInfo

* feat: warn if non cj-out utxos selected

* fix: remove testing code

* i18n: extract keys

* review: allow expired cj utxos

* fix: remove unused imports

Co-authored-by: theborakompanioni <theborakompanioni+github@gmail.com>
2022-07-13 13:07:58 +02:00
Daniel
08b3e7f4b1
feat: mention jar #0 in preconditions (#395) 2022-07-12 16:26:30 +02:00
Daniel
bad9a5741a
feat: visual warning when selecting non cj-out UTXOs for fidelity bond (#392) 2022-07-12 14:49:43 +02:00
Daniel
efa3361177
feat: batch unfreeze UTXOs after creating fidelity bond (#388)
* feat: add batch unfreeze

* fix: do not unfreeze if there is nothing to unfreeze

* fix: icon margin

* fix: watch utxos to be spent
2022-07-12 09:04:53 +02:00
Thebora Kompanioni
ad14830899
refactor: add AddressSummary to WalletInfo (#383)
* dev: add type AddressStatus to WalletContext

* fix: display status in utxo selector

* refactor: move 'addressSummary' to type WalletInfo
2022-07-11 16:59:35 +02:00
Daniel
c25c3ce625
fix: advanced wording and behavior (#390) 2022-07-11 14:48:24 +02:00
Thebora Kompanioni
a98317b344
fix: encode wallet name param in url path (#389) 2022-07-11 13:56:50 +02:00
Thebora Kompanioni
e0f51faacb
fix: do not show FB create form when maker is running (#384)
* fix: do not show FB create form when maker is running

* fix: spacing

Co-authored-by: Daniel <10026790+dnlggr@users.noreply.github.com>
2022-07-08 11:24:32 +02:00
Daniel
72a3e8cff6
fix: reload utxos after creating a fidelity bond (#380)
* fix: reload utxos after creating a fidelity bondgst

* fix: remove unused import
2022-07-07 15:27:26 +02:00
Daniel
b4590c9be1
fix: change frozen icon (#379) 2022-07-07 13:11:20 +02:00
Thebora Kompanioni
0f7d590e35
fix: don not show expired fidelity bonds as locked (#378)
* refactor: move 'isLocked' from BalanceSummary to fb.utils

* fix: do not display 'locked' label for expired FB in utxo selector
2022-07-07 12:54:03 +02:00
Thebora Kompanioni
23f7383551
fix: pass body of confirm modal via child node (#377) 2022-07-07 12:01:37 +02:00
Thebora Kompanioni
21757e9588
fix: link to new fidelity bonds form in Cheatsheet component (#376) 2022-07-07 11:53:53 +02:00
Daniel
8608329f3e
feat: move fidelity bonds to earn screen (#361)
* feat: move fidelity bonds to earn screen

* feat: error handling

* fix: dark mode

* fix: consolidate old code

* fix: selection box ui

* fix: dark mode fix

* fix: remove cj-out testing rig

* fix: typos

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

* review: resuse settings from parent

* review: hide balance on existing fidelity bond

* review: clear alerts on successful requests

* review: do not compress selection box

* review: fix promise code

Co-authored-by: Gigi <109058+dergigi@users.noreply.github.com>
2022-07-06 14:54:19 +02:00
Thebora Kompanioni
004262deae
refactor: pass body of ConfirmModal as child node instead of parameter (#358)
* ui: harmonize modal button colors

* refactor: ConfirmModal from jsx to tsx

also use 'children' child node instead of 'body' property

* ui: remove border of buttons in footer of ConfirmModal

* Revert "ui: harmonize modal button colors"

This reverts commit c40b53007e.

* Revert "ui: remove border of buttons in footer of ConfirmModal"

This reverts commit 8ddd95eaf2.
2022-07-04 15:55:43 +02:00
Thebora Kompanioni
5796317294
ui: min-width for jar balances (#360) 2022-07-04 15:52:35 +02:00
Thebora Kompanioni
e3083b9c8b
fix: disable 'create wallet' link when unlocking wallet (#334)
* refactor: move lock/unlock wallet api calls from child component to parent

Wallet component should not make api calls; moved one level higher to Wallets component

* refactor: control Wallet component appearance from parent

* fix: prevent state update on an unmounted component on Settings page

* test: move lock/unlock wallet tests from Wallet.test to Wallets.test

* fix: disable 'create wallet' link when unlocking wallet
2022-06-28 14:39:00 +02:00
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
581184d92f
fix: Check preconditions before send request (#349)
* refactor: externalize CoinjoinPrecondition hook

* test: add test for CoinjoinPrecondition

* fix: check collaborative transaction precondition on Send page
2022-06-27 23:55:10 +02:00
Daniel
9fe84c8cda
fix: remove fidelity bond feature flag 2022-06-27 21:25:09 +02:00
Thebora Kompanioni
94d55a5316
ui: Receive screen advances (#347)
* ui: show sat symbol on amount input on Receive screen

* ui: style submit button on Receive screen
2022-06-27 15:49:27 +02:00