refactor: migrate units/states/tasks/tasks.coffee from CoffeeScript to Angular#493
refactor: migrate units/states/tasks/tasks.coffee from CoffeeScript to Angular#493Sujay-Deakin wants to merge 7 commits into
Conversation
…s and remove tasks.coffee
|
The migration appears incomplete. The last commit restores the full AngularJS state config and There is also a behaviour regression in It would also be worth confirming that Finally, the The defensive null checks and removal of the old import are good. The routing side may need changes. |
|
Hi Thirumal, thanks for the detailed feedback! I've addressed all four points in the latest commit:
Tested locally, inbox and task explorer both load correctly after these changes. Let me know if anything else needs addressing! |
…ice compatibility
Description
Migrates
units/states/tasks/tasks.coffeefrom CoffeeScript/AngularJS to TypeScript/Angularas part of the ongoing Angular migration effort.
Changes
tasks.component.tswithUnitsTasksStateComponentreplacingUnitsTasksStateCtrltasks.component.htmlwith<ui-view>as the router outlettasks.component.scss(no custom styles needed)UnitsTasksStateComponentindoubtfire-angular.module.tsdoubtfire-angularjs.module.tsfor hybrid compatibilityimport 'build/src/app/units/states/tasks/tasks.js'fromdoubtfire-angularjs.module.tstasks.coffeeBug Fixes Applied During Migration
taskKeyfrom URL paramstaskKeyStringto a string before passing tonewTaskService$state.gowhen task is nulltaskKeyassignment using optional chainingpreventDefaultcondition with state name null checksTesting
taskDataobject initialises with correct default valuestaskKeysyncs correctly from URL params on load