department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

[FE] My VA: Remove My VA from unauth header #67050

Closed ajakabcin closed 12 months ago

ajakabcin commented 1 year ago

Background

The original purpose of having "My VA" in the unauth header on VA.gov was to let users know that there is personalized content once they log in. But now that we reroute from the homepage to My VA at login, we don't need it, so we're going to remove "My VA" from the unauth header (as seen below):

Screenshot 2023-10-06 at 11 16 29 AM

Slack thread with sitewide

Information about the injected header

Tasks

Acceptance Criteria

When a user is authenticated

When the user is unauthenticated

Validation

dellerbie commented 1 year ago

@ajakabcin @Samara-Strauss This is on staging now. Here is the feature flag, my_va_show_header_link, on staging:

https://staging-api.va.gov/flipper/features/my_va_show_header_link

By default, we won't show the My VA link, so we just need to enable this flag if we want to show it again.

Samara-Strauss commented 1 year ago

Looks like there are some bugs with this issue. The unauthenticated nav looks fine, but when I log into staging, this is what I am seeing:

image

The authenticated nav should look like this (this is production currently):

image

To be clear:

  1. My VA was supposed to be removed from the unauthenticated state only.
  2. My VA should still appear in the authenticated nav, and the My VA and My HealtheVet links should still be right-aligned.
ajakabcin commented 1 year ago

@dellerbie I moved this back in progress while you de-bug thanks!

ajakabcin commented 12 months ago

Confirmed My VA appears in the auth header (user 192): Screenshot 2023-10-25 at 2 50 00 PM

Confirmed My VA does not appear in the unauth header: Screenshot 2023-10-25 at 2 50 59 PM

ajakabcin commented 12 months ago

Turned the flag off in production which removes My VA from the unauth header. Screenshot 2023-10-27 at 12 15 14 PM

And with the fix that went out this week, confirmed My VA still appears in the auth header in production. Screenshot 2023-10-27 at 12 02 34 PM

Samara-Strauss commented 12 months ago

YAY! So excited to see this. I've validated this in production. We should be good to close.