-
Notifications
You must be signed in to change notification settings - Fork 975
Make Autofill country field into a dropdown list #9053
Comments
Hi guys, Anyone taken a stab at this yet? Im just starting into OSS and would like to give it a shot. Thanks! |
@dfperry5 nope, it's all yours! 😄 Let me know if you have any questions / need help / want someone to try out your changes 😄 |
@bsclifton Awesome :) I'll get right on it - I'll be working in the airports today so no promises on anything today, but ill try to have something to share soon! Thanks! |
@dfperry5 how's it going? Just wanted to check in 😄 Hope all is well |
@bsclifton It's going good :) Just a lot of reading through the code, etc :P Been a lot of just sitting in airports today. Also, just trying to make sure i have the process correct. It's cool if i just cut my own branch off master, and just start committing to that? I can post the branch name here so everyone can check it out? Thanks! |
So just to further clarify this issue -- The issue is when the user is enabling auto fill and filling out their address information. At that point, the input for country / region should be a dropdown? |
@dfperry5 when you visit We need to update our form to have a dropdown instead, offering a common selection of countries. I'd recommend getting it working with a few countries first to make sure you're comfortable with the solution. Once you're ready to add them all, you can find a list here 😄 |
for a demo of how to do a dropdown using our code, navigate over to The code for the form in the above screenshot can be found here: |
@bsclifton awesome! I'll comment back here once I have something working (most likely tomorrow evening est time)! Thanks for all the help! |
@dfperry5 perfect! You can fork Brave and start committing locally. Once you feel confident, you can submit a pull request (if you need help working with forks or git, let me know and we'll work it out 😄 ) |
@dfperry5, please set I remember @aekeus has the country list for add funds. Maybe he can give some input. |
@bsclifton I think i have it working on my local. I forked the repo here. I was trying to commit but, but I'm failing the pre-commit hook: Any ideas? |
@dfperry5 ah that error... Yeah, we need to fix that (captured here) In the meantime, you can edit with something like: That should let you add your files and commit 😄 I'd love to check it out once you have the code pushed. Thanks for digging in! |
This is the first pass at creating a dropdown for the country list in the about:autofill panel Fix brave#9053
@bsclifton I'm not sure its beautiful, but it seems to be working :) See here. Let me know whatcha think! Any suggestions are welcome. @darkdh I used the 2-Letter country codes as well -- feel free to check it out :) Thanks for all the help! |
Updated country name from Taiwain, Province of China to Taiwain Fix brave#9053
…or country localization modified: app/locale.js
…ame not country code
…tofill.js not the autofillAddressPanel component modified: app/renderer/components/autofill/autofillAddressPanel.js modified: js/about/autofill.js modified: js/about/autofill.js
…tofill.js not the autofillAddressPanel component modified: app/renderer/components/autofill/autofillAddressPanel.js modified: js/about/autofill.js modified: js/about/autofill.js
Creating a dropdown for the country list in the about:autofill panel Fix brave#9053
…list to just be countryCodes, and updating asssoicated references
Creating a dropdown for the country list in the about:autofill panel Fix brave#9053
Creating a dropdown for the country list in the about:autofill panel Fix brave#9053
…tries is a blank modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js
Issue #9053: Making country field in autofill a dropdown list instead of text input box.
When a user downloads a file to a location that they do not have access to, it currently just says "Downloading... 0%". This is to add a download state to indicate that the user doesn't have access to the director they are trying to download into. Commit list: - Add new download state - Update state if directory is unauthorized - Update electron download state change - Add 'Unauthorized' download state to 'clear completed downloads' reducer - Add isUnauthorized getter - Add unauthorized state as part of condition for hiding progress display - Add isUnauthorized to condition for rendering a download item - Set unauthorized as a stop condition for downloads - Set getL10nId for unauthorized downloads - Add 'unauthorized' as a style class for finished download items - Add downloadUnauthorized locale id for all languages TODO: Update localization for all languages for this state Fixes brave#7747 Update test Return 0% when download totalBytes is 0 or undefined Fix brave#10264 Updated code to handle falsey inputs + added more unit tests :) Auditors: @diracdeltas Test Plan: `npm run unittest -- --grep="downloadUtil"` Move properties inside main.less to window.less Closes brave#10860 Auditors: Test Plan: 1. npm run watch 2. npm start 3. Make sure the browser starts 4. Open the devtool and make sure the two properties are applied Converted Country Textbox to Select Dropdown Creating a dropdown for the country list in the about:autofill panel Fix brave#9053 Small cleanup for autofill country list per discussion in PR Auditors: @dfperry5 Fix two issues - handle when locale is called with null/undefined/falsey value (before would fail on toLowerCase()) - handle situation where activeTab is not set and developer tools are opened (will be fixed soon by @bbondy) Auditors: @bbondy, @dfperry5 Issue brave#9053 - Updating so that first option on dropdown for countries is a blank modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js Add 'CommonFormFullWidthDropdown' to commonForm.js Auditors: @cezaraugusto Test Plan: 1. Open about:autofill 2. Click 'Add Address' Update autofill webdriver tests to use Country as a dropdown value instead of a text field Auditors: @dfperry5, @darkdh, @luixxiul Test Plan: `npm run test -- --grep="Autofill" Style Edits Auditors: Test Plan:
Test plan
#10821 (comment)
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Make country into a dropdown list
Platform (Win7, 8, 10? macOS? Linux distro?):
All
Brave Version (revision SHA):
Brave 0.15.308
rev fc4b892
Muon 3.0.200
Screenshot if needed:
Future enhancement: make state field also drop down. Ref here
The text was updated successfully, but these errors were encountered: