Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix:-Bug: Company Name and Phone fields accept misleading input #1047 #1050

Open
wants to merge 28 commits into
base: dev
Choose a base branch
from

Conversation

vr1Ravi
Copy link

@vr1Ravi vr1Ravi commented Apr 7, 2024

Description

Inside forms/DynamicForm, index.js. I've added onKeyDown event to contry and search component to prevent meleading input values.

shaikweb27 and others added 25 commits February 28, 2024 15:27
some code changes
code commit
removed wrong code
Updated invoice title
Updated space
Updated content
Added discount option in code
added address in customer
This commit addresses an issue in the frontend Dockerfile where the `CMD` directive attempted to execute `npm run local`, a script that doesn't exist in `package.json`. This discrepancy caused the Docker container for the frontend to fail to start, hindering the setup process for developers and contributors working with Docker.

Changes made:
- Updated the `CMD` in the Dockerfile to use `npm run dev -- --host 0.0.0.0`, aligning it with the available scripts defined in `package.json` and ensuring the development server listens on all network interfaces within the Docker container. This adjustment facilitates access to the frontend service from the host machine or other Docker containers.

Verification:
- Rebuilt the Docker image for the frontend and verified that the container starts successfully and is accessible on `http://localhost:3000`.
- Ensured that the frontend application functions as expected when accessed through the browser.

This fix streamlines the developer experience by ensuring the Docker setup process is smooth and aligns with the project's current frontend tooling configuration.
This commit addresses an issue in the frontend Dockerfile where the `CMD` directive attempted to execute `npm run local`, a script that doesn't exist in `package.json`. This discrepancy caused the Docker container for the frontend to fail to start, hindering the setup process for developers and contributors working with Docker.

Changes made:
- Updated the `CMD` in the Dockerfile to use `npm run dev -- --host 0.0.0.0`, aligning it with the available scripts defined in `package.json` and ensuring the development server listens on all network interfaces within the Docker container. This adjustment facilitates access to the frontend service from the host machine or other Docker containers.

Verification:
- Rebuilt the Docker image for the frontend and verified that the container starts successfully and is accessible on `http://localhost:3000`.
- Ensured that the frontend application functions as expected when accessed through the browser.

This fix streamlines the developer experience by ensuring the Docker setup process is smooth and aligns with the project's current frontend tooling configuration.
Fix: Update Dockerfile to use correct npm script for frontend service
fix 'req is undefined' error in payment controller
@inesmrad
Copy link
Contributor

inesmrad commented Apr 7, 2024

Thanks for your work @vr1Ravi but i just tested your index.js and unfortunately i'm still able to enter misleading inputs.
Screenshot (655)

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 7, 2024

@inesmrad I see, can you tell me which browser you are using.

@inesmrad
Copy link
Contributor

inesmrad commented Apr 7, 2024

@inesmrad I see, can you tell me which browser you are using.

i'm using Chrome version 123.0.6312.106

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 7, 2024

@inesmrad, could you check it now.

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 8, 2024

@inesmrad , could you please review the code I wrote. looking for your feedback.

@inesmrad
Copy link
Contributor

inesmrad commented Apr 8, 2024

Hey @vr1Ravi , your PR works perfectly , but i also have a small suggestion .You know when i try to input a number in the Name field, the numbers part of the keyboard is kinda blocked. Wouldn't it be more helpful to keep it this way but also to display a clear error message so that users don't get confused. The error message will help users understand why their input is not accepted, reducing confusion and improving the overall user experience. What do you think ?

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 8, 2024

Yes you are right. User might think "is something wrong with my kep board or app". A perfect error message will definetly enhance the UX. Let me try to add it.

@inesmrad
Copy link
Contributor

inesmrad commented Apr 8, 2024

Yes you are right. User might think "is something wrong with my kep board or app". A perfect error message will definetly enhance the UX. Let me try to add it.

Awesome !!

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 10, 2024

Hey @inesmrad, I did add the error message. Could you see if everything is ok.

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 11, 2024

Hey @inesmrad, looking for your feedback on the latest change that I've made.

@inesmrad
Copy link
Contributor

Hey @inesmrad, looking for your feedback on the latest change that I've made.

hi @vr1Ravi , it works for the company name but not for the phone (still able to input alphabetic characters)

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 11, 2024

@inesmrad, need little information, can you tell me in phone filed your are able to type any alphabate or only 'e'. Right now I've opend the repo and saw that for one time i am able to enter 'e' only. If you tell me the exact behaviour it would be helpful for me

@inesmrad
Copy link
Contributor

@inesmrad, need little information, can you tell me in phone filed your are able to type any alphabate or only 'e'. Right now I've opend the repo and saw that for one time i am able to enter 'e' only. If you tell me the exact behaviour it would be helpful for me

i'm able to type 'e' and ',' (comma) and i'm not getting an error message if i try to type another character, the keyboard is simply blocked

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 11, 2024

i'm able to type 'e' and ',' (comma) and i'm not getting an error message if i try to type another character, the keyboard is simply blocked

Could you check it now. This time I've added error message too and tell me if we need to change the content of error message.

@inesmrad
Copy link
Contributor

i'm able to type 'e' and ',' (comma) and i'm not getting an error message if i try to type another character, the keyboard is simply blocked

Could you check it now. This time I've added error message too and tell me if we need to change the content of error message.

All good , it's working perfectly fine now, thank you for your work !

@vr1Ravi
Copy link
Author

vr1Ravi commented Apr 11, 2024

All good , it's working perfectly fine now, thank you for your work !

Great to hear that everything is working perfectly now! You're welcome, happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants