Extension:Page Forms/Select2 for autocompletion/Progress Report

Switching Semantic Forms Autocompletion to Select2
 Public URL:  https://www.mediawiki.org/wiki/User:Jatin.me/GSoC14  Bugzilla report: Bug 61974 Announcement:  http://lists.wikimedia.org/pipermail/wikitech-l/2014-March/075276.html Status:  https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Select2_for_autocompletion/Progress_Report

Goals for the first half of the internship

 * Introducing the Select2 JS library to the current autocompletion system of Semantic Forms. Having discussed it with my mentors, we have decided to do this in conjunction with the jQuery UI Autocomplete which is used currently in SF for autocompletion.
 * Making 'combobox' input type in SF use this new Select2 library for autocompletion and see if everything works fine with this.
 * Switching the #forminput parser function which also supports autocompletion, on possible page names to use Select2 as well - and probably switch it to a combo box interface, for consistency.
 * Introducing a new input type, maybe called "tokens", that uses Select2, and holds a list of values.

Communication plan

 * Email - I will keep mentor updated about the progress.
 * Skype and gtalk - Skype and gtalk have been my primary means of communication with mentors.
 * IRC Channel - I also go on the #semantic-mediawiki channel during the working hours.
 * Mailing list - semediawiki-user mailing list will be used to communicate progress.

Lessons learned since 21st April

 * Report to your mentors regularly about the progress of the project because mentors will help in rectifying flaws, which you may not notice, before its too late.
 * Do not make things complex, keep them easy and simple.
 * Prioritize tasks to be done and focus on important deliverables.
 * Discussions and feedback make thing better.

Week 1: 19 May to 25 May

 * I dove into the Semantic Forms code for autocompletion, got myself familiar with it and understood how this all works. Here are some of the related files:
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Included the stuff related to Select2 JS library into the SF extension.
 * Tested if the Select2 library is successfully included and working fine with SF.
 * Started working on making 'combobox' input type use Select2 for autocompletion.

Week 2: 26 May to 1 June
Combo box using Select2 for autocompletion|none]]
 * Made 'combobox' use Select2 for autocompletion.[[File:ComboSelect2.png|link=https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Select2_for_autocompletion/File:ComboSelect2.png|thumb|160x160px|


 * Added a new attribute 'placeholder' to 'combobox'.
 * Now working on remote autocompletion for combobox.