Deductions & credits

Does this mean I was a resident aliens for the first half of 2022 given I passed the substantial presence test? When filling tax return for part of the year I was a resident aliens, do I report income from all sources including international just for that period (Jan-July)?

 

However because my visa expired mid 2022 and I left the country for the UK, was my status non resident aliens for the second half? Am I only taxed on income from U.S. sources only for the second half? I did not earn any income from the US during the second half? What should I do?