FelipePSoares / EconoFlow

An easy system to help you control your personal or company budget.
https://econoflow.pt/
MIT License
2 stars 2 forks source link

fix: change input type of amount and budget fields to number (#256) #258

Closed AmirAbdollahi closed 2 days ago

AmirAbdollahi commented 1 week ago

What type of PR is this? (check all applicable)

Description

Related Tickets & Documents

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

AmirAbdollahi commented 1 week ago

Oh, it seems some tests have failed, and I think my changes were the cause.

FelipePSoares commented 1 week ago

@AmirAbdollahi ,

Yes, but no problem, you can run the tests locally easily. just run the application as usual and than go the folder 'easyfinance.client' and run the command npx cypress open. Then you can run the tests and see step by step what happen. Maybe just need to change something in the tests.

Let me know if you need some help.

FelipePSoares commented 1 week ago

@AmirAbdollahi

I modified the contributing.md to have more detail how to run the tests. If you need help to analyze them, just let me know.

AmirAbdollahi commented 1 week ago

@AmirAbdollahi

I modified the contributing.md to have more detail how to run the tests. If you need help to analyze them, just let me know.

Sure! Thank you very much. @FelipePSoares

AmirAbdollahi commented 6 days ago

@AmirAbdollahi

I modified the contributing.md to have more detail how to run the tests. If you need help to analyze them, just let me know.

FelipePSoares commented 6 days ago

Hi @AmirAbdollahi,

I saw that you comment empty. Can I help you with something?

AmirAbdollahi commented 6 days ago

Hi @AmirAbdollahi,

I saw that you comment empty. Can I help you with something?

Oh, I'm sorry. That was a small mistake on my part.

FelipePSoares commented 6 days ago

@AmirAbdollahi ok, no problem, just asking if you need something, but if everything is fine, good.

Have a nice day.

AmirAbdollahi commented 6 days ago

I'm so thrilled to see all the tests are green.

FelipePSoares commented 5 days ago

Hi @AmirAbdollahi,

I found some issues in specific languages and browser, but don't worry about that, thank you for your help, I'm working on your branch changing some details, when I finish it I'll update this MR with this changes and I advice you to check.

Sorry for not approve yet. But you make a good job, just some small points that I don't thing when I wrote the issue. hahaha

FelipePSoares commented 3 days ago

Hi @AmirAbdollahi ,

After a lot of study and errors. kkk I finally find a solution for the problem, but unfortunately I need to change from type="number" to type="text" again, because when it's type="number" the navigator just send the value when is a valid number, otherwise it send null and null in this situation is a valid value, because you can create a expense just with budget without value.

I will apply now the solution for the others forms, but I think that this way with inputmode="decimal" and validation based on user's language will be the best solution.

Thank you a lot and sorry to create a issue to put type="number" and now make it different, I really believed that type="number" was the best solution, but, no.

AmirAbdollahi commented 3 days ago

Hi @AmirAbdollahi ,

After a lot of study and errors. kkk I finally find a solution for the problem, but unfortunately I need to change from type="number" to type="text" again, because when it's type="number" the navigator just send the value when is a valid number, otherwise it send null and null in this situation is a valid value, because you can create a expense just with budget without value.

I will apply now the solution for the others forms, but I think that this way with inputmode="decimal" and validation based on user's language will be the best solution.

Thank you a lot and sorry to create a issue to put type="number" and now make it different, I really believed that type="number" was the best solution, but, no.

Hi @FelipePSoares,

Thank you so much for your feedback! I’m really glad you found the work helpful. Let me know if there’s anything else I can assist with or improve.

FelipePSoares commented 3 days ago

@AmirAbdollahi ,

No it's perfect, it's my fault, I'll finish now this issue. The other one that you are working on will be so helpful also. Thank you

FelipePSoares commented 3 days ago

Hi @AmirAbdollahi,

Finally I finished it. If you want to see what I did you can see in the changes. Now I'll just wait you finish yours to avoid conflits and then I apply this for edit forms also.

Thank you for your help again.

AmirAbdollahi commented 2 days ago

Hi @AmirAbdollahi,

Finally I finished it. If you want to see what I did you can see in the changes. Now I'll just wait you finish yours to avoid conflits and then I apply this for edit forms also.

Thank you for your help again.

Thank you very much @FelipePSoares . Ok. I'll try to finish it tonight.

AmirAbdollahi commented 2 days ago

Resolving conflicts ...

AmirAbdollahi commented 2 days ago

Resolving conflicts ...

Hi @FelipePSoares, Merge conflicts have been resolved. Please review the changes again before merging the branch.

FelipePSoares commented 2 days ago

Ok thanks

FelipePSoares commented 2 days ago

@AmirAbdollahi,

I need to apply the changes to the edit forms that you worked also.

FelipePSoares commented 2 days ago

Hi @AmirAbdollahi,

Finally we finalized this issue. thanks you for your help.