Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

When choosing a logged in user on the Choose_citizen_screen, only citizens are shown, and sometimes the page is empty including the add new user button. #982

@Lyallvaldr

Description

@Lyallvaldr

Description

As can be seen in the choose_citizen_bloc.dart file, only Citizens are listed when showing logged in users, and only if the current role is a Guardian, since it links logged in citizens to a guardian user.
Instead, all logged in users should always be shown on this list, and it should be done without linking citizens to a guardian user, since users need to log in independent of each other.

Possible Suggested Solution

  • change UpdateBloc() in choose_citizen_bloc.dart to include guardians and trustees. And to load citizens in a way that is unrelated to the current guardian user.
  • Make sure the currently logged in user role is updated correctly when switching users, since this also seems to be unreliable when switching from guardian to citizen and back.
  • unsure where other changes may be necessary, but it seems like a repeating problem that users are linked in ways they should not be...
  • REMEMBER: Guardian = parent, Trustee = Teacher

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions