The west bank isn't at war with Israel. There wasn't some conflict or event that has justified these actions.
I wish people understood this better. Even if you could manage to justify what's happening in gaza as "this is war", Gaza and the west bank are separate entities with separate governments. The west bank, in particular, is more like an Indian reservation in the US, with the Israeli government effectively exercising supremacy over all aspects of the government.
Theoretically, the IDF is supposed to be the police force for the west bank. That's why they occupy it.
Collective punishment is a war crime.
Gaza and the West Bank aren't countries, they have no autonomy. Palestine isn't a country, it was once where Israel now sits, but hasn't been since the 40s.
Palestinians are people, must like Jews are people. Palestinians are the indigenous inhabitants of Israel, the west bank, and gaza.
Much like all Jews aren't responsible for the actions of Israel, All Palestinians aren't responsible for the actions of Hamas. Even the residence of Gaza.
In the 40s, the British were ruling Palestine as a mandate, I wouldn’t really call that a country.
Except this situation has been going on like this for 60 years - with Israel, or the other western states having absolutely no plans to change anything about it (except making it even worse).
genocide 101