Impactworkers / iw-complaint-manager

Impactworkers Complaint Manager
1 stars 0 forks source link

Adjust loading logic for Avatar Menu component #92

Open justin-c-anthony opened 4 months ago

justin-c-anthony commented 4 months ago

Upon logging in, the user should see the user profile avatar menu located in the App bar with side nav component. The avatar should be in a loading state until the user's initials are retrieved. If there is an error fetching the user name, but the account is authenticated, a default avatar displaying the initials "IW" should be rendered in its place.

Current Behavior:

user logs in, loading state is initiated, then the default "IW" avatar briefly pops up showing "IW", followed by the fetched user initials.

Expected behavior: log in --> loading --> user initials or default

Check the loading logic in the useOktaGetUserName hook, the appBarWithSIdeNav, and AvatarAccountMenu components.