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
sheshankarvapally
left a comment
There was a problem hiding this comment.
I reviewed PR #493 locally against the latest 10.0.x branch.
Initially, the frontend build was blocked by a TypeScript compile error in tasks.component.ts, but after the latest fix commit was pushed, I refreshed my local PR branch from upstream and confirmed the updated commit was checked out.
I then ran npm start again and confirmed that localhost now starts successfully. I tested the relevant Units/Tasks flow, including loading the app, opening the task-related area, checking the browser console, and confirming that the previous compile blocker is resolved.
I only observed a browser accessibility warning related to aria-hidden focus handling, but no blocking red console error from this PR flow.
Approved from my side. Nice work addressing the review feedback and fixing the build issue.
sakethsram8888
left a comment
There was a problem hiding this comment.
reviewed the migration changes and the follow-up fixes from the review comments. The routing cleanup, taskKey null guard, and scoped transitionService.onStart changes all look correct now.
Tested locally as well, inbox/task navigation and URL param syncing worked without issues, and I didn’t notice any regressions. Nice work on the migration and on addressing the feedback thoroughly.
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