Skip to main content

Personas Account Switcher Selecting Child

EPIC: personas
G-2 — Account Switcher (viewing-as lens)
STORY: account_switcher
As a parent I can switch the viewing lens to a household member and always know whose content I am looking at.
AC: selecting_child
After selecting a child from the Profile inline roster, the "Viewing as" section title remains and a back-to-me row appears. Shell_AppBar shows "Viewing {name}" on every tab.
User Actions:
  • Tapped: widget with text "Pat"
Expect:
  • switcher section is rendered for a parent viewer
Events:
  • [ANALYTIC] [page]: ProfileRoute
  • MoreStarted
  • MoreCurrentMemberChanged
  • AccountSwitcherCubit

"Viewing as" header + back-to-me row appear after selection

Expect:
  • "Viewing as" section title is present
  • back-to-me row appears when lens ≠ self
Events:
  • ActiveIdentity_Cubit
  • TodayViewingAsChanged
  • AccountSwitcherCubit
  • ActiveIdentity_Cubit

tapping back-to-me clears the viewing-as state

User Actions:
  • Tapped: widget with text "Back to me"
Expect:
  • back-to-me row is gone after returning to self
Events:
  • ActiveIdentity_Cubit
  • TodayViewingAsChanged
  • AccountSwitcherCubit
  • ActiveIdentity_Cubit