Commit Graph

28 Commits

Author SHA1 Message Date
Yusuf Seyrek
dca3f8a236
feat(Trade page): account details card (#348)
* feat(Trade page): account details card

* feat(account details): dont display the card when account has no deposits
2023-08-08 12:12:52 +03:00
Linkie Link
1a55d8bd39
Mp 3104 delete account (#336)
* MP-3104: added deleteAccount and alerts for vaults and debts

* MP-3104: added Borrow and Farm links to the AlertDialog

* MP-3104: finished delete flow

* fix: adjusted according to feedback

* refactor: tidy
2023-08-03 11:45:32 +02:00
Linkie Link
0aa3bb0c5f
MP-2798, MP-2799, MP-2902, MP-2893, MP-2895, MP-2896, MP-2898 (#312) 2023-07-25 09:48:59 +02:00
Linkie Link
df6d7a3ba2
overall cleanup and refactoring + SettingsModal (#286) 2023-07-11 21:01:14 +02:00
Yusuf Seyrek
c0d62cd8f0
feat: trade range input implementation (#287) 2023-07-07 18:19:00 +03:00
Linkie Link
cd8fa35b76
Mp 2821 unlocked positions (#284)
* feat: added unlock flow to the deposited farm row

* feat: added first itteration of unlocking/unlocked logic

* feat: introduce getVaultPositionStatus

* feat: added animated unlock label

* fix: size fix

* MP-2821: created the VaultUnlockBanner

* MP-2821: finished single vault withdraw

* MP-2821: finished vault unlock integration

* fix: implemented feedback

* tidy: refactor isWaiting > isConfirming

* fix: updated according to feedback

* fix: updated according to feedback

* fix: added useMemo for multiple values

* tidy: fixed some format issues

* tidy: updated svg icon implementation

* fix: fixed Bob’s glas-border issues

* fix: refactor modal max-widths

* MP-3031: moved deposit button into the table row
:

* fix: cleanup and adjustment to the button (according to layout)

* fix: added nested groups and finalized the label animation

* tidy: cleanup
2023-07-05 14:28:39 +02:00
Linkie Link
3c3e722c49
Mp 2821 unlocked positions (#276) 2023-07-04 16:15:36 +02:00
Bob van der Helm
39e745b210
Mp 2713 asset selector (#275)
* added dumb asset selector

* fix table layouts borrow and farm

* 🍱 added basic overlay, esc btn

* finish asset selector

* Update tailwind configf to include button styles
2023-07-03 09:39:34 +02:00
Bob van der Helm
ac7e82b0a4
Mp 2758 updated tooltip component (#238)
* update tooltip styling

* refactor Tooltip and fix build

*  add Tooltip unit tests

* remove width and height

* update tests and yarn format script

* Apply suggestions from code review

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>

---------

Co-authored-by: Yusuf Seyrek <yusufseyrek@users.noreply.github.com>
2023-05-31 10:34:26 +02:00
Bob van der Helm
de89ecb7ed
Mp 2757 token input errors (#235)
* Refactor TokenInput

* add TokenInput test + warning

* change title assigned select

* add unit tests for Card

* remove marketAssets from broadcast store
2023-05-30 09:01:07 +02:00
Yusuf Seyrek
ee20c2fde2
feat: finalize button component with tests (#224)
* feat: finalize button component with tests

* fix: import

* fix: import
2023-05-24 16:07:08 +03:00
Yusuf Seyrek
b24bbb3376
New architecture (#196)
* feat: move app to pages features

* feat: route changes

* Use React Router, Remove SSR

* Fix account menu

* Remove app folder

* remove old useParams

* Moved pages back to pages and refactor names

* add layout to route

* clean up

* create hooks for api fetching

* fix refetch of all data on tx complete

* formatting

* fix: fixed the wallet-connector race condition

* remove cosmjs/stargate (#202)

* remove cosmjs/stargate

* add Yusuf as code-orwner

* Singleton client (#203)

* remove cosmjs/stargate

* add Yusuf as code-orwner

* create signleton client and refactor vaults api

* update client name, add apollo apr env

* Setup validate-env and remove checking from apis

* uncomment vaults

* Resolve comments

* fix: html templating, add checks for hydration&window object, reduce bundle size (#204)

* fix: tests

* Fix routing and wallet client (#205)

* Add header to router (as layout)

* Refactor Wallet component

* Remove server fallback packages webpack

* add missing dependency for useeffect

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-05-16 12:39:52 +02:00
Bob van der Helm
4af7e63c5f
Mp 2538 tab component (#157)
* add basic endpoint for vaultConfigs

* implement apy for vaults

* add tab + update routing

* fixed routing issues

* change structure tab component
2023-04-16 16:32:14 +08:00
Linkie Link
eb814705f2
Mp 2344 fund credit account flow (#145)
* MP-2344: first draft for the fund account flow

* tidy: refactor

* fix: fixed the callback functions

* fix: fixed the toast message for funding

* fix: some logic fixes

* feat: enabled closing of “fund account”

* fix: z-1 to isolate

use isolate to create a stacking context

* tidy: deleted icons

* MP-2344: updated the tooltip

* MP-2344: new create and funding logic

* MP-2344: finished AccountList UI

* tidy: svg icon updates

* chore: updated dependencies

* feat: convert inputValues to amounts and amounts to inputValues

* fix: build fix

* fix: fixed imports

* fix: pr updated

* fix: fixed the SWR queries to not override themselves

* tidy: refactor

* feat: added TokenInputWithSlider

* tidy: refactor TokenInputWithSlider

* feat: preparations for the accountBalance calculations

* fix: removed formatCurrency from store

* feat: added global Coin type

* tidy: refactor delete and create credit account

* add useCallback to FundAccount

* update api + swr

* refactor naming, ssr accounts menu

* wip: added static params and href to DesktopNavigation

* fix: added TODO statement

* add middleware to get url

* feat: added scrolling to the active account

* tidy: UX improvement on the accounts list

* fix: updated the page params

* fix: fixed the navigation

* fix: fixed the getRouteParams

* fix: some logic updates

* fix: fixed the accountMenu view

* Keep page when selecting new account

* fix: fixed useParams

* fix: navigation update

* fix pr comments

* fixed build

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-04-06 19:20:17 +02:00
Linkie Link
a680f1ffde
Mp 2348 visual feedback on creating a credit account (#138)
* tidy: UI updates to the borrow tables

* feat: styled the toasts

* tidy: format

* fix: removed peer

* fix: fixed the svgs

* fix: stupid svgs

* rename: X to Cross

* tidy: wrap up the logic
2023-03-26 10:08:21 +02:00
Linkie Link
69da882fa0
feat: created the create account flow (#136)
* feat: created the create account flow

* fix: right not left

* fix: updated the styles and removed images

* tidy: refactor
2023-03-24 11:45:43 +01:00
Linkie Link
94175d6181
UI adjustments (#135)
* fix: restored sanity in fontSizes

* fix: added gap to borrow table

* env: dependency updates

* feat: added backdrop blur to clickaway overlay
2023-03-23 10:43:35 +01:00
Bob van der Helm
740e982956
Borrow modal adjustments (#128)
*   add Draggable

* 💄 Add martian red

* 🍱 Add Slider component

* 🔒 update yarn

* 🔥 remove unused components

* 🩹 fix graphql errors

* tidy: tailwind refactor

* set default port to 3001

* 🍱 add Divider and Container

* 🍱 add NumberInput

* allow left and right icon for button

* 🍱 add TokenInput, expand borrowModal

* update borrow modal, adjust modal component, remove container

* fix value change

* update svgs

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-03-22 15:12:19 +01:00
Linkie Link
e3118004ce
Small adjustments (#115)
* fix: added current SCs

* fix: fixed disabled buttons

* chore: updated all packages

* tidy: cleanup

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
2023-03-21 13:32:21 +01:00
Linkie Link
21268e5536
UI style updates (#106)
* feat: updates on the button styles

* env: updated yarn.lock

* fix: added account actions

* fix: updated the orbs logic

* fix: fixed the blur presets

* feat: updated the button logic

* fix: wallet modal style adjustments

* fix: updated close icon

* fix: fixed the close button

* fix: fix types

* fix: fixed the build

* tidy: component cleanup

* feat:  added new AccountDetails component

* refactor: propper usage of tailwind

* refactor: imports

* feat: added pages for all scenarios

* fix: fix the loading component

* fix: remove loading from default trade

* fix: fixed the build

* fix: fixed losing the provider on hotplug

* tidy: remove unused code

* fix: added error messages

* add borrow page structure

* env: enhanced debugging by restructuring the ENV object

* fix: fixed the build

* fix: fixed the wording on missing env variables

* feat: added button hover (#112)

* feat: added button hover

* fix: added bg transition to primary buttons

* feat: pages refactored (#111)

* feat: pages refactored

* fix: added loader for AccountNavigation

* fix: fixed the wallet store management

* fix: get rid of the walletSlice and refactor

* fix: added gap to the borrow page

* fix: fixed some dependencies

* fix: added initClients back

* fix: fixed according to feedback

---------

Co-authored-by: bwvdhelm <34470358+bobthebuidlr@users.noreply.github.com>
2023-03-08 10:44:39 +01:00
Bob van der Helm
29ce98f4d7
updated cards,borrow page (#102) 2023-02-24 15:19:23 +01:00
Linkie Link
b5c097d661
Upgrade next (#100)
* upgrade to next 13

* WIP: adjust to app dir

* add docker + wallet connector

* fix: update the wallet connect component

* tidy: format

* wip: make the wallet balance fetcher work

* fix balance retrieval

* MP-2258: added estimateFee hook (#94)

* Mp 2259 queries to api (#96)

* update next config for build errors

* Convert queries to API + remove config

* tidy: save some bytes by adding constants/env.ts

* tidy: added URL_ prefix to REST, RPC and GQL

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>

* MP-2261: created useBroadcast hook for transactions (#95)

* tidy: remove unneeded wallet images

* Mp 2264 convert store (#97)

* Merge stores into 1

* refactor codebase to use new store

* fiex build and rename whitelisted to marketassets

* tidy: import refactor

* updated account navigation basics

* feat: added loading component and fixed the disconnect button

* fix: format

* update new routing system

* update config and dependencies

* feat: create and delete credit account are restored

* tidy: format

* fix: fixed the deployment

* update route structure (#98)

* fix: creditAccountDeposit works again

* fix: bugfixes

* add apis, remove allowedCoins, get basic borrow tables (#99)

Co-authored-by: bwvdhelm <34470358+bobthebuidlr@users.noreply.github.com>

---------

Co-authored-by: bwvdhelm <34470358+bobthebuidlr@users.noreply.github.com>
2023-02-24 09:47:27 +01:00
Linkie Link
83fa513bf0
Mp 1691 credit account details (#67) 2022-12-13 14:21:30 +01:00
Linkie Link
c4f8f4eab0
Mp 1757 wallet connect (#66)
* MP-1757: implemented the WalletProvider and connect buttons

* tidy: tidy up the search

* MP-1691: moved modals outside of the DOM

* MP-1691: changed CreditManager into AccountDetails

* fix: fixed the naming

* MP-1691: UX approvements

* MP-1691: global confirm and delete modal added

* fix: merged the credit-account and wallet branch

* MP-1757: added the status store

* fix: updated the store interaction

* MP-1757: major cleanup of stores

* tidy: format
2022-12-08 21:14:38 +01:00
Linkie Link
2f7b266e6b
Mp 1671 header (#59)
* MP-1674: replaced the logo and added dekstop only nav

* MP-1677: borrowCapacity implemented into the SubAccount Nav

* MP-1677: adjusted the SubAccount navigation

* M1677: fixed the button and SearchInput component

* MP-1674: fixed the NavLink component

* MP-1674: fixed the SubAccount navigation

* tidy: cleaning up the trading view

* MP-1674: added withdraw and funding functions

* MP-1674: worked on the AccountStats

* MP-1671: modal work

* MP-1647: improvised CreditAccount expander

* tidy: fixed the page structure

* MP-1758: finished the SearchInput layout

* MP-1759: updated the semicircle graphs

* MP-1759: SemiCircle to Gauge

* fix: implemented animated numbers

* tidy: refactor

* MP-1759: added Tooltip to the Gauge

* fix: replace animate={true} with animate

* fix: fixed the Gauge timing

* fix: updated the BorrowCapacity styles

* fix: renamed SubAccount to Account

* fix: Text should not be a button, Button should be

* tidy: format

* fix: Text no clicky

* fix: replaced all the Text appearances with onClick
2022-12-06 10:20:22 +01:00
Linkie Link
ee71260429
MP-1660: base components (#57)
* MP-1660: base components

* fix: removed lodash.isequal
2022-11-29 17:45:00 +01:00
Gustavo Mauricio
5007acb515
WIP (#12)
* osmosis initial setup and nft contract queries/mutations

* display errors on ui

* fix: create credit account queryMsg and contract

* client initialization. loading indicator when pending io

* added tx feedback on toast

* remove unused wallet store code

* fetch credit accounts moved to external hook

* navigation copy

* file name typo

* remove console logs and unused imports

* fix: credit accounts query msg

* credit manager store. create credit account hook created

* delete credit account hook. fees declaration moved to utils

* update selected account when a new one is created

* type inference for mutation hooks

* loading indicator for async actions. onSuccess toast

* credit accounts popover

* minor improvements credit account slice

* credit manager module state and respective markup

* fix: credit account list threshold

* credit manager component. currency formatter function update

* update contract addresses

* borrow screen initial setup

* error handling mutation queries

* update credit account list when address changes

* update credit accounts query key to include address

* update selected account when nothing is selected

* credit manager wip. deposit and listing positions on credit account

* FundAccount component moved to different file

* removed unused code

* lending assets switch

* minor refactor injective balance hook to be more generic

* style: font size minor adjustments

* borrow action initial. display liabilities and borrow positions on credit manager

* positions amount formatting

* preserve selected account on local storage

* prettier custom settings and respective files formatting

* credit manager container moved to external file

* removed threshold variable. nav elements moved to array declaration

* Navigation component naming and minor cleanup

* react query keys enum

* query keys improvements

* initial generated smart contract api type definitions
2022-09-29 20:21:31 +01:00
gustavomauricio
732e23d15e initial setup wip 2022-09-02 15:30:58 +01:00