Manually Add a Ride to a Training Plan

Lost wifi during my last training plan ride and whilst it allowed me to save it to my activities with all the relevant data, it’s not showing as a complete ride/activity in the plan. It shows I still need to complete it!! How can I add this to the plan manually? I’ve named it correctly, but…