Skip to content

πŸšͺ Allow Users to Enter the App Without Logging In + Handle No-Baby StateΒ #5

@suleymansurucu

Description

@suleymansurucu

🎯 Goal

Let users access the app without logging in, and handle cases where no baby is registered to prevent crashes or blank pages.


βœ… Tasks

  • πŸ”“ Allow guest access
    Allow users to enter the app without Firebase Authentication
    Skip login and navigate directly to the main app (HomePage or Wrapper)

  • πŸ‘Ά Handle baby list loading gracefully
    On ActivityPage and HistoryPage, currently babies are loaded from Firestore or local DB. If no baby is found, avoid crashing or showing an empty error.

  • βž• Redirect user to add baby
    If no baby exists:

    • Show a "No baby found" message
    • Provide a clear "Add Baby" button
    • On tap, navigate to baby creation screen
  • πŸ”„ Update logic to:

    • Use empty state visuals when no baby is added
    • Skip baby selection dropdowns if only one or no baby is present

πŸ§ͺ Edge Cases to Handle

  • A user is not logged in and opens the app
  • A user opens ActivityPage but has no baby
  • A user skips login, adds a baby, then logs in later (data migration?)

🌟 UX Suggestions

  • Show a gentle onboarding screen if user is guest + no baby added
  • Possibly show a banner: "You're using the app without an account β€” sign in to save data to the cloud"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions