Tropical compactification and the Gromov–Witten theory of $$\mathbb {P}^1$$P1