that transistor handles all of the dome light activity and makes it dim
I think that was a result and not the cause, though it could be a secondary problem. you could cut that transistor off the board and live without automatic done lights
Id look at the wiring to the both dome lights and the trunk light