State tax filing

I did have the same employer in California the whole time, I had started work remotely from NY and was technically a legal resident of NY while living there in the beginning of the year before moving permanently to California.

I was preparing a part year return for both California and New York since I was a resident of both during the year, despite having all my income sourced and taxed in California-is this not the correct approach?
I assumed I technically owed NY taxes during the period I was a resident and was adding the other state tax credit on the part year NY return, which is where I was confused about what income to input.