Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[auth] persist user #16

Closed
wants to merge 10 commits into from
Closed

[auth] persist user #16

wants to merge 10 commits into from

Conversation

stephaniewong2
Copy link
Collaborator

@stephaniewong2 stephaniewong2 commented Oct 18, 2023

What's new in this PR

Description

  • Added async storage and persistence to supabase client so users don't get signed out after leaving app

Screenshots

How to review

  • Open the app and sign in with an existing account or sign up for a new account (ensuring all fields are correct because input validation has not been implemented yet)
  • Leave the app and come back --> swipe up and out or restart Expo
  • Open app again and ensure the user is still signed in

Next steps

Relevant Links

Online sources

Related PRs

CC: @stephaniewong2

stephaniewong2 and others added 10 commits October 18, 2023 02:32
* [feat] implement bottom tab notification (copy code from previous failed PR).

* [fix] update expo dependcies.

* [fix] update escape-string-regexp dependency.

* [feature] welcome screen (#10)

* edge case and fixed nav

* move styled button

---------

Co-authored-by: Melissa Liu <[email protected]>
Co-authored-by: Stephanie Wong <[email protected]>

* Update Eslint and Prettier configs (#15)

* Update ESLint and Prettier config to match Expo docs and most recent Typescript version

* Update ESLint and Prettier config to match Expo docs and most recent Typescript version

* Removed organizeImports from vscode settings.json and added .eslintignore

* [auth] Login and Sign Up (#14)

Basic log in and sign up authentication implemented with screens and queries

* [feat] implement bottom tab notification (copy code from previous failed PR).

* [fix] update expo dependcies.

* [fix] update escape-string-regexp dependency.

* [feat] create updates tab.

* [fix] fix dependency issues.

* [fix?] weird typescript errors are back.

---------

Co-authored-by: me-liu <[email protected]>
Co-authored-by: Melissa Liu <[email protected]>
Co-authored-by: Stephanie Wong <[email protected]>
Co-authored-by: surajr10 <[email protected]>
Co-authored-by: Stephanie Wong <[email protected]>
* [wip] create basic component structure for case cards.

* [style] basic case card styling complete.

* [feat] add props to case card.

* [feat] implement flatlist for conditional case rendering.

* [feat] render cases through useEffect hook.

* [wip] attempt to build supabase queries.

* [bruh]

* [wip] implement cases query util.

* [feat] move wip implementation to avoid merge conflicts.

* [refactor] create separate paths for cases and qr code scanning screens.

* [wip] refactor query util to improve typing consistency.

* [feat] create util for individual case query.

* [feat] create function that fetches several cases at once.

* [feat] build query to fetch caseIds associated with a given user.

* [refactor] add docstrings, comments, and better error handling.

* [feat] add placeholder button for navigation to QR code screen.

* [feat] implement routing in camera button.

* [style] cleanup styling to match figma.

* [cleanup] minor fixes before push.

* [refactor] reorder file navigation structure to fit cases page.

* [fix] hardcode better data for testing.

* [cleanup] eslint and prettier checks.

* [fix] dependency issues.

* [refactor] refactor code with new typing scheme.

* [feat] create caseCard type to pass only select props into card.

* [feat] create query to fetch logged in user data to render cases associated with specific user.

* [wip][feat] able to render cases for specific user after long load.

* [feat] complete user-specific case render, including a loading screen.

* [cleanup] prettier and eslint errors.

* [wip] integrating Cases page into bottom tab navigation.

* [feat] implement routing to QRCodeScanner from Cases screen.

* [fix] fix dependencies and PR review nits.

* [cleanup] create parseCase query helper function.
@stephaniewong2 stephaniewong2 deleted the stephanie/auth branch October 20, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants