What I perceive is what happened.
What happened is that Hamas failed to deliver what they promised. So they started a civil war.
Israel and the US immediately freaked out and nullified the free election.
And began attacking the Palestinians militarily and economically and making threats.
No, they didn't. At worst, Israel withheld the Palestinian tax money for a while, but that's hardly warrants Hamas starting a civil war and suspending democracy.
The US and Israel didn't nullify any election results. Nobody stopped Hamas from taking over and ruling the country, it's just that Hamas's policies were inadequate. There was no military reaction, an the economic reaction from Israel which involved withholding tax money collected on behalf of PA is hardly a devastating blow. Just last year when Palestine joined the International Criminal Court, Israel did the same thing. But that only lasted for a month or so and only achieved to made Israel look like the bad guy. Hamas could have easily countered Israeli economic pressure with diplomatic means like Abbas, but of course, Hamas wasn't really interested in running Gaza like a real country, it wanted to escalate the conflict.
It was also a chance for Hamas to show that they can run Gaza peacefully, and that Israeli withdrawal leads to peace. They had no desire of that and instead use gaza as a rocket launching platform, and they permanently squandered any hope of democratic Palestinian state.
Hamas offered Israel a 10 year cease-fire. Israel refused.
No, Israel hasn't refused any ceasefire. It's a long-standing Israeli policy to return silence with silence. As long as Hamas isn't firing rockets or mortars, Israel isn't firing back. It's that simple. If Hamas wanted a 10-year ceasefire, they could achieve it unilaterally by ceasing fire.
The faux "offers" that Hamas has made are all words and no actions to back them up. And that's a red herring anyway. Can you imagine, what Israeli opinion towards withdrawal from West Bank would be if the withdrawal from Gaza had given them ten years of peace? Can you imagine where Gaza could be economically if Hamas didn't drag it into a shooting war every other year? How do you think Israel could justify a blockade or controlling Rafah crossing if there hadn't been any violence in past decade or so? It's an opportunity to get what they want that Palestinian completely squandered. Palestinians could easily have made Gaza a positive example of what could be, while continuing the armed resistance in West Bank.