In a large pot, sauté the diced onion in olive oil over medium heat until translucent.
Add minced garlic and cook for an additional minute.
Pour in the chicken broth and bring to a simmer.
Add the shredded chicken and dried herbs (thyme and rosemary).
Stir in the potato gnocchi and cook for 3-4 minutes until they float to the top.
Reduce the heat and pour in the heavy cream, stirring well.
Add fresh spinach and cook until wilted, about 2-3 minutes.
Season with salt and pepper to taste.
Serve hot, garnished with fresh herbs if desired.