Preheat your oven to 375°F / 190°C. Gently roll out the thawed puff pastry to fit your 14x4-inch rectangular tart pan or a 10-inch round pan. Carefully press the dough into the pan, trimming any excess. Use a fork to prick the bottom of the pastry all over—this prevents it from puffing up too much. Pop the prepared tart shell into the refrigerator to chill while you prepare the filling.
In a medium skillet, warm the olive oil over medium heat.
Add the sliced leeks and fresh thyme, and sauté until the leeks are beautifully soft and translucent, which should take about 5-7 minutes.
Season generously with kosher salt and freshly ground black pepper.
Remove the skillet from the heat and set it aside to cool to room temperature.
Retrieve your chilled tart shell from the fridge.
Spread the cooled leek mixture evenly across the bottom.
Next, create a delicious layer of cheese by arranging the raclette slices over the leeks.
Finally, arrange the thinly sliced tomatoes on top, either in overlapping rows for a rectangular pan or in a lovely concentric circle for a round one. A tiny pinch of sugar sprinkled over the tomatoes will help them caramelize beautifully.
Bake for 40–45 minutes, or until the crust is a deep golden brown and the cheese is bubbly and beginning to brown in spots.
Let it cool for a few minutes before slicing and serving.