In a large pot or Dutch oven, heat the olive oil over medium heat. Add the diced onion and cook until softened, about 4 minutes.
Stir in the garlic, carrots, and celery. Cook for another 5 minutes until the vegetables are tender.
Add the chicken breast to the pot. Pour in the chicken broth and bring to a boil.
Reduce the heat to low, cover, and simmer for 15 minutes, or until the chicken is cooked through.
Remove the chicken from the pot and shred it using two forks. Return the shredded chicken to the pot.
Stir in the heavy cream, dried thyme, dried oregano, and season with salt and pepper to taste.
Add the potato gnocchi to the soup and cook for 2-3 minutes, until the gnocchi float to the surface.
Stir in the fresh spinach and cook for an additional minute until wilted.
Serve hot, garnished with grated Parmesan cheese if desired.