I am no legal eagle but if the car was repaired properly then I don't think they have any legal obligation to inform you it was in a smash (perhaps even they didn't know), as long as the car is legal.
Sorry my comments are not more supportive but perhaps it maybe an idea to speak to Arnold Clark and see what they say, you never know.