ArboreumDev / credit-union-frontend

Frontend in Next.js + Typescript + GraphQL
https://frontend-two-sandy.vercel.app
1 stars 0 forks source link

Some frontend issues #162

Closed gparuthi closed 3 years ago

gparuthi commented 3 years ago

Frontend observations

Untitled 1

FYI @djudjuu

Frontend Scenario Generated:

{
    "users": [
        {
            "name": "a b",
            "email": "amitabh@mail.com",
            "user_type": "borrower",
            "demographic_info": {
                "income": 300,
                "credit_score": 600,
                "education_years": 3
            }
        },
        {
            "name": "d p",
            "email": "deepika@mail.com",
            "user_type": "lender",
            "demographic_info": {
                "income": 300,
                "credit_score": 600,
                "education_years": 3
            }
        },
        {
            "name": "s k",
            "email": "salman@mail.com",
            "user_type": "lender",
            "demographic_info": {}
        }
    ],
    "actions": [
        {
            "id": 10,
            "action_type": "ADJUST_BALANCES",
            "payload": {
                "userEmail": "salman@mail.com",
                "balanceDelta": "20000"
            }
        },
        {
            "id": 11,
            "action_type": "ADJUST_BALANCES",
            "payload": {
                "userEmail": "deepika@mail.com",
                "balanceDelta": "150000"
            }
        },
        {
            "id": 12,
            "action_type": "CONFIRM_LOAN",
            "payload": {
                "amount": 50000,
                "loan_id": "312965e1-fba5-4301-b789-2b9d6cd6bd7b",
                "userEmail": "amitabh@mail.com",
                "supporters": [
                    {
                        "email": "salman@mail.com",
                        "pledge_amount": 10000
                    }
                ]
            }
        },
        {
            "id": 13,
            "action_type": "REPAY_LOAN",
            "payload": {
                "amount": "8763.95",
                "loan_id": "312965e1-fba5-4301-b789-2b9d6cd6bd7b",
                "userEmail": "amitabh@mail.com"
            }
        },
        {
            "id": 14,
            "action_type": "REPAY_LOAN",
            "payload": {
                "amount": "8800",
                "loan_id": "312965e1-fba5-4301-b789-2b9d6cd6bd7b",
                "userEmail": "amitabh@mail.com"
            }
        },
        {
            "id": 15,
            "action_type": "REPAY_LOAN",
            "payload": {
                "amount": "8800",
                "loan_id": "312965e1-fba5-4301-b789-2b9d6cd6bd7b",
                "userEmail": "amitabh@mail.com"
            }
        },
        {
            "id": 16,
            "action_type": "REPAY_LOAN",
            "payload": {
                "amount": "8800",
                "loan_id": "312965e1-fba5-4301-b789-2b9d6cd6bd7b",
                "userEmail": "amitabh@mail.com"
            }
        },
        {
            "id": 17,
            "action_type": "REPAY_LOAN",
            "payload": {
                "amount": "8800",
                "loan_id": "312965e1-fba5-4301-b789-2b9d6cd6bd7b",
                "userEmail": "amitabh@mail.com"
            }
        }
    ]
}