TEAMMATES / teammates

This is the project website for the TEAMMATES feedback management tool for education
https://teammatesv4.appspot.com/
GNU General Public License v2.0
1.63k stars 3.26k forks source link

Accounts request form: auto-unify country names #13104

Open damithc opened 2 months ago

damithc commented 2 months ago

image

Current:

Suggested:

franciscoSavala commented 1 month ago

I would like to contribute with the first alternative, it would be useful to have the common variations of the countries

Shihuihuang1103 commented 1 month ago

@damithc I think we can implement a search bar for Country/Region that allows the user to input a value and choose a match from a drop-down menu. If the input doesn't match with any item, then we can simply store the user input? If you think it's a good idea, I can work on it.

example:

Screenshot 2024-05-27 at 9 02 00 AM
damithc commented 1 month ago

@damithc I think we can implement a search bar for Country/Region that allows the user to input a value and choose a match from a drop-down menu. If the input doesn't match with any item, then we can simply store the user input? If you think it's a good idea, I can work on it.

@Shihuihuang1103 Thanks for your interest in this issue. I'm curious as to which list of countries do you propose to use?

Shihuihuang1103 commented 1 month ago

@damithc I found these two sources for list of countries and regions:

Please let me know if you think either of the above lists would be a good reference for this feature, or if you have another list in mind. Thank you!

itstrueitstrueitsrealitsreal commented 1 week ago

@damithc @Shihuihuang1103 Hi, I was doing some research related to this issue, and I think that the ISO 3166 standard would be a good reference point for implementing this feature, as it is a universally accepted standard for country identification, and are easily integrated into the existing codebase with libraries such as iso-3166-1-alpha-2 and iso-3166-1.

damithc commented 1 day ago

@damithc @Shihuihuang1103 Hi, I was doing some research related to this issue, and I think that the ISO 3166 standard would be a good reference point for implementing this feature, as it is a universally accepted standard for country identification, and are easily integrated into the existing codebase with libraries such as iso-3166-1-alpha-2 and iso-3166-1.

@itstrueitstrueitsrealitsreal Sorry, I missed this earlier. Yes, this seems like a good way to go, provided users will still have the option to type their own as well.