ArboreumDev / credit-union-frontend

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

v0lender onboarding #208

Closed djudjuu closed 3 years ago

djudjuu commented 3 years ago

closing #207

djudjuu commented 3 years ago

hi, I am quite okay with how this is atm.

still to do

next i would move the admin email to the .env file and figure out how to deploy this (a bit complicated as we need to do a db-migration)

djudjuu commented 3 years ago

There is a Form validation library Being used when u hit submit at the end. React-hook-form.

But that didn't behave too informative, eg it didn't shift focus to the field where the validation error occurred...it just stayed blank which was confusing.

There is the errors-property (or state rather) returned by useForm, but I couldn't figure out how to access it.

In the long run, we could maybe have one Form per onboarding step...

On Thu, Mar 18, 2021, 14:03 h-vishal @.***> wrote:

@.**** commented on this pull request.

In src/components/common/onboarding/onboarding.tsx https://github.com/ArboreumDev/frontend/pull/208#discussion_r596847120:

  • const tabFields = {
  • 0: [
  • "address",
  • "zipCode",
  • "phone",
  • "gender",
  • "dob",
  • "lastname",
  • "firstname",
  • ],
  • 1: ["accountNumber", "ifsc", "bankName", "accountType"],
  • 2: ["fatherLastName", "fatherFirstName", "employmentType", "income"],
  • 3: ["aadhaarPassword"],
  • }
  • const checkFields = async (

Is there a reason for not using a form validation library for this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ArboreumDev/frontend/pull/208#pullrequestreview-615357363, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACLMYXFKV3OQ7UQ6YTYNUWTTEH23JANCNFSM4ZI4CSXA .

h-vishal commented 3 years ago

@djudjuu you are checking the hasura seeds failure on the tests?

Let's create an issue to add authorization for access levels and an audit trail.

djudjuu commented 3 years ago

let me know what fields to remove from the onboarding sequqnce (if it is simple to get them from the aadhar files)....otherwise this now quieres all the info we need

@h-vishal

djudjuu commented 3 years ago

also I really should have done the production/deployment changes on a different branch....I am not again used to coding together again...