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

Tweak to UI #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmrowietz
Copy link

Hi,
love the app. I have been playing around with it in the last week and am providing here a small tweak to the UI for adding a new set.

Change: After pushing "save", the text input fields get nicely formatted with toString() so they are consistent with the values read from the DB.

Also put the code for setting the text fields in its own method.

Best regards,

David

…stead of copy-pasting the same code 3x.

Additionally also update after saving. This way the text gets nicely formatted and reflects what actually in the DB.
@dmrowietz dmrowietz changed the title Tweak to Tweak to UI Oct 12, 2024
@brandonp2412
Copy link
Owner

Hi I understand what this change is trying to do but I can't reproduce it locally.

Can you please provide a video or steps to reproduce what bug this solves?

@dmrowietz
Copy link
Author

Hi,
sure, though i wouldn't call it a bug, rather UI polish. Basically the TextFields allow inputs like "098" and when I tried the app i accidentally input leading zeros a few times because on my phone these numbers are right next to each other.

The app correctly interprets 098 as 98 but this is not apparent to the user.

a.mp4

With the tweak the UI now shows 98, which is what is actually saved in the DB.

b.mp4

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.

2 participants