I don't find good shelf life on much of anything coming from a grocery store produce section. So my meal planning (a loosely applied term in my case!) comes down to: Buy meats in advance and vacuum seal and freeze them. For a dinner's vege choice, I go to the store (luckily only a three minute drive for me) and peruse the produce section to see what's on sale. The sale item's become the dinner's side dishes, unless they're on sale because they're past their prime. I'll buy produce to use within the next two or three days.
I keep a few staples that last forever to use if I can't find anything good at the store. Rice. Frozen corn. Those dried mashed potato flakes. Japanese or purple sweet potatoes (those seem to last forever and a day for me, unlike white potatoes). I tend to stay away from canned stuff, except for my preps. I just don't care for it much. Canned beans are one thing that I can tolerate however, so those occasionally are used for side dishes if the grocery store produce was not to my liking.
I do wish potatoes would last longer. Every time I yield to temptation to buy a larger bag of them because they are cheap, half of them end up getting thrown out. It's false economy to buy things like that.
One thing I have been surprised with in the produce section is the lettuce. The leafy green and red varieties do not last long. Romaine lasts slightly longer, but not by much. The winner for me - in both taste and longevity - is Butter lettuce (a.k.a. Boston lettuce). That stuff is a lot more expensive, but it lasts a long time and I think it tastes vetter than all the others and has a nicer texture. I would bet that iceberg lettuce might last a long time too, but I don't buy that because it tastes like absolutely nothing to me. It's crunchy water basically. Maybe homegrown iceberg is better, but store-bought is tasteless around here.