Aditya61101 / Group-Study

A study app where people can come and join or create any study session.
https://group-study.vercel.app/
5 stars 8 forks source link

Create a user profile page #3

Closed Aditya61101 closed 9 months ago

Aditya61101 commented 9 months ago

You have to create a user profile page for this website. To achieve this, you can change the backend as well as the frontend without changing the current state of the website. The page should be accessible via all the private routes only.

The UI should match the current website's UI.

pooranjoyb commented 9 months ago

Assign me this issue usder codepeak'23 :) Will try to submit a PR by tomorrow midnight!

@Aditya61101

Aditya61101 commented 9 months ago

Assign me this issue usder codepeak'23 :) Will try to submit a PR by tomorrow midnight!

@Aditya61101

Assigned this to @pooranjoyb . Before working, make sure that you have gone through contribution.md file

pooranjoyb commented 9 months ago

Hey @Aditya61101 it is possible to access the DB to login, as for the development stage there should a common username and passwords for testing. You can either provide me one or can share the DB credentials (if exists).

Aditya61101 commented 9 months ago

Hey @Aditya61101 it is possible to access the DB to login, as for the development stage there should a common username and passwords for testing. You can either provide me one or can share the DB credentials (if exists).

MONGO_URI = mongodb+srv://aditya:3d27SWJC8PQkotre@groupstudycluster.pnnisly.mongodb.net/GroupStudy?retryWrites=true&w=majority password = 3d27SWJC8PQkotre NEXT_PUBLIC_BASENAME = http://localhost:3000/ NEXTAUTH_URL = http://localhost:3000/ NEXTAUTH_SECRET = 4ch@n2215

i have provided the .env.local file details. Create a .env.local file at the root and paste these in it.

Aditya61101 commented 9 months ago

@pooranjoyb Before accepting the pull request, I would like to see some screenshots or a demo video of the work that you have done.

pooranjoyb commented 9 months ago

@pooranjoyb Before accepting the pull request, I would like to see some screenshots or a demo video of the work that you have done.

Already added. Check PRs

Aditya61101 commented 9 months ago

@pooranjoyb Before accepting the pull request, I would like to see some screenshots or a demo video of the work that you have done.

Already added. Check PRs

yup checked and merged your PR!!

pooranjoyb commented 9 months ago

@pooranjoyb Before accepting the pull request, I would like to see some screenshots or a demo video of the work that you have done.

Already added. Check PRs

yup checked and merged your PR!!

Thanks @Aditya61101 Please label it under Codepeak2023

Aditya61101 commented 9 months ago

@pooranjoyb Before accepting the pull request, I would like to see some screenshots or a demo video of the work that you have done.

Already added. Check PRs

yup checked and merged your PR!!

Thanks @Aditya61101 Please label it under Codepeak2023

I have labeled it under codepeak'23, as per the points assignment doc.

Aditya61101 commented 9 months ago

@pooranjoyb awarded you 20 points for solving this issue 🎉

Aditya61101 commented 9 months ago

hey @pooranjoyb , you don't to hard code the user profile values; whatever you are getting from the backend or user session, just show them. Please show the real number of sessions created and registered instead of hard-coding it. It's a hard issue so you have to do these things in order to get full 20 points.

pooranjoyb commented 9 months ago

Sure @Aditya61101 I agree, But it would be more useful if we increase the fields while Registering a User Like taking the Name, Age, Address, etc, coz as of now the fields are really less in the DB to be shown in the Profile Section. Lemme know your views on this :)

Otherwise I shall go on as mentioned. @Aditya61101

Aditya61101 commented 9 months ago

Sure @Aditya61101 I agree, But it would be more useful if we increase the fields while Registering a User Like taking the Name, Age, Address, etc, coz as of now the fields are really less in the DB to be shown in the Profile Section. Lemme know your views on this :)

Otherwise I shall go on as mentioned. @Aditya61101

Yeah sure go ahead but you need to handle the case for already registered people also. Also show real no. Of sessions created and registered.

pooranjoyb commented 9 months ago

Sure thing! @Aditya61101 :)

Aditya61101 commented 9 months ago

Sure thing! @Aditya61101 :)

Weren't you able to fetch data about number of sessions created and registered for a user? @pooranjoyb

Aditya61101 commented 9 months ago

Screenshot_20231210_161804_Chrome.jpg

Please make it mobile responsive as well. @pooranjoyb

pooranjoyb commented 9 months ago

Sure thing! @Aditya61101 :)

Weren't you able to fetch data about number of sessions created and registered for a user? @pooranjoyb

Okay I'll do the required changes and let you know. Also, will I get some extra points after this is merged? Asking coz the initial issue didn't have these all features. :) @Aditya61101

Aditya61101 commented 9 months ago

Sure thing! @Aditya61101 :)

Weren't you able to fetch data about number of sessions created and registered for a user? @pooranjoyb

Okay I'll do the required changes and let you know. Also, will I get some extra points after this is merged? Asking coz the initial issue didn't have these all features. :) @Aditya61101

I guess, it's already assigned as a hard issue, and I expected to have at least these fields shown on user profile. So 20 points are enough tbh.

pooranjoyb commented 9 months ago

Please check the PR. I've made the requested changes :) @Aditya61101

Aditya61101 commented 9 months ago

Please check the PR. I've made the requested changes :) @Aditya61101

i only need the number of sessions registered and created to be displayed on the card of the profile page. @pooranjoyb Screenshot 2023-12-10 183232

Aditya61101 commented 9 months ago

Done @pooranjoyb ?

pooranjoyb commented 9 months ago

Dropping the PR right away, I was busy for some while. @Aditya61101