Betarena / boilerplate

Betarena Template Repository
0 stars 0 forks source link

[FEATURE]: New Authors Profile Section Data Request #9

Open jonsnowpt opened 3 weeks ago

jonsnowpt commented 3 weeks ago

Screenshot 2024-06-10 at 16 09 14

📝 Feature Request Description

We will be adding the new profile section for the user/author section.

We will need to add new data to the Firestore User Data:

  1. The user at this time has the username and now we will also be adding the name that the user will be able to customize.

This data will be added to the user data on Firestore.

name "Super Jon"

When the user creates the account, we generate random data for the username, and we will use this data to populate the user name until the user decides to customize it.

  1. Users will now be able to follow other users and this data will be added into the Firestore data:

Example:

followers

0
date
25 de dezembro de 2023 às 03:06:06 UTC
(timestamp)

uid
"n65vqAoretrrtteIH3b7lsU5454545445f4zroxjHk0SSp2"
(string)

1
date
25 de dezembro de 2023 às 14:11:53 UTC
uid
""n65vqAoretrrtteIH3b7lsU5454545445f4zroxjHiiik0SSp2"
following

0
date
25 de dezembro de 2023 às 03:06:06 UTC
(timestamp)

uid
"n65vqAoretrrtteIH3b7lsU5454545445f4zroxjHk0SSp2"
(string)

1
date
25 de dezembro de 2023 às 14:11:53 UTC
uid
""n65vqAoretrrtteIH3b7lsU5454545445f4zroxjHiiik0SSp2"
  1. Users now will be able to subscribe to sportstacks / publications, this data will be in json format and added to the author's table:

betarena_prod authors authors

subscribers

We just need to add and remove the users UID when they subscribe on the frontend.

  1. We will also adding a form field into the user profile where the user can add some info about them;

  2. We need to add the data to the scores-lib to be able to prepare the frontend.

Figma file:

https://www.figma.com/design/KLZ8I88MggBM3YpHi8jSzj/BTA-Betarena?m=dev&node-id=0-1

➕ Further context and resources (cummulative)

No response

migbash commented 3 weeks ago

🟧 UPDATE

Points 5. only applies to 3.. The reason being, firebase logic is mostly frontend related (in this case at least for this issue) and can be implemented by @Izobov (points 1., 2., 4.)

Hence, 5. (and 3. respectively) are ready, on next scores-lib release.

issue :: NaNPR :: https://github.com/Betarena/scores-lib/pull/351PR :: https://github.com/Betarena/scores-lib/pull/350version :: 3.3.1