Commit Graph

51 Commits

Author SHA1 Message Date
Reckless_Satoshi
27b265220e
Fix too-many fetchRobots and coordinator endpoints print 2024-01-14 18:20:48 +00:00
Reckless_Satoshi
39453058a3
Fix cancel button, add debug console log fetchOrder 2024-01-10 14:48:35 +00:00
Reckless_Satoshi
200efc5bc1
Fix coordinator avatars orientation 2024-01-07 22:20:55 +00:00
Reckless_Satoshi
a4b2327ff4
Small fixes and lint fixes 2024-01-07 14:16:26 +00:00
KoalaSat
94af0b2afd
Fix order autoupdate and chat (#1047)
* Fix Order autoupdate and chat

* Remove console.log
2024-01-06 12:33:57 +00:00
Reckless_Satoshi
278c222b85
Fix coordinator avatar on maker form 2023-12-30 16:07:50 +00:00
KoalaSat
8884c7f187
Fix and disable strict boolean lintern 2023-12-22 13:58:59 +01:00
KoalaSat
4a273fd98a
Avatar hashid in Garage (#983) 2023-12-15 15:17:46 +00:00
Reckless_Satoshi
2408190869
Fix statusToDelay, linting and others 2023-12-02 19:50:07 +00:00
Reckless_Satoshi
9fee3b3bba
Update temple of sats, new prettier format 2023-12-02 17:42:14 +00:00
KoalaSat
e8ec7f989a Adapt garage to coordinators 2023-12-02 10:40:59 +00:00
KoalaSat
eb840c5b14 Fix order workflow (#957)
* Order workflow working

* Refactoring
2023-12-02 10:40:59 +00:00
KoalaSat
937ac62c5d Change getRobot by getSlot (#955) 2023-12-02 10:40:59 +00:00
Reckless_Satoshi
4eb46f1e16 Fix lint issues 2023-12-02 10:40:59 +00:00
Reckless_Satoshi
2361b728fc Fix (some) lint issues 2023-12-02 10:40:59 +00:00
KoalaSat
293c0b604d Refactor contexts and models (#921)
* Add SVG icons for map pins

* Add federation basis and new coordinator form (#793)

* Add new coordinator entry issue form

* Add Federation basis

* Fix eslint errors from F2F and fix languages

* Redo eslint @typescript-eslint/strict-boolean-expressions

* Robot Page working

* Contexts Working

* Garage Working

* CurrentOrder working

* Federation model working

---------

Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
2023-12-02 10:40:59 +00:00
Reckless_Satoshi
d145c0c2d4
Fix hide F2F button on swap mode maker form 2023-10-18 10:35:36 -07:00
Reckless_Satoshi
d5f6e2cbd8
Fix f2f style and self-hosted assets 2023-10-17 05:21:18 -07:00
KoalaSat
004d98e0d9 New icons 2023-10-17 08:26:30 +00:00
KoalaSat
22b10df91d Code Review 2023-10-17 08:26:30 +00:00
KoalaSat
871299b3bf Order Map 2023-10-17 08:26:30 +00:00
KoalaSat
a338dfc2ee Book map 2023-10-17 08:26:30 +00:00
KoalaSat
7250286c0f Worldmap f2f Book orders 2023-10-17 08:26:30 +00:00
KoalaSat
412242865d Worldmap f2f selection 2023-10-17 08:26:30 +00:00
KoalaSat
33d18d67e5 Add location to F2F (frontend) 2023-10-17 08:26:30 +00:00
Reckless_Satoshi
5cf894bf4d
Update deps in package.json (#734) 2023-07-17 12:40:30 +00:00
Felix
c26e2f919a
Update handleCurrencyChange to not reset amount range on currency change in maker form (#692)
* Update handleCurrencyChange to not reset amount range on currency change

* Update MakerForm.tsx
2023-07-09 21:18:22 +00:00
Reckless_Satoshi
2a06eeb02f
Disable maker submit button on bad payment methods field 2023-05-26 04:38:39 -07:00
João Leal
9a1007775f
Fix bug with negative premium textfield (#614)
Fixing the type handlePremiumChange function to handle the discount to the right type (React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>)

Using the correct type of handlePremiumChange function, then deconstructing the "value" var from the event.target

Using Number(value) in declaration of "newPremium", instead of using multiplication with number and string

To not affect another methods using "premium" var, I used isNaN func to make a check and set the initial value of "premium" var to zero (if is NaN) or newPremium (when valid number is entered)

The fix in the bug is the line "premium: isNaN(newPremium) || value === '' ? '' : premium," in setMaker. That makes the "premium" var to be set to zero when the input is empty or not a number, allowing the user to input the "-" (minus sign) and not entering 0 as before.
2023-05-26 10:32:22 +00:00
João Leal
8a04474934
Add switch Amount Exact/Range (#577)
Created new state var amountRangeEnabled to control the new switch when advanced options is enabled.

Created memo var makerHasAmountRange to control boolean state of amount exact/range switch using maker.advancedOptions and amountRangeEnabled.

Used makerHasAmountRange instead of maker.advancedOptions when testing if maker is  using amount range or exact amount (changeds places: handleCreateOrder, disableSubmit, amountToString in SummaryText, and in the Amount fields).

Change the default value of amountRageEnabled

Changed the default value of state var "amountRageEnabled" to true, and removed unnecessary use of the method "setAmountRangeEnabled" when chaging between advanced and default options.

Fix style of switch Exact/Range Amount

Fixing the style of the div of the "Exact/Range Amount" Switch removing the unecessary "width" and "height" props and adding a negative marginTop to reduce the gap between buy/sell buttons and the amount input commented in the PR, and added a padding bottom to the label of the amount (exact) to not hide the switch.

Inverting the position of the icon to match the style of the "Advanced Options" Switch.

Fixing the title from tooltip of the switch (the order of the titles was inversed and the text of the Exact Amount was wrong).

Define style of Exact/Range Amount Switch

Last change in the style of the new Exact/Range Amount Switch, following the review recommendations.
2023-05-18 11:38:23 +00:00
Reckless_Satoshi
1e39f32eb5
Fix usenavigate PRO (#571)
* Simplify and optimize nodeapp

* Add pro frontend

* Fix PRO errors
2023-05-12 12:51:52 +00:00
Reckless_Satoshi
0d180ee7c9
Small fixes, fix reconnecting websockets, fix rewards webln 2023-05-08 17:37:23 -07:00
Reckless_Satoshi
25f0b0eea5
Fix token auth native (#558)
* Fix token auth on Native

* Fix pre-release action
2023-05-06 13:42:48 +00:00
Reckless_Satoshi
a10f7f2e21
Add slashed return as rewards when bonded stake is uneven (#538) 2023-05-05 12:07:13 +00:00
Reckless_Satoshi
e6ddcf9e4b
Add RobotTokenSHA256 middleware, /api/robot and frontend entropy calc (#512)
* Add RobotTokenSHA256 middleware for in-the-fly robot generation/login

* Add RobotView, fix middleware, upgrade frontend

* Token header as base91

* Add OAS schema of RobotView

* Use RobotView on new fetchRobot(), mimick old fetchRobot() functionality

* Upgrade websockets for token based authentication

* Small fixes

* Add frontend token entropy checks, add token on route /robot/<token>

* Rename admin panel

* Collect phrases
2023-05-05 10:12:38 +00:00
Reckless_Satoshi
0477885998
Add maker summary to collected phrases 2023-05-02 03:54:18 -07:00
Reckless_Satoshi
4f2ef09c6f
Simplify routing (#458)
* Fix payment methods as icons memo

* Simplify pages / router

* Load current order on robotfetch
2023-04-26 12:10:21 +00:00
Reckless_Satoshi
28ef253020
Refactor context (#427)
* Move AppContext to top level

* Refactor context
2023-04-20 14:52:03 +00:00
Reckless_Satoshi
ab617ce608
Migrate mui-x components to v6 (#408)
* Migrate mui-x components to v6

* Collect phrases
2023-04-03 18:38:52 +00:00
Reckless_Satoshi
64f3243c53
Fix makerform UI current price 2023-03-15 04:41:50 -07:00
Reckless_Satoshi
b6129bb46f
Enhance clarity for swaps (#382)
* Improve clarity of swap orders

* Add descriptive send/receive amounts for swaps on Maker Page

* Add descriptive send/receive amounts for swaps on OrderDetails

* Collect new phrases

* Small fixes
2023-03-09 20:10:49 +00:00
Reckless_Satoshi
e69aa09bb6
Fix useffects for book/limit baseurl change, robot open profile and stats. 2023-03-04 11:49:10 -08:00
Reckless_Satoshi
74398a019c
Small fixes and updates 2023-03-03 07:25:21 -08:00
Reckless_Satoshi
d88c2a5eff
Add App context (#369)
* Refactor fetchRobot

* Add appcontext

* Robot recovery fixes

* Add usecontext on maker and settings forms

* Add usecontext to booktable

* Add useContext to order page and main dialogs

* Small fixes
2023-02-24 19:17:13 +00:00
Reckless_Satoshi
e7f745be13
Fix maker form tooltips for swaps 2023-02-11 05:59:43 -08:00
Reckless_Satoshi
965bbb0765
Enhance UI for Swaps (#346)
* Add better fiat/swap UI switches

* Add swap controls to booktable

* Enhance order details and take button for swaps

* Add swap specific order summary strings

* Add specific bond commitment descriptions for swap orders

* Fix cosmetics
2023-02-10 13:28:26 +00:00
Reckless_Satoshi
741fba11d5
Add swappable baseurls (#316)
* Add swappable baseurls (network and coordinators)

* Add testnet bitcoin styles

* Small fixes

* Small fixes
2022-11-07 16:45:05 +00:00
Reckless_Satoshi
b25230378e
Small fixes and partial TradeBox functional component (#309)
* Add Order model

* Add permanent settings

* Fix maker on book page

* Add chat models

* Attempt to fix Android cookies

* Add Tradebox Dialogs

* Add Lock Invoice box

* Add taker found prompt

* Fix load setting cookies

* Revert TradeBox for test release

* Refactor ordering of constructing theme

* Add load encrypted seetings
2022-11-07 10:13:02 +00:00
Reckless_Satoshi
227610c84a
Add Nav Bar, Settings Page, large refactor (#308)
commit a5b63aed93
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 10:46:05 2022 -0700

    Small fixes

commit d64adfc2bf
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 06:02:06 2022 -0700

    wip work on federation settings

commit ca35d6b3d2
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 04:05:33 2022 -0700

    Refactor confirmation Dialogs

commit c660a5b0d1
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sat Oct 29 13:36:59 2022 -0700

    refactor login (clean separation robot/info. Style navbar.

commit b9dc7f7c95
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Fri Oct 28 09:54:38 2022 -0700

    Add size slider and settings widget

commit 20b2b3dcd6
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Fri Oct 28 05:41:48 2022 -0700

    Add show more and Dialogs

commit da8b70091b
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Thu Oct 27 16:26:07 2022 -0700

    Add sliding pages

commit 6dd90aa118
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Thu Oct 27 06:34:58 2022 -0700

    Add settings forms

commit d3d0f3ee1a
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Wed Oct 26 04:16:06 2022 -0700

    Refactor utils
2022-10-30 12:13:01 -07:00
Reckless_Satoshi
a4a3dbb95e
Add RoboSats PRO frame as react layout grid playground (#299)
* Add react layout grid playground

* Add BookWidget and style

* Rename basic.js back to main.js
2022-10-22 14:32:33 +00:00