The history of the dark and luminous side of Milky Way-like progenitors