Preheat oven to 400º F.
Leaving roots intact, slice leeks in half lengthwise. Rinse under cold water to dislodge any dirt between the layers. Most dirt is where the leek changes from white to green, about halfway up. Cut off dark green parts and discard. Slice the leeks into 1/4 inch half-rounds all the way down to the root. Discard the roots.
Melt butter in a sauté pan over medium-low heat. Add the leeks and cook until wilted and tender, about 15-20 minutes. Remove from heat and season with 1/4 teaspoon of salt.
Using a mandolin, slice skin-on potatoes into 1/8-inch thick rounds. Place slices in a bowl of cold water, rinse for 10 seconds, and drain. Place drained potatoes in a bowl and toss with olive oil, 1/2 teaspoon of salt, black pepper, and fresh thyme. Toss well and set aside.
Drain tomatoes in a colander. Working over the colander, use your hands to gently open the tomatoes and tear into large, flat chunks. Place drained tomato pieces into a bowl. Toss with the remaining 1/2 teaspoon salt, fresh basil, 3/4 cup Parmigiano-Reggiano, and heavy cream.
In an 8x8-inch enameled cast-iron casserole dish or a 9-inch cast-iron pan, spread 1/3 of the leeks in the bottom of the dish.
Layer with 1/3 of the potato slices, shingling them around in a circle until the surface is covered. Spread 1/3 of the tomato mixture over the potatoes. Repeat two more times.
Transfer the casserole to the oven, cover, and bake for 35 minutes.
Briefly remove from oven and sprinkle with remaining cheese.
Return casserole to oven, uncovered, and cook for an additional 25 minutes, until surface is bubbling and the cheese has browned.
Remove from oven and cool for 5 minutes and serve.