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

Enhanced User Profile and Information #34

Open
evanpservito opened this issue Jan 18, 2025 · 0 comments
Open

Enhanced User Profile and Information #34

evanpservito opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request medium partner recommended

Comments

@evanpservito
Copy link
Contributor

evanpservito commented Jan 18, 2025

Problem

As we continue to expand our application, we will need to add more information regarding our users to be able to track specific aspects, such as their total points collected.

Task

  1. Add the following attributes to the user documents in Firebase during the account registration process:
  • total points collected (totalPoints) - number
  • current daily streak (dailyStreak) - number
  • personal impact & environmental footprint (footprint) - number
  • sprit trash, determined when onboarding (spiritTrash) - string

Of course, these attributes will not be present on any existing user accounts that we have made so far, so you will have to make a new account after. Additionally, these values can be hardcoded for testing, but after be sure to initialize all the numbers to 0.

  1. Display these new attributes on the profile page. Use the sketch (see below) as a reference. For attributes not drawn out yet (ex. spirit trash), add them yourself as you see fit! For the daily streak, ensure it is displayed in the header (which is hardcoded at the moment).

  2. Add the daily streak functionality that increments a user's current streak by 1 when they open the app again after 24 hours. If a user does not log in within that 24 hour window, reset their streak back to 0.

Additional Notes

Image

Features being addressed:

  • Personal Impact & Environmental Footprint
  • Points for Correct Waste Disposal
  • Daily Scan Streak Feature
  • Spirit Trash Onboarding
@evanpservito evanpservito added enhancement New feature or request medium partner recommended labels Jan 18, 2025
@evanpservito evanpservito added heavy at least two developers and removed medium partner recommended labels Jan 18, 2025
@evanpservito evanpservito added medium partner recommended and removed heavy at least two developers labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium partner recommended
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants