codecombat/app/views
Scott Erickson 7bab895dee Generalize new I18N view system
Previously, when diplomats submit translations, the system
would try to figure out whether it should be a 'patch' or a 'change',
and then would either create a patch for an admin or artisan to
review and accept or reject, or would apply the changes immediately
and they would be live. This was done as a compromise between
getting translations live quickly, but also preventing already-translated
text from getting overwritten without oversight.

But having the client handle this added logical complexity. So
this makes all diplomats submit patches, no matter what. The server
is then in charge of deciding if it should auto-accept the patch or not.
Either way, a patch is created.

There was also much refactoring. This commit includes:

* Update jsondiffpatch so changes within array items are handled correctly
* Refactor posting patches to use the new auto-accepting logic, and out of Patch model
* Refactor POST /db/patch/:handle/status so that it doesn't rely on handlers
* Refactor patch stat handling to ensure auto-accepted patches are counted
* Refactor User.incrementStat to use mongodb update commands, to avoid race conditions
* Refactor Patch tests
2016-09-09 10:59:26 -07:00
..
account Add first/last names to Account Settings 2016-08-01 14:12:35 -07:00
admin Course translations fixes 2016-08-18 13:29:52 -07:00
artisans Tweaks based on CR from Rob 2016-08-25 15:52:49 -07:00
clans Refactor level type checks for easy greppability (level.isType) 2016-07-14 08:58:43 -07:00
common Add course (name, description) translations 2016-08-18 10:10:18 -07:00
contribute Manually merge #3825: add Hawaiian 2016-08-08 13:10:28 -07:00
core Update i18n (#3907) 2016-09-08 22:48:28 +01:00
courses Do not fetch sessions for course instances that do not have classrooms 2016-09-06 12:43:06 -07:00
editor Add course (name, description) translations 2016-08-18 10:10:18 -07:00
i18n Generalize new I18N view system 2016-09-09 10:59:26 -07:00
ladder Fix play buttons not appearing sometimes on navigation 2016-08-30 16:05:31 -07:00
modal Remove name from loadModel 2016-02-18 16:44:40 +00:00
play Merge pull request #3872 from codecombat/filter-domains 2016-09-08 17:46:00 -04:00
teachers Fix algolia inputs in teacher signup form 2016-09-07 15:26:38 -07:00
user #3138 #3488 refactor UserView, MainUserView 2016-05-31 09:56:55 -07:00
AboutView.coffee Fix anchor links on /about 2016-05-31 15:37:30 -07:00
CareersView.coffee
CLAView.coffee
CommunityView.coffee Add logoutRedirectURL property to RootView, default to /, add exceptions 2015-12-18 10:02:03 -08:00
DemoView.coffee Fix some demo views 2016-01-07 09:40:35 -08:00
HomeView.coffee Update i18n (#3907) 2016-09-08 22:48:28 +01:00
LegalView.coffee Propagate i18n 2015-12-23 10:07:32 -08:00
NotFoundView.coffee
PrivacyView.coffee Add /privacy policy page 2016-02-02 15:13:54 -08:00
TeachersView.coffee Various fixes and changes to teacher-accounts and teacher-dashboard 2016-04-04 15:42:29 -07:00
TestView.coffee Implement HeroSelectModal for demo flow 2016-08-16 11:19:40 -07:00