Received income from Illinois company after leaving it and moving to California: does it count as CA income?

My former company had a policy to process and pay income/bonuses for certain projects in a phased manner, even after an employee, like myself, leaves the company. So, I received income/bonuses a couple of times in late 2019, after leaving the company, for projects I had done in 2018 or early 2019.

I moved to California around Summer time 2019, so I'm trying to understand how to file those paychecks/incomes for my CA return and also for my IL return.

 

Turbotax says a "CA income" includes an income received while a resident of CA, even if the income is from work in another state. Does this apply to my situation? My confusion is mainly because, technically, I didn't "work" for those IL paychecks when I was a resident of CA, rather I just received the IL company paychecks when I was a CA resident, but the "work" itself happened while I was an IL resident.