Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Categoryselect refactor #284

Merged
merged 111 commits into from Jan 28, 2013
Merged

Categoryselect refactor #284

merged 111 commits into from Jan 28, 2013

Conversation

kflorence
Copy link
Contributor

This is a rather large commit, so here are the gist of the changes:

  • JavaScript code 100% rewritten. It is no longer dependent on YUI and has a much smaller footprint.
  • The extension has been refactored from one large file into several distinct files.
  • AJAX methods now live in a Nirvana controller.
  • Hooks have been consolidated and removed where possible with the remaining hooks living in a HooksHelper class.
  • HTML has been broken out into templates instead of being inlined in PHP.
  • i18n has been cleaned up, unused messages were removed, some new messages were added and some names were changed for better clarity. All of the messages have documentation.
  • Styles have been moved into Sass files and have been split across article and edit pages.
  • The article page category select module has been re-styled.

Split hooks into CategorySelectHooksHelper class, split html into templates, created CategorySelectController to handle requests.
…e, also set up skeleton for the other functions.
Remove the 'source mode' requirements of maintaining a wikitext data structure. Use the same UI and underlying data structures for both visual and source modes (BugId:48693)."
Added JavaScript logic for adding categories. Made the behavior of accessing categories more consistent. Moved the normalizing category function into the CategorySelect class.
Also create getExtractedCategoryData as a getter instead of trying to use getData as a multipurposed function (it's more explicit this way).
macbre and others added 21 commits January 17, 2013 13:21
…change summary

Conflicts:
	extensions/wikia/EditPageLayout/js/editor/WikiaEditorStorage.js
…ySelectStateOnLogin

Bugid 95455 wikia editor save category select state on login
Conflicts:
	extensions/wikia/CategorySelect/CategorySelect.i18n.php
	extensions/wikia/Development/Configs_DevBox/LocalSettings.php
	extensions/wikia/EditPageLayout/js/editor/WikiaEditorStorage.js
Fix Sizzle exceptions for invalid expressions when trying to match against strings in getCategories.
Always uppercase the first letter of a category to properly match Mediawiki titles.
@kflorence
Copy link
Contributor Author

Alright, I think this is good to go. Going to get a design / product check then we'll see about the merge.

kflorence added a commit that referenced this pull request Jan 28, 2013
@kflorence kflorence merged commit ec4fc08 into dev Jan 28, 2013
@kflorence kflorence deleted the categoryselect-refactor branch January 28, 2013 18:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
8 participants