Closed jazzyjackson closed 4 weeks ago
finish this finish this finish this i wanna be able to meeeeerge so fun yay much wow
Latest commit: |
593a75a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://be56c9c5.pay-cwc.pages.dev |
Branch Preview URL: | https://feature-autoconvert.pay-cwc.pages.dev |
Is not GPT, is an old stack overflow, forgot to add the attribution to comply with CC-SA license but its there now.
I'll go ahead and be optimistic and use .replaceAll(',','') for cases of multiple commas
Do you want it to autofill the last '.00' if a user leaves it off? I decided to include it in the regex so the conversion to english only happens once a full amount is entered. I could make it so the english works when '22' is entered instead of '22.00' but its a smidge more code to check if the '.00' was left off and modify the user's entry but I didn't want to assume the intent.
I'll make a separate pull request that auto-scales text for both the amounts field and the endorsement.
Great.
Yes, if someone blurs with no decimals, like 20, then auto add .00
good idea.
Great.
!!!!!!!!!!!!!!!!!!!!!!! 🥰 🥰 🥰 🥰 🥰 🥰
This is so delightful. Gosh. Idk why I'm obsessing over it so much. It's a completely unnecessary thing but I think that's why it's like... Yeah!!!! It just adds delight. So cool. Merging!!!!!!! Really proud to show this one off.
Closes #6
WOAAAAAAAH wait was this GPT? :P NO DEPENDENCY AND IT WORKS. Yaycakes. SO FUN, so happy.
Problem: does not work for
3,451.21
does work for3451.21
... fix should just be.replace(',','')
early on, but don't want to mess with git conflicts. Does not work for200
but does work for200.00
.Note: For long amounts, text starts to overflow... prob can fix (A) set to wrap, center align to not wrap into bank address or (B) combine with #18 and do a quick
.length
check and if larger than some length (or better, use it as some ratio, like your log10 idea but different ratio of course) to update the CSS with X% smaller font size.