ENG-5098 Validate partitioning UI/CLI.

Sorry, but I fixed some awful indentation in the Javascript and it messed up the diff. I can provide a whitespace-insensitive diff if it would help.