Organization Selection Screen
Feature Detail
Description
A pre-login screen that allows users to select which organization they belong to before proceeding with authentication. This is required because the app serves multiple organizations (NHF, Blindeforbundet, HLF, Barnekreftforeningen) each with their own terminology, branding, and configuration. The selected organization determines the label system, terminology, and org-specific configuration loaded throughout the app. Selection must persist across sessions so returning users are not forced to re-select on every login.
Analysis
Enables a single app to serve multiple organizations with distinct identities and configurations, reducing maintenance overhead while preserving each org's brand and terminology.
Implemented as a StatefulShellRoute entry point. Organization choice stored locally (SharedPreferences or similar). Drives the OrganizationLabels system for dynamic terminology throughout the app.
Components (204)
Shared Components
These components are reused across multiple features
User Interface (59)
Service Layer (52)
Data Layer (33)
Infrastructure (54)
User Stories (18)
As a As a Peer Mentor (Likeperson)
I want to see a clear onboarding progress indicator when I select my organization for the first time
So that I understand how many setup steps remain before I can start using the app and do not feel lost during my first session
- Given I am a first-time user who has just completed BankID or Vipps authentication, When the org selection screen appears, Then an onboarding progress indicator is visible showing my current step in the setup flow
- Given I am a returning user with a previously persisted org selection, When I open the app and reach the org selection screen, Then no onboarding progress indicator is shown
- Given the onboarding progress indicator is visible, When I select an organization and proceed, Then the indicator updates to reflect completion of this step before navigating forward
- +1 more
As a As a Peer Mentor (Likeperson)
I want the organization selection screen to use each organization's own terminology for roles and labels
So that I immediately recognize which organization I am selecting and understand the role I hold there using language familiar to that organization
- Given I belong to two organizations with different terminology configurations, When the org selection screen loads, Then each organization card displays the role label using that organization's own terminology
- Given an organization has a custom label configured for 'peer mentor', When I view that organization's card, Then the role is displayed using the custom label, not a hardcoded default
- Given terminology data is not yet loaded for an organization, When that org's card is rendered, Then a sensible fallback label is shown and the UI does not crash or show a blank role label
- +1 more
As a As a Coordinator
I want to see a clear onboarding progress indicator when I select my organization for the first time
So that I understand how many setup steps remain before I can start using the app and do not feel lost during my first session
- Given I am a first-time user who has just completed BankID or Vipps authentication, When the org selection screen appears, Then an onboarding progress indicator is visible showing my current step in the setup flow
- Given I am a returning user with a previously persisted org selection, When I open the app and reach the org selection screen, Then no onboarding progress indicator is shown
- Given the onboarding progress indicator is visible, When I select an organization and proceed, Then the indicator updates to reflect completion of this step before navigating forward
- +1 more
As a As a Coordinator
I want the organization selection screen to use each organization's own terminology for roles and labels
So that I immediately recognize which organization I am selecting and understand the role I hold there using language familiar to that organization
- Given I belong to two organizations with different terminology configurations, When the org selection screen loads, Then each organization card displays the role label using that organization's own terminology
- Given an organization has a custom label configured for 'peer mentor', When I view that organization's card, Then the role is displayed using the custom label, not a hardcoded default
- Given terminology data is not yet loaded for an organization, When that org's card is rendered, Then a sensible fallback label is shown and the UI does not crash or show a blank role label
- +1 more
As a As a Organization Administrator
I want to see a clear onboarding progress indicator when I select my organization for the first time
So that I understand how many setup steps remain before I can start using the app and do not feel lost during my first session
- Given I am a first-time user who has just completed BankID or Vipps authentication, When the org selection screen appears, Then an onboarding progress indicator is visible showing my current step in the setup flow
- Given I am a returning user with a previously persisted org selection, When I open the app and reach the org selection screen, Then no onboarding progress indicator is shown
- Given the onboarding progress indicator is visible, When I select an organization and proceed, Then the indicator updates to reflect completion of this step before navigating forward
- +1 more
As a As a Organization Administrator
I want the organization selection screen to use each organization's own terminology for roles and labels
So that I immediately recognize which organization I am selecting and understand the role I hold there using language familiar to that organization
- Given I belong to two organizations with different terminology configurations, When the org selection screen loads, Then each organization card displays the role label using that organization's own terminology
- Given an organization has a custom label configured for 'peer mentor', When I view that organization's card, Then the role is displayed using the custom label, not a hardcoded default
- Given terminology data is not yet loaded for an organization, When that org's card is rendered, Then a sensible fallback label is shown and the UI does not crash or show a blank role label
- +1 more
As a As a Peer Mentor (Likeperson)
I want the app to remember which organization I last selected and resume in that context when I reopen the app
So that I do not need to repeat the organization selection every time I open the app, reducing friction for my daily use
- Given I previously selected an organization and closed the app, When I reopen the app and authenticate with biometrics, Then I am taken directly to the home screen of my previously selected organization without seeing the org selection screen
- Given I have a persisted organization selection, When the app launches and my membership in that organization has been revoked, Then I am redirected to the org selection screen with a message explaining that my access to the previous organization has changed
- Given I have a persisted organization selection, When the app launches offline, Then the app uses the locally cached org context to load available offline data, displaying a banner indicating that data may be stale
- +2 more
As a As a Peer Mentor (Likeperson)
I want to switch to a different organization without logging out and back in
So that I can manage my responsibilities across multiple organizations efficiently within a single app session
- Given I am in an active session with Organization A, When I access the organization switcher in settings, Then I see a list of all my organizations with the currently active one indicated
- Given I select a different organization from the switcher, When the switch completes, Then I am taken to the home screen for the new organization and all visible data (contacts, activities, stats) reflects that organization only
- Given I switch organizations, When the new tenant context is set, Then the Supabase RLS configuration is updated to scope all queries to the new organization's data
- +2 more
As a As a Coordinator
I want the app to remember which organization I last selected and resume in that context when I reopen the app
So that I do not need to repeat the organization selection every time I open the app, reducing friction for my daily use
- Given I previously selected an organization and closed the app, When I reopen the app and authenticate with biometrics, Then I am taken directly to the home screen of my previously selected organization without seeing the org selection screen
- Given I have a persisted organization selection, When the app launches and my membership in that organization has been revoked, Then I am redirected to the org selection screen with a message explaining that my access to the previous organization has changed
- Given I have a persisted organization selection, When the app launches offline, Then the app uses the locally cached org context to load available offline data, displaying a banner indicating that data may be stale
- +2 more
As a As a Coordinator
I want to switch to a different organization without logging out and back in
So that I can manage my responsibilities across multiple organizations efficiently within a single app session
- Given I am in an active session with Organization A, When I access the organization switcher in settings, Then I see a list of all my organizations with the currently active one indicated
- Given I select a different organization from the switcher, When the switch completes, Then I am taken to the home screen for the new organization and all visible data (contacts, activities, stats) reflects that organization only
- Given I switch organizations, When the new tenant context is set, Then the Supabase RLS configuration is updated to scope all queries to the new organization's data
- +2 more
As a As a Organization Administrator
I want the app to remember which organization I last selected and resume in that context when I reopen the app
So that I do not need to repeat the organization selection every time I open the app, reducing friction for my daily use
- Given I previously selected an organization and closed the app, When I reopen the app and authenticate with biometrics, Then I am taken directly to the home screen of my previously selected organization without seeing the org selection screen
- Given I have a persisted organization selection, When the app launches and my membership in that organization has been revoked, Then I am redirected to the org selection screen with a message explaining that my access to the previous organization has changed
- Given I have a persisted organization selection, When the app launches offline, Then the app uses the locally cached org context to load available offline data, displaying a banner indicating that data may be stale
- +2 more
As a As a Organization Administrator
I want to switch to a different organization without logging out and back in
So that I can manage my responsibilities across multiple organizations efficiently within a single app session
- Given I am in an active session with Organization A, When I access the organization switcher in settings, Then I see a list of all my organizations with the currently active one indicated
- Given I select a different organization from the switcher, When the switch completes, Then I am taken to the home screen for the new organization and all visible data (contacts, activities, stats) reflects that organization only
- Given I switch organizations, When the new tenant context is set, Then the Supabase RLS configuration is updated to scope all queries to the new organization's data
- +2 more
As a As a Peer Mentor (Likeperson)
I want to see a clear list of the organizations I belong to when I open the app, and select which one I am acting on behalf of
So that I can work in the correct organizational context and ensure my activities, contacts, and reports are attributed to the right organization
- Given I have authenticated and belong to one or more organizations, When the org selection screen loads, Then I see a card for each organization I am a member of, showing the organization name and my role
- Given the org selection screen is displayed, When I tap an organization card, Then the app navigates to the role-based home screen for that organization and all subsequent data is scoped to that organization
- Given I belong to only one organization, When I authenticate, Then the app may auto-select that organization and skip the selection screen, navigating directly to the home screen
- +3 more
As a As a Peer Mentor (Likeperson)
I want to navigate the organization selection screen fully using VoiceOver or TalkBack
So that I can independently choose my organization without sighted assistance, in line with my organization's accessibility commitments
- Given I am a VoiceOver user on iOS, When the org selection screen loads, Then focus is automatically placed on the first organization card and VoiceOver announces the organization name, my role, and that the card is tappable
- Given I am using a screen reader, When I navigate through the list of organization cards, Then each card is announced with the organization name, my role within that organization, and any relevant status information
- Given I am using a screen reader, When I double-tap to select an organization, Then VoiceOver announces confirmation of the selection and that the app is loading the home screen
- +3 more
As a As a Coordinator
I want to see a clear list of the organizations I belong to when I open the app, and select which one I am acting on behalf of
So that I can work in the correct organizational context and ensure my activities, contacts, and reports are attributed to the right organization
- Given I have authenticated and belong to one or more organizations, When the org selection screen loads, Then I see a card for each organization I am a member of, showing the organization name and my role
- Given the org selection screen is displayed, When I tap an organization card, Then the app navigates to the role-based home screen for that organization and all subsequent data is scoped to that organization
- Given I belong to only one organization, When I authenticate, Then the app may auto-select that organization and skip the selection screen, navigating directly to the home screen
- +3 more
As a As a Coordinator
I want to navigate the organization selection screen fully using VoiceOver or TalkBack
So that I can independently choose my organization without sighted assistance, in line with my organization's accessibility commitments
- Given I am a VoiceOver user on iOS, When the org selection screen loads, Then focus is automatically placed on the first organization card and VoiceOver announces the organization name, my role, and that the card is tappable
- Given I am using a screen reader, When I navigate through the list of organization cards, Then each card is announced with the organization name, my role within that organization, and any relevant status information
- Given I am using a screen reader, When I double-tap to select an organization, Then VoiceOver announces confirmation of the selection and that the app is loading the home screen
- +3 more
As a As a Organization Administrator
I want to see a clear list of the organizations I belong to when I open the app, and select which one I am acting on behalf of
So that I can work in the correct organizational context and ensure my activities, contacts, and reports are attributed to the right organization
- Given I have authenticated and belong to one or more organizations, When the org selection screen loads, Then I see a card for each organization I am a member of, showing the organization name and my role
- Given the org selection screen is displayed, When I tap an organization card, Then the app navigates to the role-based home screen for that organization and all subsequent data is scoped to that organization
- Given I belong to only one organization, When I authenticate, Then the app may auto-select that organization and skip the selection screen, navigating directly to the home screen
- +3 more
As a As a Organization Administrator
I want to navigate the organization selection screen fully using VoiceOver or TalkBack
So that I can independently choose my organization without sighted assistance, in line with my organization's accessibility commitments
- Given I am a VoiceOver user on iOS, When the org selection screen loads, Then focus is automatically placed on the first organization card and VoiceOver announces the organization name, my role, and that the card is tappable
- Given I am using a screen reader, When I navigate through the list of organization cards, Then each card is announced with the organization name, my role within that organization, and any relevant status information
- Given I am using a screen reader, When I double-tap to select an organization, Then VoiceOver announces confirmation of the selection and that the app is loading the home screen
- +3 more