as someone who's gone down the rabbit hole of dishwasher home repair, I've created more problems than I've solved. I agree that maintenance is important, but when you get into replacing the seals and gaskets that can result in water flooding into your kitchen, i decided recently to draw a line. I'm now the proud owner of some fancy leak detection / moisture detection IOS products as a result. (and yes I'm aware there are better, low tech solutions like the "frog" on the market, but I chose to torture myself instead)
Put a drop of food colour on a paper towel. Let dry. Then leave that where drips might happen. The colour will run. I leave it for a few days after every plumbing repair.
Yeesh I'm starting to sound like a Bosch shill but they've had leak detection in all but their bottom rung dishwashers for a few generations. The current ones will actively pump the water out when a leak is detected.