Before you put it all back together, there are covers missing off of that driver, and it is a requirement that the grey sheath of the mains cable enters under that cover, with none of the brown or blue wires outside of it.
As it is, it merits a C2 "unsatisfactory", or even a C1 "unsatisfactory", depending on how exposed the live terminals are, if discovered by someone carrying out an EICR on the property.