Alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
Add logic to download Gravatar images to blob storage, addressing browser console warnings about "Tracking Prevention blocked" when loading assets from external sites. The Gravatar image is downloaded when a user is created and refreshed each time the user logs in.
To support this functionality, the logic for saving an avatar to blob storage has been refactored into a new, shared AvatarUpdater class. Additionally, a new GravatarClient has been created in a new Infrastructure namespace. This update demonstrates a method for extracting shared logic within a vertical-sliced architecture while adhering to the single responsibility principle.
Checklist
[x] I have added a Label to the pull-request
[x] I have added tests, and done manual regression tests
[x] I have updated the documentation, if necessary
Summary & Motivation
Add logic to download Gravatar images to blob storage, addressing browser console warnings about "Tracking Prevention blocked" when loading assets from external sites. The Gravatar image is downloaded when a user is created and refreshed each time the user logs in.
To support this functionality, the logic for saving an avatar to blob storage has been refactored into a new, shared
AvatarUpdater
class. Additionally, a newGravatarClient
has been created in a newInfrastructure
namespace. This update demonstrates a method for extracting shared logic within a vertical-sliced architecture while adhering to the single responsibility principle.Checklist