I feel for you. I am also suffering from depression and have days where doing anything besides laying in bed is all but impossible. Try to remember that with depression, some days are better than others. Maybe today those short bursts of productivity were all you could handle. That's ok. Personally, I try to simply do my best every day, knowing that my best will look different from one day to the next. Sometimes I need to take a day off from trying so hard and just freaking rest. On these days, I try to be as gentle with myself as possible. I tell myself that the rest of my life does not depend on just one day. This day will pass, and when it does, I can pick up and do the things I was too depleted to do today. So try to take the day off from beating yourself up. Know that battling depression is HARD work. Work I'd never wish upon anyone. Sometimes you deserve a break. I find that relaxation recordings and movies can help lessen anxiety when resting.
Good luck